Plesk

Failed to login to the client’s MySQL/MariaDB using Plesk admin credentials

Symptoms

Failed to login to MySQL/MariaDB server which contains client databases with Plesk admin credentials.

Cause

During the installation client's MySQL/MariaDB server creates the admin user with the randomly generated password.

Resolution

In order to access the MySQL/MariaDB server which contains client databases use Webadmin or reset the password for this admin user.

  1. Navigate to this directory in Windows Explorer: C:Program Files (x86)PleskDatabasesMySQL
  2. Insert skip-grant-tables option into my.ini file right under [MySQLD] section.
  3. Start Plesk Services Monitor at Windows Start > All Programs > Plesk.

  4. Restart the "MariaDB106" service:
    mceclip2.png
  5. Run cmd.exe from Administrator and open connection to database:

    C:> "%plesk_dir%MySQLbinmysql" -P3306 -uadmin mysql

  6. Run this commands one-by-one:

    C:> FLUSH PRIVILEGES;

    C:> ALTER USER 'admin'@'localhost' IDENTIFIED BY "yournewpassword";

    C:> FLUSH PRIVILEGES;

  7. In Plesk > Tools & Settings > Database servers > localhost > Administrator Password - type the same password as in step 5 and press Apply.
  8. Remove skip-grant-tables option from my.cnf file (from step 2).
  9. Restart MySQL/MariaDB instance once again as in p.4.
Exit mobile version