Navicat无法连接数据库

1 Navicat无法连接数据库的解决办法

打开【win+r】输入CMD进入命令行界面,然后输入

alter user 'root'@'localhost' identified by '密码' password expire never;

alter user 'root'@'localhost' identified with mysql_native_password by '密码';

flush privileges;

记得将密码替换为mysql 的密码。

别跑,点个赞再走

posted @ 2020-03-13 23:41  姚狗蛋  阅读(148)  评论(0编辑  收藏  举报