Linux 3306端口不通 vim /etc/sysconfig/iptables 增加配置行:-A INPUT –m state --state NEW –m tcp –p –dport 3306 –j ACCEPT 重启防火墙:systemctl restart iptables