Monday, June 24, 2019

[google-cloud-sql-discuss] Re: Unable to connect App Engine Standard version to Cloud SQL Private IP.

Thanks for your reply.

My Cloud SQL instance is running on Private IP only. Yes, I tried to connect using INSTANCE_CONNECTION_NAME, but it's failed to connect.


On Monday, June 24, 2019 at 10:39:35 PM UTC+5:30, Emerson Moraes wrote:
Hi,

Why do you are using private IP to connect? Have you tried to connect using INSTANCE_CONNECTION_NAME, that is the most common way to connect with Cloud SQL from App Engine? (https://cloud.google.com/sql/docs/mysql/connect-app-engine?hl=en-US)

If you are using Spring Boot, you can connect with Cloud SQL using instance name through the Spring Cloud GCP:

Att.,

Emerson Leite de Moraes

segunda-feira, 24 de Junho de 2019 às 13:39:35 UTC-3, Rahul escreveu:
Hello,

I have created one instance of Cloud SQL Private IP. I have deployed one service(Java Service) on App Engine Standard Version to connect Cloud SQL Private IP with the help of Serverless VPC connector. All services reside in the same region.
But I am not able to connect to private IP Cloud SQL instance from AppEngine and It's throwing me an error as below.

Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.


CloudSQL.JPG


--
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/fec37d0d-ef44-4bbf-ac21-f4997ed9ccb4%40googlegroups.com.

No comments:

Post a Comment