Tuesday, September 11, 2018

[google-cloud-sql-discuss] Re: Unable to connect to Mysql

Hello,

Is your MySQL client installed on a Google Compute Engine (GCE) instance? This all depends on whether you are connecting your GCE instance to a Cloud SQL MySQL First Generation (1st Gen) instance or Second Generation (2nd Gen) instance. This documentation outlines the steps to follow [1]. If you are connecting to a 1st Gen instance you will have to use an IPv4 address to connect, however, if you are connecting to a 2nd Gen instance you have the option of connecting using a Cloud SQL Proxy [2], or a proxy Docker image [3].

If you run into connection issues, use these documentations to diagnose and troubleshoot those issues [4][5]. I hope this helps!

[1] https://cloud.google.com/sql/docs/mysql/connect-compute-engine
[2] https://cloud.google.com/sql/docs/mysql/connect-compute-engine#gce-connect-proxy
[3] https://cloud.google.com/sql/docs/mysql/connect-docker
[4] https://cloud.google.com/sql/docs/mysql/diagnose-issues
[5] https://cloud.google.com/sql/docs/mysql/sql-proxy#troubleshooting

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/ceedfddf-d38e-4f60-ad6a-4b1665ebad88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment