Article ID: 111983, created on Aug 19, 2011, last review on Jun 17, 2016

  • Applies to:
  • Plesk 12.0 for Windows
  • Plesk 11.0 for Windows
  • Plesk 11.5 for Windows


During an upgrade, Parallels Plesk Panel needs to connect to the local MySQL server. If it's not possible, the upgrade fails:

WARNING: [MYSQL ERROR] Unable to connect to database. the reason of problem:

ERROR: The system was not able to find the specified registry key or value.

WARNING: Default MySQL server is not registered in Parallels Plesk Panel. If you use custom MySQL instances you should register one at least according to article /en/111983


Plesk Panel is not able to connect to database.


Make sure that it is possible to connect to the local MySQL server with this command:

"%plesk_dir%Databases\MySQL\bin\mysql.exe" -uadmin -p<password> -hlocalhost

A password can be obtained by this command:

"%plesk_bin\dbclient.exe" --direct-sql --sql="select * from databaseservers where type='mysql' and host='localhost'"

id      host    port    type    server_version  admin_login     admin_password  parameters_id   last_error
1       localhost       3306    mysql   5.5.15    admin     e*********e   no_error

If you can't login to MySQL server with your credentials, you have to change your credentials in databaseservers to validate your MySQL server. You can do so with this command:

"%plesk_bin%\dbclient.exe" --direct-sql --sql="Update databaseservers set admin_login='<MySQL user name>', admin_password='<type password here>' where host='localhost' and type='mysql'"

<MySQL user name> - it is the name of the user with all privileges.

Search Words


Upgrade product greyed out

MYSQL_ERROR unable to connect to database

a914db3fdc7a53ddcfd1b2db8f5a1b9c 85a92ca67f2200d36506862eaa6ed6b8 56797cefb1efc9130f7c48a7d1db0f0c ed7be2b984f9c27de1d2dc349dc19c6d a766cea0c28e23e978fa78ef81918ab8 514af229ae32522202a910a2649c80fb bd7fc88cf1b01f097749ae6f87272128 46a8e394d6fa13134808921036a34da8

Email subscription for changes to this article
Save as PDF