MYSQL权限管理

grant  权限  on 库.表 to 用户名@主机   identified by '密码' with grant option

mysql> grant all privileges on *.* to cj@localhost  identified by 'cj' with grant option;

 

刷新权限

flush  privileges 

 

删除用户

mysql> drop user cc@localhost;

 

查看用户权限

mysql> show grants for cj@localhost;

 

posted @ 2016-03-03 11:32  钱规则  阅读(155)  评论(0编辑  收藏  举报