grant는 사용자 권한을 부여해주는 명령어이다.
이거 쓰기 힘들어서 맨날 myphpadmin 쓰니 ^^;;;;;
grant [권한목록] on [dbname] to [account]@[server] identified by [password] |
GRANT
priv_type [(column_list )]
[, priv_type [(column_list )]] ...
ON [object_type ] priv_level
TO user_specification [, user_specification ] ...
[REQUIRE {NONE | ssl_option [[AND] ssl_option ] ...}]
[WITH with_option ...]
object_type :
TABLE
| FUNCTION
| PROCEDURE
priv_level :
*
| *.*
| db_name .*
| db_name.tbl_name
| tbl_name
| db_name .routine_name
user_specification :
user [IDENTIFIED BY [PASSWORD] 'password ']
ssl_option :
SSL
| X509
| CIPHER 'cipher '
| ISSUER 'issuer '
| SUBJECT 'subject '
with_option :
GRANT OPTION
| MAX_QUERIES_PER_HOUR count
| MAX_UPDATES_PER_HOUR count
| MAX_CONNECTIONS_PER_HOUR count
| MAX_USER_CONNECTIONS count
[링크 : http://dev.mysql.com/doc/refman/5.1/en/grant.html] |