PHP/MySQL Client does not support authentication protocol requested by server

| | Comments (0)

Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in xxxx.php
原因: MySQL 4.1 以上版本使用了新的密碼驗證機制,
而 PHP 4.x 內建的 MySQL Library 是 3.23, 不支援新的密碼驗證機制.
解決方法:
mysql> SET PASSWORD FOR 'some_user'@'some_host' = OLD_PASSWORD('newpassword');
mysql> FLUSH PRIVILEGES;
ref. MySQL 5.0 Reference Manual :: A.2.3 Client does not support authentication protocol
MySQL 4.1.7 and PHP 4.3.x 搭配注意事項

Leave a comment

March 2009

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by Pank published on June 22, 2006 1:36 PM.

Notepad's Bug was the previous entry in this blog.

Winmail.dat is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.