Authorized GAE applications must be in the same re

2019-04-11 09:24发布

问题:

Unable to Connect to the cloud sql | Google App engine | Authorized GAE applications must be in the same region as the database instance error.

I did read this tutorial https://developers.google.com/appengine/docs/php/cloud-sql/

I tried to give my appID to Storage>>cloudsql>>Authorized App Engine Applications, but it shows me this

Authorized GAE applications must be in the same region as the database instance.

回答1:

Go to the cloud sql console at: https://console.developers.google.com/project/<project_id>/sql/instances

This will show your list of Cloud Sql instances. There's a column for region in the list that will tell you what region each instance is in.

I'm not sure offhand how to verify the region of an appengine app, but in order to be in EU you'd have to have premier account.