日期:2014-05-16  浏览次数:20626 次

mysql 错误:Client does not support authentication protocol requested by server

今天编程时,出现了一个如下错误:

?

mysql 错误:Client does not support authentication protocol requested by server?consider upgrading MySQL

?

客户端的认证协议与服务器不一致,需要更新客户端,网上找了一下解决办法

?

1:UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
??WHERE Host = 'some_host' AND User = 'some_user';(生新设置密码)
2:FLUSH PRIVILEGES;(刷新)

?

新版Mysql密码算法不同导致