Plesk: Unable to connect to database: saved admin password is incorrect


Symptom:
Not able to log in to Plesk Panel. The following MySQL error is shown instead of the login screen:

ERROR: PleskFatalException
Unable to connect to database: saved admin password is incorrect.

0: common_func.php3:150
    psaerror(string ‘Unable to connect to database: saved admin password is incorrect.’)
1: auth.php3:107
ERROR: PleskFatalException
Unable to connect to database: saved admin password is incorrect.

0: common_func.php3:150
    psaerror(string ‘Unable to connect to database: saved admin password is incorrect.’)
1: auth.php3:107

This is caused because the password in file /etc/psa/.psa.shadow doesn’t match with with the admin password.

Resolution:
Reset the (MySQL) admin password using ch_admin_passwd. Run the following with root access:

# export PSA_PASSWORD=<NEW ADMIN PASSWORD>
# /usr/local/psa/admin/bin/ch_admin_passwd