3363
MariaDBERRORCommonAccess ControlHIGH confidence
Privilege cannot be granted at this level
Production Risk
Low — GRANT statement fails; no privilege change occurs.
How to reproduce
trigger — this will error
trigger — this will error
GRANT FILE ON mydb.* TO 'user'@'localhost';
expected output
ERROR 3363 (HY000): Illegal privilege level specified for FILE.
Fix
Grant global-level privilege at global scope
Grant global-level privilege at global scope
GRANT FILE ON *.* TO 'user'@'localhost';
Why this works
FILE is a global privilege and must be granted at the *.* scope.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 3363 ER_ILLEGAL_PRIVILEGE_LEVEL
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev