客户端连接mysql,问题:1251 client does not support ..

一、客户端连接mysql,问题:1251 client does not support ...

二、解决
1.查看用户信息

select host,user,plugin,authentication_string from mysql.user;

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

2.修改用户密码

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

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

三、成功

你可能感兴趣的:(mysql)