Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

mysql.roles_mapping Table

MariaDB starting with 10.0.5

Roles were introduced in MariaDB 10.0.5.

The mysql.roles_mapping table contains information about mariaDB roles.

MariaDB starting with 10.4

In MariaDB 10.4 and later, this table uses the Aria storage engine.

MariaDB until 10.3

In MariaDB 10.3 and before, this table uses the MyISAM storage engine.

The mysql.roles_mapping table contains the following fields:

FieldTypeNullKeyDefaultDescription
Hostchar(60)NOPRIHost (together with User and Role makes up the unique identifier for this record.
Userchar(80)NOPRIUser (together with Host and Role makes up the unique identifier for this record.
Rolechar(80)NOPRIRole (together with Host and User makes up the unique identifier for this record.
Admin_optionenum('N','Y')NONWhether the role can be granted (see the CREATE ROLE WITH ADMIN clause).

The Acl_role_grants status variable, added in MariaDB 10.1.4, indicates how many rows the mysql.roles_mapping table contains.