본문 바로가기
Mysql

db 유저추가 및 권한설정

by ohrohi 2019. 8. 21.

유저추가

> create user '사용자'@'localhost' identified by '비밀번호';

 

권한설정

> grant all privileges on *.* to '사용자'@'localhost';

 

특정DB

> grant all privileges on DB이름.* to '사용자'@'localhost';