数据库连接失败: Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

mysql解决方案

1.以管理员身份打开安装好的mysql

2.输入mysql密码,连接mysql

3输入以下命令

 01,use mysql;

02,alter user 'root'@'localhost' identified with mysql_native_password by '123456';

03,flush privileges;

4.出现上图提示,就证明mysql8.0连接数据库报错问题已解决,

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐