Hello,
I am unable to connect to 2nd gen google cloud sql instance from google app engine instance. When I try to connect it simply fails with
Lost connection to MySQL server at 'reading initial communication packet'
The weird thing is that I have another GAE service in the same project which successfully connects to this sql instance via socket. Here is the piece of configuration
beta_settings:
cloud_sql_instances: xxxxx-test:us-central1:xxxxx-development
Socket is available
root@4badd097c0d5:/app# ls -lA /cloudsql/xxxxx-test\:us-central1\:xxxxxxx-development srwxrwxrwx 1 root root 0 Jun 10 11:51 /cloudsql/xxxxx-test:us-central1:xxxxxxxx-development
This is not related to my app's code because
root@4badd097c0d5:/app# mysql --socket=/cloudsql/xxxxx-test\:us-central1\:xxxxxxx-development
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Any advice how to proceed here?