Cannot log in to Parallels Plesk Panel web interface
Lổi
ERROR: PleskFatalException
Unable to connect to database: saved admin password is incorrect.
0: common_func.php3:93
psaerror(string 'Unable to connect to database: saved admin password is incorrect.')
1: auth.php3:127
Nguyên nhân
do mật khẩu trong tập tin
/etc/psa/.psa.shadow được sử dụng để truy cập database của Plesk Panel không tương thích với mật khẩu tải khoản admin của Plesk
Cách 1:
# export PSA_PASSWORD=<NEW_PASSWORD>
# /usr/local/psa/admin/bin/ch_admin_passwd
Thay thế <NEW_PASSWORD> bằng mật khẩu bạn mong muốn
Cách 2:
Chú ý: chỉ áp dụng cho Plesk 9.x hoặc phiên bản trước đó (Plesk 8...)
1. thêm dòng sau vào phần [mysqld] trong file
/etc/my.cnf
[mysqld]
skip-grant-tables
2. Restart lại mysql
# /etc/init.d/mysqld restart
3. Thêm mật khẩu mới vào trong file
/etc/psa/.psa.shadow file.
4. Reset lại mật khẩu
# /usr/bin/mysql -D mysql -e"update user set password=PASSWORD('`cat /etc/psa/.psa.shadow`') where User='admin';"
5. Xóa bỏ dòng
skip-grant-tables trong file
/etc/my.cnf
6. Restart lại dịch vụ
# /etc/init.d/mysqld restart
Chúc các bạn thành công!
