查看MYSQL数据库中所有用户

mysql> SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user;
查看数据库中具体某个用户的权限
mysql> show grants for 'cactiuser'@'%';   
 
比如:show grants for 'hhl'@'localhost';
原文地址:https://www.cnblogs.com/springcloud/p/9121469.html