简单用法:
grant all on *.* to root@192.168.3.72 identified by ‘abc123’;
原语法:
GRANTpriv_type
[(column_list
)] [,priv_type
[(column_list
)]] ...
ON [object_type
] {tbl_name
| * | *.* |db_name
.*}
TOuser
[IDENTIFIED BY [PASSWORD] 'password
']
[,user
[IDENTIFIED BY [PASSWORD] 'password
']] ...
[REQUIRE
NONE |
[{SSL| X509}]
[CIPHER 'cipher
' [AND]]
[ISSUER 'issuer
' [AND]]
[SUBJECT 'subject
']]
[WITHwith_option
[with_option
] ...]object_type
=
TABLE
| FUNCTION
| PROCEDUREwith_option
=
GRANT OPTION
| MAX_QUERIES_PER_HOURcount
| MAX_UPDATES_PER_HOURcount
| MAX_CONNECTIONS_PER_HOURcount
| MAX_USER_CONNECTIONScount
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/100605.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...