Product:
Search Type:

[FIX] Error logging into Plesk Control Panel: Saved admin password is incorrect.

Article ID: 922 
Last Review: Aug,15 2007
APPLIES TO:
  • Plesk 7 for Windows
  • Plesk 7.5.x for Windows
  • Plesk 7.6.x for Windows
  • Plesk 8.1 for Windows
  • Plesk 8.2 for Windows

SYMPTOMS

When attempting to log into Plesk Control Panel the following error is displayed:

Unable to connect to database: saved admin password is incorrect. 0: C:\\Program Files\\SWsoft\\Plesk\\admin\\auto_prepend\\auth.php3:56 psaerror(string "Unable to connect to database: saved admin password is incorrect.")

RESOLUTION

Such problem occurs when password of admin in Plesk does not match the one set in Plesk database in MySQL.

Please find all the steps below:Retrieve the current password using the command as below:

%plesk_bin%\plesksrvclient.exe -get

1. Then it needs to be configured within Plesk MySQL, following the steps below:

 -  Edit MySQL configuration file my.ini located in %plesk_dir%\mysql\data\.
 -  Add the skip_grant_tables=1 parameter into the [PleskSQLServer] section.
 -  Restart the Plesk SQL Server service.

2. Log into Plesk MySQL.

%plesk_dir%\mysql\bin\mysql.exe -P8306 mysql

 Execute the following query:

update mysql.user set password=password('current_password') where user='admin';

3. Remove skip_grant_tables=1 from within the [PleskSQLServer] section within %plesk_dir%\mysql\data\my.ini

4. Restart service Plesk SQL Server.

The password should have been assigned.

Note: For the latest Plesk versions in case of MSSQL using as db provider, please use the following KB to change passwod for user admin (replace sa with admin in mssql query).

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields