keecode logokeecode
3306

MySQL

MySQL database server

TCP
Database

Port Information

Port Number

3306

Protocol

TCP

Category

Database

Common Usage

URL with Port

http://localhost:3306
https://example.com:3306

Node.js/Express Server

const express = require('express');
const app = express();
const PORT = 3306;

app.listen(PORT, () => {
  console.log(`Server running on port ${PORT}`);
});

Docker Port Mapping

docker run -p 3306:3306 myapp

# In docker-compose.yml
ports:
  - "3306:3306"

Firewall Configuration

# Linux/Ubuntu firewall
sudo ufw allow 3306/tcp

# Check if port is in use
netstat -an | grep 3306