订阅到抓虾 Add to netvibes 添加到Google Reader(阅读器) Hosted by exlast.com

Monthly Archive for 04月, 2008

解决方案:phpMyAdmin无法登陆,#1251 Client does not support authentication protocol

今天遭遇phpMyAdmin无法登陆,提示:

#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client

如图:

用户名,密码,权限均正确,为何登录不了呢?

根据提示看来是认证有些改变。

mysql版本:5.0.45

MySQL client version: 4.0.24

“SELECT * FROM mysql.user” 看看,密码有长有短,还有*号。

mysql用户表

如何解决呢?其实只需要对你创建的用户再执行下面这条

update mysql.user SET Password = OLD_PASSWORD(’your_password’) where Host = ‘%’ AND User = ‘your_user’;

注意将 your_user, your_password 分别替换成你设置的用户名和密码

然后刷新一下库

FLUSH PRIVILEGES;

现在再试试,问题已经解决咯 ^__^

MySQL官方网站上早有详细的解释说明 Client does not support authentication protocol

———–分割线——————-

最后,我又想到那有趣的面试题答案请参考MySQL官方网站…赫赫

Tags: , ,