Sandeep Choudhary
Sandeep Choudhary

Reputation: 260

External IP addresses for access control not getting set in Google Cloud SQL

I'm facing a strange issue in Google Cloud SQL. I'm not able to set external IPs in access control. When I add a IP it shows updating when after sometime it does get updated.

enter image description here

But as soon as I refresh the page, the IP address is gone.

enter image description here

What I'm trying to achieve is connecting my local dev SQL Client to Google Cloud SQL, so I need to configure external IP address to give access. But It wasn't working and I'm getting following error

enter image description here

On further investigation I found that the IP I'm configuring is not getting updated as per error I mentioned above. Google Cloud SQL experts, please help.

Also, if I don't have static IP address of my own, what should I be configuring? I have got IPv4 assigned to my Cloud SQL instance.

PS: Not sure if it'll matter, but I'm under trial period of Google Cloud.

Upvotes: 0

Views: 1272

Answers (2)

I had the same problem and it was resolved by editing your Cloud SQL instance : Edit your instance

Then you go directly to the Authorized Networks :

Aloow your IPs

And it should be ok.

Upvotes: 2

maveme
maveme

Reputation: 79

Try setting a new password for your root user and add your ip address, then try again connecting with your MySQL client. This solution works for me.

Upvotes: 1

Related Questions