开发者社区> 问答> 正文

网站文件都上传了,但是就是无法连接数据库读取数据,出现以下错误

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'). 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

展开
收起
臻珂 2017-07-21 16:38:38 2954 0
1 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。

    题主您好,

    好象提示您需要更新mysql的密码。

    请问您使用的是阿里云的云虚拟主机产品吗?

    2019-07-17 21:25:11
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
2022 DTCC-阿里云一站式数据库上云最佳实践 立即下载
云时代的数据库技术趋势 立即下载
超大型金融机构国产数据库全面迁移成功实践 立即下载