Client does not support authentication protocol requested by server

关于因为版本号码不一样而引发的 Client does not support authentication protocol requested by server 问题

搜索相似的问题,获得的答案相似于下面mysql

mysql>SET PASSWORD FOR
'root'@'localhost' = OLD_PASSWORD('newpassword');sql

可是这些方法试了以后都是会提示语法的错误,以下:服务器

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'odl_password('123456')' at line 1server

为此东找西找,发现了一个适用的方法:io

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码';
FLUSH PRIVILEGES;cli

这样以后 ,客户端就忽然链接上了服务器搜索

解锁用户request

ALTER USER 'furrywall'@'localhost' ACCOUNT UNLOCK;语法


共勉密码

相关文章
相关标签/搜索