mirmond
mariadb 유저생성 및 권한설정 본문
사용자 생성
create user '사용자'@'localhost' identified by '비밀번호';
create user '사용자'@'192.168.0.1' identified by '비밀번호';
create user '사용자'@'192.168.0.%' identified by '비밀번호';
DB 권한
grant all privileges on *.* to '사용자'@'localhost';
grant all privileges on DB이름.* to '사용자'@'192.168.0.%';
grant all privileges on DB이름.TABLE이름 to '사용자'@'192.168.0.%';
사용자 삭제
drop user '사용자'@'localhost';
drop user '사용자'@'192.168.0.%';
'리눅스 > 간단 설정' 카테고리의 다른 글
mariadb(mysql) 간단 시간 설정 (0) | 2019.10.08 |
---|---|
mysql 백업 (0) | 2019.10.08 |
aws mariadb 한글문제 (0) | 2019.10.04 |
우분투 mariadb 10.3 설치 (0) | 2019.08.31 |
우분투 시간 설정 (0) | 2019.08.31 |
Comments