CREATE ROLE
Create new roles to simplify privilege management. Learn how to define a role that can be assigned to multiple users or other roles.
Syntax
CREATE [OR REPLACE] ROLE [IF NOT EXISTS] role
[WITH ADMIN
{CURRENT_USER | CURRENT_ROLE | user | role}]Description
ERROR 1396 (HY000): Operation CREATE ROLE failed for 'a','b','c'WITH ADMIN
OR REPLACE
IF NOT EXISTS
Examples
See Also
Last updated
Was this helpful?

