您的位置:首页 > 数据库 > MySQL

远程连接MySQL, 10038问题

2016-04-20 13:36 316 查看


ubuntu server下安装了MySQL 5.5数据库,然后在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/my.conf

找到bind-address = 127.0.0.1这一行

改为bind-address = 0.0.0.0即可

也有可能是,远程3306端口未对外开放。

具体参考
http://jingyan.baidu.com/article/63acb44add614761fcc17ec2.html

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: