mysql远程连接错误10038--navicat for mysql (10038)
mysql远程连接错误10038--navicat for mysql (10038)
转载:http://blog.csdn.net/chana1101/article/details/39641415
http://www.cnblogs.com/ohmydenzi/p/5521121.html
ubuntu server16.04.1下安装了MySQL 5.7数据库,然后在windows下通过Navicat for MySQL连接时,出现 Can't connect to mysql server on xxx.xxx.xxx.xxx(10038) 的问题。
解决方案如下:
1、授权
mysql>grant all privileges on *.* to 'root'@'%' identified by 'youpassword' with grant option;
mysql>flush privileges;
2、修改 /etc/mysql/mysql.conf.d ( 老版本的是这个目录:/etc/mysql/my.conf )
找到bind-address = 127.0.0.1这一行
改为bind-address = 0.0.0.0即可
如果还没解决可能是远程端口(3306)未对外开放。
参考:http://jingyan.baidu.com/article/63acb44add614761fcc17ec2.html