Back to tools

Connection String Builder

Connection Strings

A connection string is the information an application needs to connect to a database. It includes host, port, username, password, and additional options.

This tool generates connection strings compatible with major programming languages: Python, Node.js, Go, PHP, Java, Ruby, and .NET.

Formats by Database Type

Each database engine has its own connection string format. Here are the most common ones:

MySQL / MariaDB

mysql://user:password@host:3306/db_name?ssl-mode=required

PostgreSQL

postgresql://user:password@host:5432/db_name?sslmode=require

SQL Server

Server=host,1433;Database=db_name;User Id=user;Password=password;TrustServerCertificate=true;

SQLite

sqlite:///path/to/database.db

MongoDB

mongodb://user:password@host:27017/db_name?authSource=admin