Port 3306: MySQL
Port 3306 is used by MySQL over TCP. Port 3306 is the default TCP port for MySQL and MariaDB. It appears in the study tables for SY0-701.
What runs on port 3306
MySQL uses TCP at the application layer. MySQL/MariaDB database.
Port 3306 is the default TCP port for MySQL and MariaDB. Web applications and administration tools connect to it to read and write data.
Secure alternative and common mix-ups
The study tables do not list a separate secure replacement for MySQL. Where it has to cross a network you do not control, restrict who can reach it and carry it inside a VPN.
A database listening on every interface with 3306 reachable from outside is a frequent cause of data breaches. Bind it to the local network or to localhost and allow only known application hosts.
Check port 3306 on your own network
To test a remote host from Windows, run Test-NetConnection with the host name and -Port 3306. From Linux or macOS, run nc -vz host 3306. To see what is listening on the machine itself, use ss -tulpn on Linux or netstat -ano on Windows and look for :3306.
A refused connection usually means no service is listening, and a probe that hangs usually means a firewall dropped it. Check the service, then the host firewall, then the network firewall, in that order.
Exam objectives that include it
These are the objectives whose tables list port 3306. The same row appears in the cheat sheet for each exam.
Related ports
Learn 3306 together with these. They are its pair, its secure counterpart or a service that sits under the same objective.
Where this comes from
The IANA registry lists port 3306 as mysql, "MySQL", for TCP and UDP. Checked 2026-11-15.
IANA Service Name and Transport Protocol Port Number Registry
Questions
The port number does not decide that. MySQL on port 3306 is only as safe as its configuration, how far it is exposed and how current the software is.
Keep going with the ports quiz and the cheat sheets.
Free plan, no card.