Rechercher dans le manuel MySQL
25.35 The INFORMATION_SCHEMA USER_PRIVILEGES Table
The USER_PRIVILEGES
table provides
information about global privileges. It takes its values from the
mysql.user
system table.
The USER_PRIVILEGES
table has these
columns:
GRANTEE
The name of the account to which the privilege is granted, in
'
format.user_name
'@'host_name
'TABLE_CATALOG
The name of the catalog. This value is always
def
.PRIVILEGE_TYPE
The privilege granted. The value can be any privilege that can be granted at the global level; see Section 13.7.1.6, “GRANT Syntax”. Each row lists a single privilege, so there is one row per global privilege held by the grantee.
IS_GRANTABLE
YES
if the user has theGRANT OPTION
privilege,NO
otherwise. The output does not listGRANT OPTION
as a separate row withPRIVILEGE_TYPE='GRANT OPTION'
.
Notes
The
USER_PRIVILEGES
table is a nonstandardINFORMATION_SCHEMA
table.
The following statements are not equivalent:
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-user-privileges-table.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.