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
IP address with SSL Yes SSL certificate management required
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 temporary IP whitelisting to easily connect from the Google Cloud Platform Console. Best for quick administration tasks requiring the mysql command-line tool.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud SQL for MySQL