Tools

Connection String Builder

Build database connection strings for PostgreSQL , MySQL , MongoDB , and Redis in multiple formats: URI, SQLAlchemy, JDBC, Go, Node.js, and ORM-specific.

Connection Strings

URI (libpq)

postgresql://user:password@host:port/database

postgresql://postgres:@localhost:5432/mydb
psycopg2 (Python)

psycopg2.connect(host=..., dbname=..., user=..., password=..., port=...)

host=localhost port=5432 dbname=mydb user=postgres password=''
SQLAlchemy (Python)

postgresql+psycopg2://user:password@host:port/database

postgresql+psycopg2://postgres:@localhost:5432/mydb
JDBC (Java)

jdbc:postgresql://host:port/database?user=...&password=...

jdbc:postgresql://localhost:5432/mydb?user=postgres&password=
Go (pgx / lib/pq)

postgres://user:password@host:port/database?sslmode=...

postgres://postgres:@localhost:5432/mydb?sslmode=disable
Node.js (pg)

{ host, port, database, user, password, ssl }

{
  host: "localhost",
  port: 5432,
  database: "mydb",
  user: "postgres",
  password: "",
  ssl: false
}
Prisma (schema.prisma)

DATABASE_URL=postgresql://...

DATABASE_URL="postgresql://postgres:@localhost:5432/mydb"
Share

marduc812

2026