출처: vicjung

'GRANT' 명령을 이용하면 쉽게 사용자 추가 및 권한 설정이 가능합니다. (MySQL Manual 4.3.5)

  • 일반 사용자 추가
 
mysql> grant all privileges on dbuser.* to dbuser@localhost
identified by 'password' with grant option;

  • 특정 이름의 데이터베이스에 대한 모든 권한을 가지는 사용자 추가
 
mysql> grant all privileges on `dbuser_%`.* to dbuser@localhost
identified by 'password' with grant option;


'dbuser_'으로 시작되는 데이터베이스에 대한 모든 권한을 가지는 'dbuser' 사용자 계정 추가%%% 이런식으로 계정을 만들면 새로운 사용자에 대한 개별적인 데이터베이스 권한 설정을 생략할 수 있습니다. -- 이현진


역따옴표(?) 아니고 싱글따옴표입니다.
크리에이티브 커먼즈 라이센스
Creative Commons License

Posted by gwlee

2008/08/25 02:16 2008/08/25 02:16
Response
0 Trackbacks , 0 Comments
RSS :
http://thegreatgoodplace.com/tt/study/rss/response/32

Trackback URL : http://thegreatgoodplace.com/tt/study/trackback/32

Leave a comment
« Previous : 1 : ... 22 : 23 : 24 : 25 : 26 : 27 : 28 : 29 : 30 : ... 55 : Next »