Database URL & Connection String Generator

Generate connection strings for MySQL, PostgreSQL, SQLite, MongoDB, Redis, MariaDB, and MSSQL

  1. Home
  2. /
  3. Database Connection String Generator

Generated Connection String

mysql://root:@localhost:3306/mydb?charset=utf8mb4

Driver

-

Host

-

Database

-

Format

-

What Is a Database Connection String?

A database connection string (DSN) contains all the information needed to connect to a database: driver type, host, port, credentials, and options. Different frameworks and languages use different formats — URL-style, PDO DSN, SQLAlchemy, or CLI commands.