GoogleCloudPlatform / appengine-django-skeleton

A skeleton for creating App Engine applications using the Django framework.
BSD 3-Clause "New" or "Revised" License
134 stars 59 forks source link

OperationalError at /admin/login/ #25

Closed EssaAlshammri closed 7 years ago

EssaAlshammri commented 7 years ago

(2013, "Lost connection to MySQL server at 'reading initial communication packet', system error: 38")

this happens on production but when I run it on my local host it connects to the mysql server just fine

theacodes commented 7 years ago

@EssaAlshammri can you share your app.yaml with us? Feel free to elide any passwords. Are you using Cloud SQL? First generation or second generation?

@waprin any ideas?

EssaAlshammri commented 7 years ago

@jonparrott It was first generation the problem was I can't give an authorization to my app from sql instances when it's on a different region all I did is creating another database with the same region as my project and it worked it's solved now :) thanks for the replay