-
Servus! My setup looks like this: Trying to connect from the application server to the database server shows an error when launching ./sqlpage.bin:
postgres:PassWord#9876 is the username:password part, rushdb the name of the database. The port number works perfectly well using pgAdmin 4 on the client at 192.168.1.38. I also tried the 'usual' notation and several more variants, but the error remains the same no matter what. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
The issue lies in the way the password and port are represented in the URL.
Here's the corrected URL:
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. |
Beta Was this translation helpful? Give feedback.
-
I updated https://github.com/lovasoa/SQLpage/blob/main/configuration.md . Do not hesitate to open a pull request on the file directly if you want to contribute improvements ! |
Beta Was this translation helpful? Give feedback.
-
I added a new configuration parameter for the next version of sqlpage: |
Beta Was this translation helpful? Give feedback.
The issue lies in the way the password and port are represented in the URL.
The # in the password is a special character in URLs and must be percent-encoded.
The port should be specified with a colon (:), not an ampersand (&).
Here's the corrected URL:
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.