Resolution For Plesk versions up to 9.x:

Follow these steps to reset theĀ /etc/psa/.psa.shadow password:
1. Modify the MySQL server settings in the file /etc/my.cnf

Add the skip-grant-tables option in the [mysqld] section:

[mysqld]
skip-grant-tables

2. Restart the MySQL server:

# /etc/init.d/mysqld restart

3. Add new password to the /etc/psa/.psa.shadow file.

4. Reset the password in the service table of the MySQL server:
# /usr/bin/mysql -D mysql -e”update user set password=PASSWORD(‘`cat /etc/psa/.psa.shadow`’) where User=’admin’;”

5. Delete the skip-grant-tables option from the /etc/my.cnf file.

6. Restart the MYSQL server:

# /etc/init.d/mysqld restart

For Plesk versions 10.x:

Use ${PRODUCT_ROOT_D}/bin/admin utility to prompt the password for user “admin”:

# /usr/local/psa/bin/admin –show-password

Use ${PRODUCT_ROOT_D}/bin/init_conf to reset the password for user “admin”:

# /usr/local/psa/bin//init_conf -u -passwd <new_password>