TCP 3306

ProtocolTCP
Port3306
LabelsMySQL database system

Synopsis

  • TCP port 3306 is the default port for the MySQL Client/Server Protocol used by Oracle MySQL Server (Community and Enterprise editions).
  • MariaDB Server and Percona Server for MySQL also listen on 3306 by default.
  • Managed services expose MySQL-compatible endpoints on 3306, including Amazon RDS for MySQL, Amazon Aurora MySQL, Google Cloud SQL for MySQL, and Azure Database for MySQL.
  • Client tools and drivers connect over 3306, such as MySQL Workbench, the mysql CLI, phpMyAdmin (via the PHP MySQL driver), and MySQL Connector/J (JDBC) and Connector/ODBC.
  • Applications commonly using it for database backends include WordPress, Drupal, Magento, MediaWiki, and Moodle when pointed to a remote MySQL/MariaDB host.
  • Traditional MySQL replication uses port 3306 for the replica I/O thread to connect to the primary unless configured otherwise.
  • Developer stacks like XAMPP, WAMP, and MAMP ship MySQL/MariaDB on 3306 by default.
  • Security note: Port 3306 is frequently scanned and attacked (e.g., brute-force logins, credential stuffing, data exfiltration, and abuses like UDF-based RCE or SELECT ... INTO OUTFILE), so admins often restrict exposure and enforce SSL and strong authentication.

Observed activity

Last 30 days Detailed chart

More information