hello in mysql these are the columns in the INFORMATION_SCHEMA.SCHEMA_PRIVILEGES table
+----------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------------+--------------+------+-----+---------+-------+
| GRANTEE | varchar(81) | NO | | | |
| TABLE_CATALOG | varchar(512) | YES | | NULL | |
| TABLE_SCHEMA | varchar(64) | NO | | | |
| PRIVILEGE_TYPE | varchar(64) | NO | | | |
| IS_GRANTABLE | varchar(3) | NO | | | |
+----------------+--------------+------+-----+---------+-------+
so i am wondering what all those columns stands for
i know what the third and fourth column stands for but i don’t have any idea what the other columns do coul anyone explain me them bit? i have been searching on the net but i haven’t found anythin only some example values for the column.
According to the MySQL Documentation, these values are just copied from the mysql.db table. All this does is provide an alternative way to find all users who have been granted a database-level privilege.
Here is a breakdown of what each column represents
GRANTEEis mysql user that had the privilege granted (user@hostfrommysql.db)TABLE_CATALOGis a field defined for this table to be SQL-92 compatipleTABLE_SCHEMAis the database whose grants are allowed (db column inmysql.db)PRIVILEGE_TYPEis the individual database-level privilege granted inmysql.dbIS_GRANTABLEtells you if the user was definedWITH GRANTS(Grant_priv column ofmysql.db) . In other words, the value tells whether or not the mysql user can give away the specific database-level privilege to other mysql users