Saved admin password is incorrect .

This tutorial is for those who have an issue with Plesk administrator”s (admin) password changed outside from the control panel after some manual changes via SSH.

Often after such change there is an error like this one:

0: /usr/local/psa/admin/auto_prepend/auth.php3: psaerror ( string "Unable to connect to database : saved admin password is incorrect ." )
Note: The error depends on the Plesk version.

In order to fix such issue we need to put the right password into Plesk”s database.

First access your server via SSH and switch to ”root”.
Stop the MySQL daemon. Under Linux systems this can be done with the following command:

Now start it with no user information:

Now you should be able to access the database without the root password.
To log in type :

Then you will see ”mysql>” prompt. While you are there type the following:

Type the new password instead new_pwd. Keep the letters case and do not forget to put ”;” at the end to finish the command line.

Tutorial update start
If you have Plesk version 10 or above the password cannot be in plain text, so you have to set it encrypted as in the current /etc/psa/.psa.shadow file

After Plesk 10 the password contained in /etc/psa/.psa.shadow is similar to this one:

In this case the mysql command executed should be like this:

Tutorial update end

Once you are done you will need to flush the privileges:

Quit ”mysql>” with exit command and restart the Plesk control panel.
Via SSH you can do that as typing:

Related links:
Access your server via SSH with Putty


Filed Under: Plesk Control Panel

Anthony Gee About the Author: Anthony G. is an IT specialist with more than 9 years of solid working experience in the Web Hosting industry. Currently works as server support administrator, involved in consultative discussions about Web Hosting and server administration. One of the first writers in the website, now writing for Free Tutorials community - he is publishing tutorials and articles for the wide public, as well as specific technical solutions.

Leave a Reply