推荐

mysql权限相关

查看用户权限

show grants for root@host;

授权:

 GRANT ALL PRIVILEGES ON *.* TO 'root'@'host' IDENTIFIED BY  'password';

撤销权限:

REVOKE ALL PRIVILEGES FROM root@10.11.2.174;

查看哪些用户在哪些host上有‘GRANT OPTION’权限

select Host,User,Grant_priv from mysql.user where Grant_priv='Y';

posted on 2012-11-06 11:06  高华  阅读(136)  评论(0编辑  收藏  举报

导航