SHOW GRANTS
Grammar: SHOW [ALL] GRANTS [FOR user_identity];
- SHOW ALL GRANTS can view the privileges of all users.
- If you specify user_identity, view the permissions of the specified user. And the user_identity must be created for the CREATE USER command.
- View all user rights information
SHOW ALL GRANTS;
- View the permissions of the specified user
SHOW GRANTS;