Replies: 1 comment 2 replies
-
You should use percent escaping to escape characters in an url. This is normal url management, nothing related to psycopg. You can use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
We are using postgresSQL with psycopg2 for setting up the connection DB for MLFlow, In this we are trying to pass the password to the DB_URL with special characters contained in it. If I am ignoring usage of '_[]:=?' the DB Connection is getting established.
However if we are ignoring '_[]:=?' characters in the password, the DB Connection is being established properly.
The following is the format of the DB URL :
postgresql+psycopg2://{{userName}:{password}//{{database}}?host={{ip}}&sslmode=verify-ca&sslrootcert={{sslRootCert}}&sslcert={{sslCert}}&sslkey={{sslKey}}
The following is the error on MLFlow application when trying to establish the connection using postgres and psycopg2:
If password is XXX1=_[XXXX], can someone please translate on how we need to pass the password to the module.
Can someone in psycopg2 Community/Contributors please help us resolve this error ? Please let us know how to pass the password along with special characters for which the psycopg2 module accepts ?
Beta Was this translation helpful? Give feedback.
All reactions