Wednesday, November 27, 2019

[google-cloud-sql-discuss] Re: Why I can't connect to the PostgreSQL from my webserver on SiteGround?

Hi Daniele,

I assume that you are using public IP connections [1]. You can grant any application access to a Cloud SQL instance by authorizing the public IP addresses that the application uses to connect.

Have you added the IP address of your application? If not, please follow this steps (Described in [1]):

1. Determine the IP address of your application.
2. Authorize your application's IP address to connect to your Cloud SQL Instance [2].
3. You can find the IP address assigned to your instance in its Instance details page. This is the value you need for your application's 
connection string.

If your application is dynamically assigned IP address, then you need to use  Cloud SQL Proxy[3].

Please let me know if this clarifies your inquiries.

[1] https://cloud.google.com/sql/docs/postgres/connect-external-app#appaccessIP
[2] https://cloud.google.com/sql/docs/postgres/configure-ip#add
[3} https://cloud.google.com/sql/docs/postgres/sql-proxy

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/009ad98e-3e2b-40f8-8a20-feffd0f92fb8%40googlegroups.com.

No comments:

Post a Comment