Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Hướng dẫn sử dụng Plesk (http://quantrinet.com/forum/forumdisplay.php?f=195)
-   -   Cannot log in to Parallels Plesk Panel web interface (http://quantrinet.com/forum/showthread.php?t=9321)

hoctinhoc 06-08-2012 10:01 AM

Cannot log in to Parallels Plesk Panel web interface
 
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!


:battay:


Bây giờ là 06:43 PM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.