查看用户权限
show grants for root@host;
授权:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'host' IDENTIFIED BY 'password';
撤销权限:
REVOKE ALL PRIVILEGES FROM
查看哪些用户在哪些host上有‘GRANT OPTION’权限
select Host,User,Grant_priv from mysql.user where Grant_priv='Y';
本文共 307 字,大约阅读时间需要 1 分钟。
查看用户权限
show grants for root@host;
授权:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'host' IDENTIFIED BY 'password';
撤销权限:
REVOKE ALL PRIVILEGES FROM
查看哪些用户在哪些host上有‘GRANT OPTION’权限
select Host,User,Grant_priv from mysql.user where Grant_priv='Y';
转载于:https://www.cnblogs.com/gaohuag/archive/2012/11/06/2756585.html