You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@parpera-nathan-liu I found this image, which helped me solve the problem. You need to replace any special character for its correspondent in this table. for example:
Hi I'm having an issue connecting to a PostgreSQL SB where the password contains special characters.
if my password is abc#123, and I create a connection string like:
postgres://myusername:abc%[email protected]/mydb
where # is escaped to be %23 as required by PostgreSQL. I get the following error when I try to connect:
const db = sql.open('postgres', 'postgres://myusername:abc%[email protected]/mydb');
ERRO[0005] GoError: parse "postgres://myusername:abc%!?(MISSING)[email protected]/mydb": invalid port ":abc%!"(MISSING) after host
How should can I connect to PostgreSQL DBs where a password contains a special character? Please help.
The text was updated successfully, but these errors were encountered: