메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


사용자를 aaa로 하고 패스워드는 aaapass로 하며 sda데이타베이스에 대한 권한을 부여하기 위한 작업은 아래와 같다.

(%는 '원격'을 의미함)

1. MariaDB [(none)]> create database db명;

2. MariaDB [(none)]> alter database db명 default character set utf8;

3. MariaDB [(none)]> grant select, insert, update, delete, create on db명.* to 'aaa'@'%' identified by 'aaapass';

(원격접속및 모든 권한을 부여하는 경우는 grant all privileges on db명.* to 'aaa'@'%' identified by 'aaapass';와 같이 실행한다.)

(로컬접속및 모든 권한을 부여하는 경우는 grant all privileges on db명.* to 'aaa'@'localhost' identified by 'aaapass';와 같이 실행한다. 이미 생성된 사용자에게 권한을 부여하는 경우는 identified by 'aaapass' 부분은 지정하지 않는다.)

MariaDB [(none)]> flush privileges;


*원격접속 허용 회수 : drop user aaa@'%';

*원격 접속 허용 확인 : select host from mysql.user where user='sda';

*일부권한만 부여하는 경우 : grant select,insert on db명.* to 'sda';

번호 제목 날짜 조회 수
441 spark에서 hive table을 읽어 출력하는 예제 소스 2017.03.09 561
440 [2.7.2] distribute-exclude.sh사용할때 ssh 포트변경에 따른 오류발생시 조치사항 2018.01.02 560
439 [oneM2M]Ontologies used for oneM2M 2017.08.02 559
438 scan의 startrow, stoprow지정하는 방법 2015.04.08 558
437 small file 한개 파일로 만들기(text file 혹은 parquet file의 테이블) 2022.07.04 557
436 Namenode Metadata백업하는 방법 2020.02.10 556
435 Cloudera Hadoop and Spark Developer Certification 준비(참고) 2018.05.16 555
434 bash는 PS1 변수를 통해 프롬프트의 모양을 바꿀 수 있다. 2016.03.30 555
433 원보드 컴퓨터 비교표 file 2014.08.04 555
432 Kudu tablet이 FAILED일때 원인 확인 방법 2022.01.17 554
431 DataSetCreator실행시 "Illegal character in fragment at index"오류가 나는 경우 조치방안 2016.06.17 552
430 TransmitData() to failed: Network error: Recv() got EOF from remote (error 108) 오류 현상 2019.02.15 551
» root계정으로 MariaDB설치후 mysql -u root -p로 db에 접근하여 바로 해줘야 하는일..(케릭터셑은 utf8) 2015.10.02 550
428 [TLS]TLS용 사설 인증서 변경 혹은 신규 지정시 No trusted certificate found 오류 발생시 확인및 조치사항 2022.03.15 549
427 queryTranslator실행시 NullPointerException가 발생전에 java.lang.ArrayIndexOutOfBoundsException발생시 조치사항 2016.06.16 548
426 [CDP7.1.7][Replication]Table does not match version in getMetastore(). Table view original text mismatch 2024.01.02 543
425 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable원인 2015.04.27 540
424 servlet-api를 jar형태로 build할때 포함하지 말고 java 설치 위치의 jre/lib/ext에 복사하여 사용하는것이 좋다. 2016.08.10 538
423 Cannot create /var/run/oozie/oozie.pid: Directory nonexistent오류 2014.06.03 537
422 여러 홈페이지를 운영하거나 혹은 서버에 가입한 사용자들에게 홈페이지 계정을 나누어 줄수 있도록 설정/계정 생성방법 2018.01.23 535
위로