Database
[MySQL] 권한설정
out of coding
2014. 2. 26. 16:00
Command Line Client에 접속하던지, UI에서 하던지... 알아서 할것.
mysql> grant [권한들] on db명.* to '[user명]'@'localhost' identified by '[user명]';
mysql> grant [권한들] on db명.* to '[user명]'@'%' identified by '[user명]';
예를 들면...
mysql> grant select, insert, update, delete, create, drop on my_site.* to 'jsp_user'@'localhost' identified by 'jsp_user';
mysql> grant select, insert, update, delete, create, drop on my_site.* to 'jsp_user'@'%' identified by 'jsp_user';
제대로 생성되었는지 확인하고 싶다면...
Dos Command 창
> mysql -u jsp_user -p my_site;
아직까지는 쉽다. 재밌다.