메뉴 건너뛰기

Bigdata, Semantic IoT, Hadoop, NoSQL

Bigdata, 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';

A personal place to organize information learned during the development of such Hadoop, Hive, Hbase, Semantic IoT, etc.
We are open to the required minutes. Please send inquiries to gooper@gooper.com.

위로