The Information Schema USER_PRIVILEGES table contains global user privilege information derived from the mysql.user grant table.
It contains the following columns:
| Column | Description |
|---|---|
GRANTEE |
In the format user_name@host_name. |
TABLE_CATALOG |
Always def. |
PRIVILEGE_TYPE |
The specific privilege, for example SELECT, INSERT, UPDATE or REFERENCES. |
IS_GRANTABLE |
Whether the user has the GRANT OPTION for this privilege. |
Similar information can be accessed with the SHOW GRANTS statement. See the GRANT article for more about privileges.
This information is also stored in the user table, in the mysql system database.
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/information-schema-user_privileges-table/