WHATPORT(3306) whatport.net WHATPORT(3306)
3306

MySQL / MariaDB

MySQL and MariaDB client protocol, TCP 3306.

TCP

Description

The mysqld and mariadbd servers accept client connections on TCP 3306 by default; the client protocol carries queries, results, and authentication handshakes. Which interfaces it binds depends on bind_address — MySQL defaults to * (all interfaces), while distro-packaged MariaDB commonly ships 127.0.0.1. A server that greets you here identifies itself with its version string in the initial handshake packet before you authenticate. It shows up on scans of application servers, container hosts, and anything that bundled a database with a web app.

Exposed to the internet?

Do not expose

A database port on the internet is a credential-guessing and CVE target with the whole dataset behind it — bind it to localhost or a private network and reach it over a VPN or SSH tunnel.

Check it yourself

$ mysql -h DB_HOST -P 3306 -u someuser -p -e 'SELECT VERSION();'

See also

Seen this on your network? Beige Box scans your Wi-Fi and shows every open port on every device — and its Ports tool links straight back here.

Get Beige Box →

also available as JSON · Markdown

Corrections or a missing port? Reply @rimrocksystems.