Connecting to GCP Cloud SQL MySQL


Any tips on how to connecto to a GCP Cloud SQL instance of MySQL???

Keep getting a timeout error as in some type of authentication problem.


The reason for your error may be because the connected party did not properly respond after a period of time. The possible reason for this can either be the database not being publicly accessible or requires whitelisting. Probable solution(s) can be:

  • Enable whitelist toggle and add this ip in your DB Server rules.
  • If not public - then connect via SSH Tunneling

You can refer the following documentation for common connector errors.

I hope this helps.