If you are getting this error during DAP livelinks activation:
Warning: PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password] in
This indicates a php version incompatibility with mysql libraries installed on your webhost.
Resolution:
Please open a ticket with the webhost and have them do one of the following:
The problem is your webhost is using a new version of mysql client library (mysqlnd library) that expects to connect with MySQL 4.1's newer 41-byte password format but the mysql user on your webhost's mysql server is using an old 16-byte password hash.
This is causing mysql_connect() to fail resulting in SQL errors.
Please send the following to your webhost support and have them do this:
1) Run this command :
SELECT Host, User, Password FROM mysql.user;
If your password is sixteen characters, this is because you have used OLD_PASSWORD on your user's or have been running an old version of MySQL.
2) To update type in :
UPDATE mysql.user SET Password=PASSWORD('newpass')
WHERE User='root' AND Host='localhost';
FLUSH PRIVILEGES;
Swap root, localhost and newpass in the query above with your mysql username, hostname and your password respectively.
3) Now when you re-type
SELECT Host, User, Password FROM mysql.user;
Your password should have changed.
It should resolve all the PDO errors.
===============================
Another solution (ONLY if the one above does not work)
You can open a support ticket with liquidweb and have them do ONE of the following :
1. Downgrade PHP version
OR
2. Upgrade the MYSQL Libraries to match the version of MYSQL on the server.
OR
3. Change the my.cnf file
Comment out OLD_PASSWORDS = 1
restart mysql
Create or modify a user with the password desired (you can use the username/password from wp-config.php)
Uncomment out OLD_PASSWORDS = 1
restart mysql
tham khao: https://dev.mysql.com/doc/refman/5.5/en/old-client.html
http://forumsarchive.laravel.io/viewtopic.php?id=8667
PHP/Mysql compatibility - PDO::__construct(): authentication method unknown
Related Posts:
Một số lệnh quản lý mysql bạn nên biết1. Đổi mật khẩu user root Khi mới cài đặt MySQL, user root với quyền tối cao sẽ được tạo ra với mật khẩu bằng trống (không có mật khẩu. Do vậy việc đầu tiên chúng ta nên làm sẽ là đổi mật khẩu cho user này để đảm bảo an toàn… Read More
Các câu lệnh MySQL cần phải biết Khi chạy các lệnh này, bạn cần login vào MySQL với tài khoản root (MySQL root chứ không phải tài khoản root quản lý VPS) hoặc tài khoản có full quyền. Tất cả các thao tác mình thực hiện trên VPS CentOS Đăng nhập MySQL … Read More
LÀM THẾ NÀO ĐỂ KHÔI PHỤC MYSQL ROOT PASSWORD TRÊN SERVER WINDOWS Đầu tiên các bạn đều phải stop Mysql service ( Administrative Tools >>> Services ) PHƯƠNG PHÁP 1 (SKIP GRANT TABLES) Mở Command Prompt (cmd) và tìm đến thư mục bin nơi cài đặt MySQL V… Read More
phục hồi mysql replication break Giới thiệu Khi mysql replication bị hỏng thì có rất nhiều cách để xử lý nhưng có một cách tốt hơn cả là có thể bê nguyên toàn bộ data của master về slave ngay lập tức và tái lập replication bắt đầu tại thời điểm chuyển toàn… Read More
MySQL Table says IN USE, but table will not repair in phpmyadmin. From time to time mysql corrupts itself. This can normally be fixed using the KB Article here: http://billing.handsonwebhosting.com/knowledgebase.php?action=displayarticle&id=194 Under some situations h… Read More
0 comments:
Post a Comment