mysql.tables_priv table contains information about table-level privileges. The table can be queried and although it is possible to directly update it, it is best to use GRANT for setting privileges.
Note that the MariaDB privileges occur at many levels. A user may be granted a privilege at the table level, but may still not have permission on a database level, for example. See privileges for a more complete view of the MariaDB privilege system.
The INFORMATION_SCHEMA.TABLE_PRIVILEGES table derives its contents from
mysql.tables_priv table contains the following fields:
|NO||PRI||Host (together with |
|NO||PRI||Database (together with |
|NO||PRI||User (together with |
|NO||PRI||Table name (together with |
|NO||The table privilege type. See Table Privileges for details.|
|NO||The column privilege type. See Column Privileges for details.|