There are different ways to connect to the CloudSQL instance depending on the location from where you are connecting. If you are connecting from an App Engine instance which is located in a project which is different from the project which the CloudSQL instance resides, you must use a service account to allow connection between the App Engine application and the Cloud SQL as described in the link <https://cloud.google.com/appengine/docs/standard/python3/using-cloud-sql#granting_access_to_gae_name_short> .
However, when connecting from your App Engine Application within the same project, you simply have to configure your app.yaml with the user, password, database, and instance connection name variables from Cloud SQL, See the documentation <https://cloud.google.com/appengine/docs/flexible/python/using-cloud-sql#setting_connection_strings_and_adding_a_library> . External applications have to connect to the Cloud SQL instances directly through the public IP address <[3]https://cloud.google.com/sql/docs/mysql/connect-external-app#appaccessIP> and the IP addresses of the connecting application have to be white listed in the Cloud SQL instance on the Authorization Tab of the Instance page. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/cf94cce5-1f21-457b-b9b9-7e13a6f8dd73%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.