问题
I have created a MySql server in Google Cloud SQL and trying it to connect it from my local machine using MySql Workbench but i am not able to establish a connection to it.
I get the following error Failed to Connect to MySQL at {IP-Address}:3306 with user root(10060)
回答1:
If you are trying to connect from outside network to gcp sql instance you need to add your public ip of your machine in the connection of sql instance
- Go to your sql instance
- Go to Connections tab
- Under Connectivity select public IP and add a network by giving CIDR for your IP and save it
Then check with your sql client or workbench
来源:https://stackoverflow.com/questions/54123009/cannot-connect-google-cloud-sql-in-mysql-workbench