DB connection string tool

Build

Parse

Type
User
Password
Host
Port
Database

What is DB connection string tool?

Database connection strings pack host, port, credentials, and database name into one URL-style string — the format differs slightly between MySQL, PostgreSQL, MongoDB, and Redis, which trips people up when switching between them.

How to use it

Fill in the fields to build a connection string for any of the four database types, or paste an existing string to parse it back into its parts.

Example

MySQL: mysql://appuser:s3cret@localhost:3306/myapp