Error code

MySQL 1227

MYSQL1227
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

Access denied — insufficient privilege for the requested operation.

How to fix it

  1. Grant the required privilege with GRANT <privilege> ON *.* TO '<user>'@'<host>'.
  2. Perform the operation with an account that already holds the privilege.
  3. Review and apply the principle of least privilege to avoid granting broad privileges unnecessarily.

Not affiliated with MySQL. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.