(改mysql版本数据库打不开)1251 Client does not support authentication问题

把mysql从5.2改成了5.8,再使用navicat打开数据库时候出现问题1251 Client does not support authentication

(改mysql版本数据库打不开)1251 Client does not support authentication问题

 

 

一,检查问题

左下角windows找到8版本的mysql黑框,

(改mysql版本数据库打不开)1251 Client does not support authentication问题

 

 输入密码进入

(改mysql版本数据库打不开)1251 Client does not support authentication问题

 

(改mysql版本数据库打不开)1251 Client does not support authentication问题

 

1.检查信息

输入命令:select host,user,plugin,authentication_string from mysql.user;

(改mysql版本数据库打不开)1251 Client does not support authentication问题

 

 备注:host为 % 表示不限制ip    localhost表示本机使用    plugin非mysql_native_password 则需要修改密码

 

2.修改用户密码

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';

更新user为root,host为% 的密码为root

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
更新user为root,host为localhost 的密码为root

(改mysql版本数据库打不开)1251 Client does not support authentication问题

 

3.成功

 (改mysql版本数据库打不开)1251 Client does not support authentication问题

 

 参考博主文章Mysql 解决1251 client does not support ...问题 - 就是你baby - 博客园 (cnblogs.com)

上一篇:驱动测试源码-1


下一篇:github upport for password authentication was removed on August 13, 2021. 错误解决