Unable to connect to database: saved admin password is incorrect.
psaerror(string ‘Unable to connect to database: saved admin password is
The following instructions assume your Plesk admin user is “admin” and you with to reset the password to “setup”. You can check the password Plesk is expecting to use by doing “cat /etc/psa/.psa.shadow”.
- Using your favoured editor create the file “/root/mysqlreset.sql” with the content “UPDATE mysql.user SET Password=PASSWORD(’setup’) WHERE User=’admin’;FLUSH PRIVILEGES;”.
- Stop the mysql server “/etc/init.d/mysqld stop” (this will cause issues with any sites utilising MySQL).
- Start the MySQL server using the initial SQL file created above “mysqld_safe –init-file=/root/mysqlreset.sql &”.
- This should have reset the password and you can now restart MySQL.
You should now be able to login to the Plesk control panel via http://<sitename>:8443/.