最近开发环境升级到了 php 5.3.2, 链接 remote mysql 却发生了错误:
(原文链接 http://ddbiz.com/?p=181)
connection failed:SQLSTATE[HY000] [2000] mysqlnd cannot connect to MySQL 4.1+ using old authentication
remote 的 mysql db my.cnf:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1