Wednesday, November 8, 2017

[google-cloud-sql-discuss] Couldn't connect to CloudSQL(accessNotConfigured)

Hello all,

I was following the tutorial of running Django application on App Engine(https://cloud.google.com/python/django/appengine).
I downloaded the source code and followed this doc step by step but when I tried to "Run the app on your local computer", I got connection error from cloud_sql_proxy.
Error message like "couldn't connect to "django-mysite-185418:us-central1:instance-polls": ensure that the account has access to "django-mysite-185418:us-central1:instance-polls" (and make sure there's no typo in that name). Error during createEphemeral for django-mysite-185418:us-central1:instance-polls: googleapi: Error 403: Access Not Configured. Cloud SQL Administration API has not been used in project 563584335869 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/sqladmin.googleapis.com/overview?project=563584335869 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry., accessNotConfigured".

To be specific, I couldn't connect with the CloudSQL database through mySql client. I got the same error message when executing "mysql --host 127.0.0.1 --user root --password" in console.

I'm pretty sure I have enable the Cloud SQL Admin API for long time in that project, and there's no typo in that name.

Any help would be treasured. Thanks a lot.

Jiasheng

--
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/335c4615-923f-4f52-b004-d10670c4da12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment