CentOS Linux release 7.4.1708 (Core) not exposing port 3306 code example
Example: centos 7 port open
firewall-cmd --zone=public --add-port=55555/tcp --permanent
firewall-cmd --reload
firewall-cmd --zone=public --add-port=55555/tcp --permanent
firewall-cmd --reload