I am trying to add the following line in the /etc/sysconfig/iptables in CentOS so I will be allowed to access mysql.
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
I already did # service iptables restart and that doesn't resolve this. I have already done this a couple of times for other ports and a simple service restart does not help. Is there a way to go around this without rebooting the server?