메뉴 건너뛰기

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

번호 제목 날짜 조회 수
147 Mybatis foreach 문법정리(상황에 따른 사용법) 2015.11.10 2624
146 DB별 JDBC 드라이버 2015.10.02 2026
» root계정으로 MariaDB설치후 mysql -u root -p로 db에 접근하여 바로 해줘야 하는일..(케릭터셑은 utf8) 2015.10.02 2010
144 SQL문장과 Mongo에서 사용하는 명령어를 비교한 것입니다. 2015.09.30 1822
143 mongodb 2.6.6 설치(64bit) 2015.09.30 1239
142 pom.xml에서 build.gradle로 변환 2015.09.14 1378
141 부팅을 외장하드에서 하도록 변경하는 방법 2015.07.28 1669
140 바나나 파이의 /tmp폴더를 외장하드로 변경하기 2015.07.24 1360
139 Tracking URL = N/A 가발생하는 경우 - 환경설정값을 잘못설정하는 경우에 발생함 2015.06.17 2040
138 java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error: Unable to deserialize reduce input key from...오류해결방법 2015.06.16 3040
137 hortonworks에서 제공하는 메모리 설정값 계산기 사용법 file 2015.06.14 1938
136 Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.http.HttpConfig.getSchemePrefix()Ljava/lang/String; 해결->실패 2015.06.14 1239
135 hadoop 2.6.0에 sqoop2 (1.99.5) server및 client설치 == fail 2015.06.11 2771
134 "File /user/hadoop/share/lib does not exist" 오류 해결방법 2015.06.07 2201
133 Error: E0501 : E0501: Could not perform authorization operation, User: hadoop is not allowed to impersonate hadoop 해결하는 방법 2015.06.07 2160
132 Error: Could not find or load main class nodemnager 가 발생할때 해결하는 방법 2015.06.05 2376
131 센서테스트 file 2015.05.25 1141
130 apk 파일 위치 file 2015.05.25 2983
129 HAX is not working and emulator runs in emulation mode 메세지가 나오는 경우 file 2015.05.25 1000
128 hbase shell 필드 검색 방법 2015.05.24 3416
위로