8.0 以上版本 mySQL数据库导致的命令行可连接,NaviCat不可连接的问题
错误代码: client does not support authentication
原因: 没有开启Mysql的远程连接配置
解决办法:
1 使用命令行进入数据库
2 选着数据库 mysql --> user mysql
3 alter user 'root'@'localhost' identified with mysql_native_password by 'root';
4 flush privileges;