我在尝试用新的php5连接到旧的数据库时遇到了一个问题
mysql_connect(): mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password').似乎每个人都可以通过更改数据库配置文件或更新密码来解决这个问题。
问题是,我目前既不能这样做,也不能。我想知道是否有办法让php5使用旧密码。
发布于 2013-08-03 09:05:54
考虑到您的限制,惟一的选择是对libmysqlclient库执行recompile PHP (而不是默认的原生PHP mysqlnd)。试试"Linux-Generic“"Development Libraries”二进制provided by MySQL。
您可能需要使用旧版本的libmysqlclient,我不确定新版本是否还支持旧的身份验证方法。
https://stackoverflow.com/questions/18020595
复制相似问题