一行命令解决数据库报错Client does not support authentication protocol requested by server;consider upgrading My

一行命令解决数据库报错Client does not support authentication protocol requested by server;consider upgrading My_第1张图片

Client does not support authentication protocol requested by server;consider upgrading Mysql client; 解决办法:
执行以下命令:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'; //123456改成你的密码即可

一行命令解决数据库报错Client does not support authentication protocol requested by server;consider upgrading My_第2张图片

执行后再连接:
一行命令解决数据库报错Client does not support authentication protocol requested by server;consider upgrading My_第3张图片

我安装的是mysql8.2版本

你可能感兴趣的:(数据库)