mysql遠程鏈接錯誤10038--navicat for mysql (10038)

mysql遠程鏈接錯誤10038--navicat for mysql (10038)

轉載: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

相關文章
相關標籤/搜索