mysql> grant all privileges on *.* to ;
给mysql用户授予localhost机器上的所有数据库的所有权限。
mysql> grant usage on *.* to ;
给user用户授予localhost机器上的所有数据库的使用权限。
mysql> grant select,insert,update,delete,create,drop on aa.* to identified by 'bb';
给user用户授予localhost机器上的aa数据库 select,insert,update,delete,create,drop 的权限,密码为bb。
阅读(380) | 评论(0) | 转发(0) |