首页 > 技术文章 > 使用navicat连接mysql要报10038的错误

baby123 2016-08-23 13:41 原文

1.mysql的设置

(1)授权
mysql>grant all privileges on *.*  to  'root'@'%'  identified by 'youpassword'  with grant option;
mysql>flush privileges;
(2)修改/etc/mysql/my.conf
找到bind-address = 127.0.0.1这一行
改为bind-address = 0.0.0.0即可

重启mysql

2.防火墙开放端口

服务器的防火墙,需要开启3306端口

 

推荐阅读