Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google cloud sql authorize all IPs

I can't add "0.0.0.0/0" as an authorized network for my cloud sql. Error message from client: Lost connection to MySQL server at 'reading initial communication packet', system error: 0

If I authorize my IP address it works just fine but for some reason "0.0.0.0/0" doesn't work. Google's documentation suggests that it should work: https://cloud.google.com/sql/docs/access-control#dynamicIP

Thanks :)

like image 620
user2605553 Avatar asked Feb 05 '15 09:02

user2605553


1 Answers

Turns out that I was trying to authorize all IPv6 addresses. The cloud-sql team at Google added a new feature to authorize all IPv6 addresses by adding "::/0".

like image 77
user2605553 Avatar answered Sep 30 '22 22:09

user2605553