cloud-sql-proxy

Securely connect to Cloud SQL instances from your local machine

brewmacoslinux
Try with needOr install directly
Source

About

Utility for connecting securely to your Cloud SQL instances

Commands

cloud-sql-proxy

Examples

Connect to a Cloud SQL instance and forward connections to localhost:3306$ cloud-sql-proxy PROJECT_ID:REGION:INSTANCE_NAME --port 3306
Connect using instance connection name with custom local port$ cloud-sql-proxy 'PROJECT_ID:REGION:INSTANCE_NAME' --port 5432
Connect using a service account key file$ cloud-sql-proxy --credentials-file=/path/to/key.json PROJECT_ID:REGION:INSTANCE_NAME