1.防火墙状态
firewall-cmd --state
2.打开3306端口
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload
实在不行可以尝试关闭firewall
systemctl stop firewalld.service
1.防火墙状态
firewall-cmd --state
2.打开3306端口
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload
实在不行可以尝试关闭firewall
systemctl stop firewalld.service