navicat 链接不上mysql

1 查看 my.cnf 的配置bindhost 127.0.0.1 注释掉

2 grant all privileges on *.* to root@'%' identified by 'passwd';

 flush privileges;

解决

原文地址:https://www.cnblogs.com/liujianzuo888/p/5103447.html