Navicat连接mysql出现1251Client does not support authentication protocol requested by server的解决方案

使用navicat连接mysql时报错:1251Client does not support authentication protocol requested by server

解决办法

打开cmd命令窗口

输入mysql -uroot -p

输入密码进入mysql命令窗口

输入ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';

注意  ‘  和  '  的区别,中文标点和英文标点的区别,我懒得输入,直接复制粘贴,导致出错

输入FLUSH PRIVILEGES;

在navicat中再次连接,成功

Navicat连接mysql出现1251Client does not support authentication protocol requested by server的解决方案_第1张图片

Navicat连接mysql出现1251Client does not support authentication protocol requested by server的解决方案_第2张图片

我打开了mysql库里的user表,对比发现,改变了root密码的加密方式

Navicat连接mysql出现1251Client does not support authentication protocol requested by server的解决方案_第3张图片

Navicat连接mysql出现1251Client does not support authentication protocol requested by server的解决方案_第4张图片

你可能感兴趣的:(MySQL,Navicat,MySQL)