Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
Tuổi 21-12-2011, 02:28 PM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
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!


  Trả lời ngay kèm theo trích dẫn này
Gửi trả lời



Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 01:07 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 - 2024, Jelsoft Enterprises Ltd.