mysql远程连接配置

http://blog.csdn.net/bedisdover/article/details/52386328

修改配置文件my.ini

bind-address = 0.0.0.0
#skip-networking

telnet 192.168.33.13 9200
Trying 192.168.33.13…
Connected to 192.168.33.13.
Escape character is ‘^]’.

测试端口

telnet 192.168.33.13 3306

Trying 192.168.33.13…
Connected to 192.168.33.13.
Escape character is ‘^]’.
如果出现以上输出表示正常

授权

grant all privileges on *.* to 'root'@'%' identified by 'root';

防火墙

sudo /sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT 

##ubuntu
iptables-save 
iptables-restore

猜你喜欢

转载自blog.csdn.net/w786572258/article/details/78080959