Skip to content

Postgres Connection Strings

"Postgres Connection String" samples.

Simple Postgres Connection String

postgres://username:password@localhost:381/DB_Name

Demo example:

postgresql://test_user:test_password@127.0.0.1:5432

Note: If you are use "@" in password then you need to use "%40" instead of "@".

username: DB Username.

password: DB Password.

localhost: server IP or DNS.

381: server port.

DB_Name: Database name.

Ref_Link: Connection String URI Format