Port

Port 3306 — MySQL

Port 3306 (TCP) is used by MySQL. MySQL / MariaDB database.

Port 3306 at a glance

PropertyValue
Port number3306
TransportTCP
ServiceMySQL
CategoryRegistered 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.

Learn networking hands-on

Master IP addressing, subnetting and Cisco configuration on real lab devices with placement support at Attila Technologies, Ahmedabad.

Start your networking career with Attila Technologies

Hands-on Cisco training, real lab devices and placement support in Ahmedabad.