Skip to content

How to Connect to a Remote PostgreSQL DB #637

Answered by lovasoa
nofue asked this question in Q&A
Discussion options

You must be logged in to vote

The issue lies in the way the password and port are represented in the URL.

  1. The # in the password is a special character in URLs and must be percent-encoded.

  2. The port should be specified with a colon (:), not an ampersand (&).

Here's the corrected URL:

postgresql://postgres:PassWord%[email protected]:5433/rushdb

Explanation:

PassWord#9876 becomes PassWord%239876, where %23 is the URL-encoded value for #.

The port is correctly indicated with :5433.

This should resolve your issue.

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@nofue
Comment options

@nofue
Comment options

@nofue
Comment options

Answer selected by nofue
Comment options

You must be logged in to vote
3 replies
@nofue
Comment options

@lovasoa
Comment options

@nofue
Comment options

Comment options

You must be logged in to vote
1 reply
@nofue
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants