Home >Database >Mysql Tutorial >linux下mysql链接被防火墙阻止的解决方法_MySQL

linux下mysql链接被防火墙阻止的解决方法_MySQL

WBOY
WBOYOriginal
2016-06-01 13:22:581321browse

bitsCN.com vi /etc/sysconfig/iptables

在后面添加

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT

service iptables restart

发现还是不行

最终发现记录要添加在

-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT 这一条前面 再次重启 OKbitsCN.com

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn