navicat链接不上数据库报错10038

1,在服务器中进入数据库,查看用户是不是限制了远程链接
mysql> use mysql #访问mysql库
mysql> update user set host = '%' where user = 'root'; #使root能再任何host访问
mysql> FLUSH PRIVILEGES;
2,在防火墙中开放3306端口


1,在服务器中进入数据库,查看用户是不是限制了远程链接
mysql> use mysql #访问mysql库
mysql> update user set host = '%' where user = 'root'; #使root能再任何host访问
mysql> FLUSH PRIVILEGES;
2,在防火墙中开放3306端口
