mysql.columns_priv table contains information about column-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 column level, but may still not have permission on a table level, for example. See privileges for a more complete view of the MariaDB privilege system.
The INFORMATION_SCHEMA.COLUMN_PRIVILEGES table derives its contents from
mysql.columns_priv table contains the following fields:
|NO||PRI||Host (together with |
|NO||PRI||Database name (together with |
|NO||PRI||User (together with |
|NO||PRI||Table name (together with |
|NO||PRI||Column name (together with |
|NO||The privilege type. See Column Privileges for details.|