开发者社区> 问答> 正文

需要 Mysql >= 5.5.0 (需支持innodb引擎)

SQLSTATE[HY000] [2000] 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

展开
收起
1070939311980249 2018-12-04 22:58:44 588 0
1 条回答
写回答
取消 提交回答
  • 您好,PHP5.2至少MySQL5.0+,而您还在使用MYSQL4.1所以,出现这样的问题,建议您升级下数据库。

    具体操作步骤这里就不做详细说明,但您可以采用: 备份数据库 —> 安装MYSQL5.0+ ——>上传数据 的方式来进行升级!

    如果我的回答对您有帮助,请点击采纳,谢谢!

    .
    2018-12-04 23:11:11
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
搭建电商项目架构连接MySQL 立即下载
搭建4层电商项目架构,实战连接MySQL 立即下载
PolarDB MySQL引擎重磅功能及产品能力盛大发布 立即下载

相关镜像