一、安装mysql 后,连接失败,报1251错误,部分原因是mysql8.0的plugin与之前的版本有差异。报错如图:

二、解决方法如下
1.查看mysql用户,命令如下 select host,user,plugin,authentication_string from mysql.user;

2.修改root用户密码,命令:alter user 'root'@ 'localhost' identified with mysql_native_password by '自己的新密码';
更新下:plush privileges;

3.再次连接,连接成功。(本机使用navicat连接)

 
                    
                 
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号