Monday, July 29, 2019

Re: [google-cloud-sql-discuss] Can't connect from AppEngine to CloudSql

How do you connect to your instance? Is it the same as described in https://cloud.google.com/sql/docs/mysql/connect-app-engine, or do you connect using your Cloud SQL instance's IP?


On Mon, Jul 29, 2019 at 6:40 AM Caglar Mehmet Metin <caglarmehmetmetin@gmail.com> wrote:
Hello, 

I have simple Java application. I deployed it to the AppEngine.

When I try to connect to the MySql of GCP CloudSql, I get connectoion error.
It says "Apps in this project. All authorized." 
My java app and CloudSql are in the same GCP app. 

When I add all networks ("0.0.0.0/0"), then it works. However I don't want to add this. 

What could be the reason? Is there something extra that I have to do in order to connect from AppEngine? 

Thanks and regards.

 

--
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/f6c3ac39-c157-4471-8cd7-167789f9d1b5%40googlegroups.com.

--
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/CAAG%3DWUsKAwWLhyq2mUyKe7K1yYBJbc7wa7h-Qeex6HUTVr%3D6JA%40mail.gmail.com.

No comments:

Post a Comment