Connection Options for External Applications

This page describes the options for connecting from an application running outside of the Google Cloud Platform, including a psql 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
Cloud SQL Proxy Docker image Yes
JDBC Socket Library Yes Java programming language only.
Go Proxy Library Yes Go programming language only.
Cloud Shell No Uses temporary IP whitelisting to easily connect from the Google Cloud Platform Console. Best for quick administration tasks requiring the psql command-line tool.

Send feedback about...

Cloud SQL for PostgreSQL