|
|
@ -108,6 +108,9 @@ seealso:
|
|
|
|
- name: MySQL access control and account management reference
|
|
|
|
- name: MySQL access control and account management reference
|
|
|
|
description: Complete reference of the MySQL access control and account management documentation.
|
|
|
|
description: Complete reference of the MySQL access control and account management documentation.
|
|
|
|
link: https://dev.mysql.com/doc/refman/8.0/en/access-control.html
|
|
|
|
link: https://dev.mysql.com/doc/refman/8.0/en/access-control.html
|
|
|
|
|
|
|
|
- name: MySQL provided privileges reference
|
|
|
|
|
|
|
|
description: Complete reference of the MySQL provided privileges documentation.
|
|
|
|
|
|
|
|
link: https://dev.mysql.com/doc/refman/8.0/en/privileges-provided.html
|
|
|
|
|
|
|
|
|
|
|
|
author:
|
|
|
|
author:
|
|
|
|
- Jonathan Mainguy (@Jmainguy)
|
|
|
|
- Jonathan Mainguy (@Jmainguy)
|
|
|
@ -227,15 +230,18 @@ VALID_PRIVS = frozenset(('CREATE', 'DROP', 'GRANT', 'GRANT OPTION',
|
|
|
|
'PROCESS', 'PROXY', 'RELOAD', 'REPLICATION CLIENT',
|
|
|
|
'PROCESS', 'PROXY', 'RELOAD', 'REPLICATION CLIENT',
|
|
|
|
'REPLICATION SLAVE', 'SHOW DATABASES', 'SHUTDOWN',
|
|
|
|
'REPLICATION SLAVE', 'SHOW DATABASES', 'SHUTDOWN',
|
|
|
|
'SUPER', 'ALL', 'ALL PRIVILEGES', 'USAGE', 'REQUIRESSL',
|
|
|
|
'SUPER', 'ALL', 'ALL PRIVILEGES', 'USAGE', 'REQUIRESSL',
|
|
|
|
'CREATE ROLE', 'DROP ROLE', 'APPLICATION PASSWORD ADMIN',
|
|
|
|
'CREATE ROLE', 'DROP ROLE', 'APPLICATION_PASSWORD_ADMIN',
|
|
|
|
'AUDIT ADMIN', 'BACKUP ADMIN', 'BINLOG ADMIN',
|
|
|
|
'AUDIT_ADMIN', 'BACKUP_ADMIN', 'BINLOG_ADMIN',
|
|
|
|
'BINLOG ENCRYPTION ADMIN', 'CONNECTION ADMIN',
|
|
|
|
'BINLOG_ENCRYPTION_ADMIN', 'CLONE_ADMIN', 'CONNECTION_ADMIN',
|
|
|
|
'ENCRYPTION KEY ADMIN', 'FIREWALL ADMIN', 'FIREWALL USER',
|
|
|
|
'ENCRYPTION_KEY_ADMIN', 'FIREWALL_ADMIN', 'FIREWALL_USER',
|
|
|
|
'GROUP REPLICATION ADMIN', 'PERSIST RO VARIABLES ADMIN',
|
|
|
|
'GROUP_REPLICATION_ADMIN', 'INNODB_REDO_LOG_ARCHIVE',
|
|
|
|
'REPLICATION SLAVE ADMIN', 'RESOURCE GROUP ADMIN',
|
|
|
|
'NDB_STORED_USER', 'PERSIST_RO_VARIABLES_ADMIN',
|
|
|
|
'RESOURCE GROUP USER', 'ROLE ADMIN', 'SET USER ID',
|
|
|
|
'REPLICATION_APPLIER', 'REPLICATION_SLAVE_ADMIN',
|
|
|
|
'SESSION VARIABLES ADMIN', 'SYSTEM VARIABLES ADMIN',
|
|
|
|
'RESOURCE_GROUP_ADMIN', 'RESOURCE_GROUP_USER',
|
|
|
|
'VERSION TOKEN ADMIN', 'XA RECOVER ADMIN'))
|
|
|
|
'ROLE_ADMIN', 'SESSION_VARIABLES_ADMIN', 'SET_USER_ID',
|
|
|
|
|
|
|
|
'SYSTEM_USER', 'SYSTEM_VARIABLES_ADMIN', 'SYSTEM_USER',
|
|
|
|
|
|
|
|
'TABLE_ENCRYPTION_ADMIN', 'VERSION_TOKEN_ADMIN',
|
|
|
|
|
|
|
|
'XA_RECOVER_ADMIN', 'LOAD FROM S3', 'SELECT INTO S3'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidPrivsError(Exception):
|
|
|
|
class InvalidPrivsError(Exception):
|
|
|
|