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)
-   -   Fix lỗi: Plesk FatalException Unable to connect to database: saved admin password is (http://quantrinet.com/forum/showthread.php?t=8848)

hoctinhoc 21-12-2011 03:28 PM

Fix lỗi: Plesk FatalException Unable to connect to database: saved admin password is
 
ERROR: Plesk FatalException Unable to connect to database: saved admin password is incorrect.


Prolem:


Khi truy cấp vào plesk hoặc restart psa bạn được thông báo lỗi như bên dưới




ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES), ERROR: PleskFatalException Unable to connect to database: saved admin password is incorrect., Unable to connect to database login.php3: Unable to connect to database: Permission denied ERROR 1045: Access denied for user: 'admin@localhost' (Using password: YES).


Fix



SSH vào Server:
root@server[#] vi /etc/my.cnf
Thêm vào dòng sau bên dưới [mysqld]
Mã:

skip_grant_tables=1

Khổi động lại mysql
Mã:

root@server[#] /etc/init.d/mysql restart


Gỏ lênh sau
Mã:

root@server[#] mysql_fix_privilege_tables --user=admin --password='yourpassword' --verbose
Khổi động lại mysql

Thử truy cập lại Plesk bạn sẽ thấy Plesk không còn báo lỗi nửa!

Chúc bạn thành công!

:battay:


Bây giờ là 02:40 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.