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
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
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 the Cloud SQL Proxy to easily connect from the Google Cloud Platform Console. Best for quick administration tasks requiring the psql command-line tool.
Was this page helpful? Let us know how we did:

Send feedback about...

Cloud SQL for PostgreSQL