SQLyog在连接MySQL8.0版本时报错:“Client does not support authentication protocol requested by server”

  • SQLyog在连接MySQL8.0版本时报错:“Client does not support authentication protocol requested by server”,在此记录解决方案
    SQLyog在连接MySQL8.0版本时报错:“Client does not support authentication protocol requested by server”_第1张图片
  • 解决方案:
    1)打开MySQL 8.0 Command Line Client
    2)输入如下命令:

1、use mysql;
2、alter user ‘root’@‘localhost’ identified with mysql_native_password by ‘新密码’;
3、flush privileges;
SQLyog在连接MySQL8.0版本时报错:“Client does not support authentication protocol requested by server”_第2张图片

3)即可成功连接

你可能感兴趣的:(SQL,sql,mysql,数据库)