MySql 8.0 版本使用navicat连不上解决

  1. 先通过命令行进入mysql的root账户:
  2. 更改加密方式
    1 ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;
  3. 更改密码
    1 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
  4. 刷新
    1 FLUSH PRIVILEGES;
原文地址:https://www.cnblogs.com/-xuan/p/10248856.html