Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud SQL: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 0

I'm desperate since my Google Cloud SQL instance went down. I could connect to it yesterday without problem but since this morning i'm unable to connect to it in any way, it produces the following error: The database server returned this error: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 0

This is what I did to try to fix this:

  • restart instance
  • added authorized ip-addresses in CIDR notation
  • reset root password
  • restored backup
  • pinged the ip-address and I get response

All these actions completed but i'm still unable to connect through:

  • PHP
  • MySQL workbench
  • Ubuntu MySQL command line

All without luck. What could I do to repair my Cloud SQL instance. Is anyone else having this problem?

like image 227
Joris Vaesen Avatar asked Oct 21 '22 03:10

Joris Vaesen


1 Answers

I'm from the Cloud SQL team. We are looking into this issue, it should be resolved soon. See https://groups.google.com/forum/#!topic/google-cloud-sql-announce/SwomB2zuRDo. Updates will be posted on that thread (and if there's anything particularly important I'll edit this post).

The problem seems to only affect connections from outside Google Cloud. Clients connecting from App Engine and Compute Engine should work fine.

like image 175
Juan Enrique Muñoz Zolotoochin Avatar answered Nov 25 '22 04:11

Juan Enrique Muñoz Zolotoochin