解决1251 client does not support authentication ...问题

出现问题如下:
在这里插入图片描述
解决方法:

1.查看用户信息

select host,user,plugin,authentication_string from mysql.user;
在这里插入图片描述

2.修改用户密码

更新user为root,host为localhost 的密码为123456

ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘123456’;

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44182157/article/details/112210186