What is Port 3306 and How Does It Work?
Port 3306 is the standard default port for MySQL and MariaDB relational database connections.
Security Vulnerabilities & Attack Vectors on Port 3306
Always bind MySQL to localhost (127.0.0.1) or an internal private VPC network. Never expose 3306 publicly.
Auditing & Scanning Port 3306 with Nmap
Run the following command to check if Port 3306 is reachable and determine service fingerprints:
nmap -p 3306 --script mysql-info,mysql-empty-password