• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

MYSQL数据库连接问题: MySQL 4.1+ using the old insecure authentication

php 搞代码 3年前 (2022-01-23) 37次浏览 已收录 0个评论
文章目录[隐藏]

使用万网提供的轻云服务器,连接MySQL数据库时提示如下信息:服务器[qdm-011.hichina.com]连接失败!
错误代号: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 y~来1源gaodai#ma#com搞*代#码1网搞代gaodaima码our my.cnf file

如何解决,关键是也找不到操作服务器端MYSQL的方式啊?

回复讨论(解决方案)

MySQL都5.6了,你还在用4.1?
PHP5.2至少MySQL5.0+

好像报的是你这种密码登录方式不安全。。。。所以连接出错。。要你重新设置密码 。。换一种登录方式

万网上的mysql版本是5.1,使用万网的主机控制面板是可以登录到phpmyadmin的。
百度了下问题的解决方案,有说要重新设置密码,但如何重新设置?在phpmyadmin中设置?没有相关描述。。。。

请问你解决了吗?我也遇到这样的问题。

在万网上选择PHP5.3版本环境后解决。


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:MYSQL数据库连接问题: MySQL 4.1+ using the old insecure authentication
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址