Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-06-07 17:52:01
Original
1254 people have browsed it

本文章详细的介绍了关于linux下mysql链接被防火墙阻止解决办法,有需要了解的同学可参考一下。

下安装了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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!