0

What is the format for database connection URI string for a GCP cloudsql postgres database. The instance only has private access and the connection URI string is needed for a workload running on GKE in the same region. Can't find anything concrete.

3
  • 2
    Have you tried this format `postgres://<user\>:<password\>@<ip-address\>:<port\>/<database-name\>`? Commented Aug 22, 2024 at 18:17
  • Have you managed to check my above comment? Commented Aug 28, 2024 at 7:19
  • I shared my comment as an answer so that it will help others who are facing the same issue. Can you have a look at it? Commented Sep 2, 2024 at 12:45

1 Answer 1

2

Database connection URI string for Cloud Sql postgres database would be as follows

postgres://<user\\\>:<password\\\>@<ip-address\\\>:<port\\\>/<database-name\\\>.

Also you can check this document and this thread

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.