Joris Vaesen
Joris Vaesen

Reputation: 53

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:

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

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

Upvotes: 5

Views: 1430

Answers (3)

user3467453
user3467453

Reputation: 27

there.I encountered the same problem.You need to find out your public ip address,for that type "my public ip" in Google.Now click on your Cloud SQL instance that you created,under that click on ACCESS CONTROL tab and then click on Authorization tab under that.Under Authorized network,give any name you want to the network and copy your public ip address in the network.Now save changes and try to run the command from console.It should work fine.

Upvotes: 0

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.

Upvotes: 3

p.walkiewicz
p.walkiewicz

Reputation: 78

Our company has same problem. We are unable to connect through both MySQL workbench and MySQL command line. Our Google Appengine application has no problems to connect since its not using external IP.

Upvotes: 0

Related Questions