Port 3306 (TCP) โ€” MySQL / MariaDB

MySQL and MariaDB database server.

๐Ÿ”’ Runs locally โ€” your input never leaves this browser tab

Port
3306
Protocol
TCP
Service
MySQL / MariaDB
Internet exposure risk
High

Bind to 127.0.0.1 or a private/VPN interface. Never expose to the internet.

Check if port 3306 is open

On the server, see what is listening:

sudo ss -tulpn | grep ':3306 '

From another machine, test reachability:

nc -zv your-server.example.com 3306

Block port 3306 from the internet

With UFW (Ubuntu/Debian):

sudo ufw deny 3306

With firewalld (RHEL/AlmaLinux/Rocky):

sudo firewall-cmd --permanent --remove-port=3306/tcp && sudo firewall-cmd --reload

โ† All common ports