Connection Options for External Applications

This page describes the options for connecting from an application running outside of the Google Cloud Platform, including a mysql client, to your Cloud SQL instance.

The following table compares the options for connecting from an external application:

Connection option Secure, encrypted? More information Notes
Public IP address with SSL Yes SSL certificate management required
Public IP address without SSL No Not recommended for production instances.
Cloud SQL Proxy Yes Not available for First Generation instances.
Cloud SQL Proxy Docker image Yes Not available for First Generation instances.
JDBC Socket Library Yes Java programming language only.
Not available for First Generation instances.
Go Proxy Library Yes Go programming language only.
Not available for First Generation instances.
Cloud Shell No Uses the Cloud SQL Proxy to easily connect from the Google Cloud Platform Console. Best for quick administration tasks requiring the mysql command-line tool.
Was this page helpful? Let us know how we did:

Send feedback about...

Cloud SQL for MySQL