问题描述:
在打开Nanicat 软件建立localhost_3306后,
在localhost_3306右键,打开连接,却出现了错误,具体的错误是:
1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
解决办法:
(1) 查看用户信息
select host,user,plugin,authentication_string from mysql.user;
(2)修改用户密码
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码'; #更新一下用户的密码 root用户密码
使用navicat连接远程mysql
至此,完整解决了1251的所有问题。