MySql错误 1251 - Client does not support authentication protocol requested by server 解决方案

	错误:1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client.

这是一个简单的权限与安全问题。只需要在 MySQL Shell 中输入两行简单的命令就可以解决问题。
运行cmd进入安装目录下面
mysql server安装的默认路径为:C:\Program Files\MySQL\MySQL Server 8.0\bin
在这里插入图片描述
登陆数据库
MySql错误 1251 - Client does not support authentication protocol requested by server 解决方案_第1张图片

mysql> alter user 'root'@'localhost' identified with mysql_native_password by '123456';
mysql> flush privileges;

这里的’password’是你的数据库密码,输入完这两行就搞定了。

你可能感兴趣的:(MySql错误 1251 - Client does not support authentication protocol requested by server 解决方案)