连接mysql8.0版本出现1251--Client does not support authentication protocol requested by server的解决

ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改加密规则 
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #更新一下用户的密码 

FLUSH PRIVILEGES; #刷新权限 

posted on 2019-03-16 23:35  xiaofei01gm  阅读(2252)  评论(0编辑  收藏  举报