帮助中心 >  技术知识库 >  虚拟主机 >  虚拟主机常见问题及技术支持 >  错误信息: 与服务器 localhost 的连接失败,原因为:mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication.------如何解决

错误信息: 与服务器 localhost 的连接失败,原因为:mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication.------如何解决

2016-06-08 23:39:19 9966

错误信息如图:

blob.png

错误信息: 与服务器 localhost 的连接失败,原因为: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'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file

解决方法:将php版本切换为5.2


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: