Database connection string checker

Paste a PostgreSQL or MySQL connection string to see each part, catch the characters that break it, and get a corrected version to copy.

Free, no sign-up. Runs in your browser: the string, password included, never leaves this page.

What it checks

  • Special characters in the password or user name that need percent-encoding, such as @, #, /, ? and a stray %. When it finds them, it gives you a corrected string to copy.
  • Leftovers from copying: quotes around the string, the DATABASE_URL= name in front, placeholders like [YOUR-PASSWORD].
  • The port: not a number, or the other database’s default (5432 is PostgreSQL’s, 3306 is MySQL’s).
  • Encryption: a missing or misspelled sslmode on PostgreSQL, or one that turns encryption off for a remote host.
  • localhost, which inside a Docker container means the container itself, not the database.

The parts of a connection string

postgresql://app:password@db.example.com:5432/appdb?sslmode=require
PartHereWhat it is
Schemepostgresql://The type of database. MySQL strings start mysql://.
User and passwordapp:password@The login, ending at the @. Special characters in it must be percent-encoded.
Host and portdb.example.com:5432Where the database server is. The port can be left out to use the default.
Database/appdbWhich database on that server to use.
Options?sslmode=requireSettings such as encryption, separated by &.

Questions

Is it safe to paste a connection string with a real password?

The check runs in your browser: the string is never sent to Rigcheck or anywhere else, and isn’t stored or put in the page address. If you’d rather not, replace the password with something of the same shape, such as one with the same special characters; everything else is checked the same way.

Which databases does it cover?

PostgreSQL and MySQL or MariaDB: URLs starting postgres://, postgresql://, mysql:// or mariadb://, their JDBC forms (jdbc:postgresql://, jdbc:mysql://), and PostgreSQL’s key=value form (host=... dbname=...). Other strings are split into their parts but their options aren’t checked.

Why does my password need encoding?

A connection string is a URL, and characters like @, #, / and ? have a meaning in URLs. A password containing them makes tools read a different host or cut the password short. Writing them as %40, %23, %2F and %3F keeps them part of the password.

Does it test whether I can connect?

No. It only reads the string. Whether the database answers depends on the server, its firewall and its access rules, which this page can’t see.