ubuntu server下安装了MySQL 5.5数据库,而后在windows下经过Navicat for MySQL链接时,出现 Can't connect to mysql server on xxx.xxx.xxx.xxx(10038) 的问题。mysql
解决方案以下:sql
一、受权数据库
mysql>grant all privileges on *.* to 'root'@'%' identified by 'youpassword' with grant option;
ubuntu
mysql>flush privileges;windows
二、修改/etc/mysql/my.confide
找到bind-address = 127.0.0.1这一行spa
改成bind-address = 0.0.0.0便可orm