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

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

WBOY
Release: 2016-06-07 18:07:42
Original
1131 people have browsed it

linux下安装了mysql,不能从其它机器访问 帐号已经授权从任意主机进行访问

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 这一条前面 再次重启 OK
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template