这是什么错误(Client does not support authentication protocol requested by server; consider upgrading MySQL client)?

zytang 2005-09-01 05:15:41
环境:
win xp pro
ie6
php4
mysql4.1.1.4
错误语句:
$connect=mysql_connect('localhost','user','password');

错误提示:
Client does not support authentication protocol requested by server; consider upgrading MySQL client

请问是什么原因?
...全文
564 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
oyy518 2006-03-25
  • 打赏
  • 举报
回复
高手,学习...
zytang 2005-09-02
  • 打赏
  • 举报
回复
高手就是高手
没话说
给分
caslake 2005-09-02
  • 打赏
  • 举报
回复
这个问题那么多人问过了。降低你的mysql数据库的版本。建议使用4.0.22
Cain 2005-09-02
  • 打赏
  • 举报
回复
又见孟子E章

google是个好东西
孟子E章 2005-09-01
  • 打赏
  • 举报
回复
http://www.google.com/search?hl=zh-CN&q=Client+does+not+support+authentication+protocol+requested+by+server&btnG=Google+%E6%90%9C%E7%B4%A2&lr=
孟子E章 2005-09-01
  • 打赏
  • 举报
回复
官方的说法是

MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. .....



如果你升级mysql到4.1以上版本后遇到以上问题,请先确定你的mysql client 是4.1或者更高版本.(WINDOWS下有问题你就直接跳到下面看解决方法了,因为MYSQL 在WINDOWS是client和server一起装上了的)

请使用以下两种方法之一

其一:

mysql> SET PASSWORD FOR
-> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');

其二:

mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
-> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧