Articles in this section

Unable to import MySQL/MariaDB dump using Import Dump feature in Plesk: ERROR 1227 (42000) at line 1421: Access denied; you need (at least one of) the SUPER privilege(s) for this operation

kb: bug Plesk for Windows kb: fixed Plesk for Linux ABT: Group A database

Applicable to:

  • Plesk for Windows
  • Plesk for Linux

Symptoms

  • Unable to import the MySQL/MariaDB dump via Subscriptions > example.com > Databases > Import Dump:

    PLESK_ERROR: Unable to import the john_doe_database dump:
    Unable to restore database 'john_doe_database'
    mysql: [Warning] Using a password on the command line interface can be insecure.
    ERROR 1227 (42000) at line 1421: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
    (Error code 22)

  • The MySQL/MariaDB CREATE procedure together with the DEFINER directive is used in the dump several times for different users:

    CONFIG_TEXT: /*!50003 CREATE */ /*!50017 DEFINER=`John Doe`@% */ /*!50003 Some code */;;
    /*!50003 CREATE */ /*!50017 DEFINER=`Sarah Kerrigan`@% */ /*!50003 Some code */;;
    /*!50003 CREATE */ /*!50017 DEFINER=`James Raynor`@% */ /*!50003 Some code */;;

  • Each user defined in the DEFINER directive in the MySQL/MariaDB dump have no SUPER privilege in the Tools & Settings > Database Servers > MySQL/MariaDB Screenshot_5.png > User accounts > John Doe > Edit privileges > Administration list.

Cause

Product issue:

  • #PPPM-13086 "MySQL/MariaDB dump importing no longer fails with the “ERROR 1227 (42000) at line : Access denied" error."
    Fixed in:

Resolution

Please consider updating your server:
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.