Roles were introduced in MariaDB 10.0.5.
The mysql.roles_mapping
table contains information about mariaDB roles.
In MariaDB 10.4 and later, this table uses the Aria storage engine.
In MariaDB 10.3 and before, this table uses the MyISAM storage engine.
The mysql.roles_mapping
table contains the following fields:
Field | Type | Null | Key | Default | Description |
---|---|---|---|---|---|
Host |
char(60) |
NO | PRI | Host (together with User and Role makes up the unique identifier for this record. |
|
User |
char(80) |
NO | PRI | User (together with Host and Role makes up the unique identifier for this record. |
|
Role |
char(80) |
NO | PRI | Role (together with Host and User makes up the unique identifier for this record. |
|
Admin_option |
enum('N','Y') |
NO | N | Whether 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.
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/mysqlroles_mapping-table/