After installing the MYSQL server, all operations on this machine are normal, but when I remotely access the MYSQL server on other machines, I can't connect. Shit!
It is suspected that it is a port problem. The result:
telnet 192.168.1.245 3306
found that it could not connect, so it turned out This means that the port is restricted by the firewall.
Now you only need to open port 3306 in the firewall.
Execute vi /etc/sysconfig/iptables
as shown in the figure:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
Just add this sentence. Note that this sentence must be added above the last sentence. Otherwise, it will not take effect.
Similarly, if it is another port, replace "3306" with the corresponding The port is enough.
Then restart the firewall
service iptables restart
reference:
http://www.cnblogs.com/echo-something/archive/2012/07/31/3306_port.html
Linux configure firewall to open port 3306
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326440290&siteId=291194637
Recommended
Ranking