原因:由于用户加密方式不同,如果是采用caching_sha2_password会由于navicat的版本问题导致无法连接,需要设置成mysql_native_password
use mysql;
select user,host,plugin from user;
update user set host = ‘%’ where user = ‘root’; #更新host连接权限
alter user ‘root’@‘%’ identified with mysql_native_password by ‘666666’;#更改加密方式修改密码
flush privileges;
即可
按照这些操作 基本上能解决mysql所连接的问题!