Plesk upgrade fails with an error: Access denied for user 'admin'@'localhost'

Created:

2016-11-16 13:12:27 UTC

Modified:

2017-08-16 16:16:34 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk upgrade fails with an error: Access denied for user 'admin'@'localhost'

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 11.x for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Symptoms

Plesk upgrade fails with an error:

Access denied for user 'admin'@'localhost'

When attempting to set the administrator password via the '%plesk_bin%\\plesksrvclient' utility (launch with no arguments), there is an error:

Failed to connect to MySQL server

Cause

Old password entry is present in Plesk registry, or the MySQL database port value is not set.

Resolution

  1. Check the following values in the Plesk registry hive and make sure they are set as below:

    [HKEY_LOCAL_MACHINE\\SOFTWARE\\PLESK\\PSA Config\\Config]
    "MYSQL_PORT"="8306"
    "MySQL_DB_PORT"="8306"
  2. Check if the following entry exists:

    mysql_psa_root_pwd

Remove it if it exists.

Have more questions? Submit a request
Please sign in to leave a comment.