Is port 3306 (MySQL) safe to expose?
MySQL / MariaDB database. Exposing it to the internet is high risk.
Why exposing port 3306 is risky
Databases should never face the internet. An exposed port is brute-forced and probed for weak credentials and known CVEs.
How to check if it's exposed
From outside your network, a quick nmap -p 3306 <your-ip> (or an external port scanner) shows whether 3306 answers. On the host, ss -tlnp | grep :3306 shows what's listening and on which interface — it should be a private address, not 0.0.0.0.
How to secure it
- Bind to localhost or a private subnet; restrict the firewall to app servers.
- Use strong, unique credentials and keep it patched.
SkyShield watches what's really exposed
SkyShield follows your firewall rules through to the container and shows what the internet can actually reach. Free for one server, then from $49 per server a month. Start free.