3389
MariaDBERRORNotableAccess ControlHIGH confidence
Malformed role name
Production Risk
Low — CREATE ROLE fails; no role is created.
How to reproduce
trigger — this will error
trigger — this will error
CREATE ROLE 'invalid role name!';
expected output
ERROR 3389 (HY000): Invalid role name.
Fix
Use a valid role name
Use a valid role name
CREATE ROLE app_read_role;
Why this works
Simple alphanumeric role names without spaces or special characters are always valid.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 3389 ER_INVALID_ROLE
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev