[root@localhost mysql]# iptables -I INPUT -p tcp --dport 3306 -j ACCEPT [root@localhost mysql]# service iptables save