select * from mysql.user where user='root' \G; 查询某个具体用户的权限
SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user; 查询所有用户权限