在MySQL中,可以通过以下命令查询用户的权限:
连接到MySQL数据库:
mysql -u username -p
查询用户权限:
SHOW GRANTS FOR 'username'@'host';
其中,username为要查询权限的用户名,host为用户所在主机的地址。
username
host
如果要查询所有用户的权限,可以执行以下命令:
SELECT * FROM mysql.user;