Port
Port 3306 — MySQL
Port 3306 (TCP) is used by MySQL. MySQL / MariaDB database.
Port 3306 at a glance
| Property | Value |
|---|---|
| Port number | 3306 |
| Transport | TCP |
| Service | MySQL |
| Category | Registered port |
What it is used for
MySQL / MariaDB database.
Security considerations
Never expose publicly; bind to localhost or app subnet.
See our full TCP/UDP port reference and learn how firewalls filter ports in the CyberOps course.
Frequently asked questions
What is port 3306 used for?
Port 3306 (TCP) is used by MySQL. MySQL / MariaDB database.
Is port 3306 TCP or UDP?
Port 3306 uses TCP.
Is it safe to open port 3306?
Never expose publicly; bind to localhost or app subnet.
Related
Learn networking hands-on
Master IP addressing, subnetting and Cisco configuration on real lab devices with placement support at Attila Technologies, Ahmedabad.