Important
New database features are no longer connected to engine versions; features are now enabled independently during scheduled update windows, and “major” and “minor” releases no longer exist in Helios. Please visit the release notes to view the latest features available in your database clusters.
SHOW ROLES FOR USER
On this page
The SHOW ROLES FOR USER command shows roles for a specific user.
Syntax
SHOW ROLES FOR USER user_specification
user_specification:
'user_name'@'host_name'Output
|
Column |
Description |
|---|---|
|
|
Roles of specified user |
Example
SHOW ROLES FOR USER 'root'@'localhost';
+------------------------------+
| Roles of user root@localhost |
+------------------------------+
| role_name_0 |
+------------------------------+
1 row in set (0.00 sec)Related Topics
Last modified: