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