解决方案: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官方网站…赫赫

无觅相关文章插件,快速提升流量

This entry was posted in Programming and tagged , , . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">