Skip to content

Connect to Google Cloud SQL for PostgreSQL from Mac

Use a reachable Cloud SQL address or a local Cloud SQL Auth Proxy TCP port as TableAI’s host and port. The instance connection name identifies an instance to the proxy; it is not a database host address.

You need a Cloud SQL for PostgreSQL instance and database credentials. Choose one access method before filling in the connection form.

Access method Host and network requirement
Direct public IP Instance address, with your source IP permitted by authorized networks
Direct private IP Private address reachable through your approved network route
Local Auth Proxy 127.0.0.1 and the proxy’s local TCP port

For proxy access, follow Google’s Auth Proxy setup and keep the proxy running. For direct access, follow Google’s connection checks.

Connect to Google Cloud SQL for PostgreSQL from Mac

Section titled “Connect to Google Cloud SQL for PostgreSQL from Mac”
  1. Create a PostgreSQL connection using connection basics.
  2. Enter the host and port for your selected access method.
  3. Enter the PostgreSQL database, user, and password.
  4. Configure the SSL settings appropriate to that access method.
  5. Click Test.
  6. Click Save & Connect after a successful test.

For a direct connection, use the instance’s SSL policy and select required files in SSL/TLS settings. The Auth Proxy secures its connection to Cloud SQL separately from the local connection between TableAI and the proxy. See how the proxy works for authentication and network requirements.

connection refused
timeout expired

A refusal at 127.0.0.1 usually means the proxy is not listening on the port in TableAI. For a direct timeout, check authorized networks or the private route. The proxy also needs permission and network access to reach the instance.

See connection failed for network checks and 28P01 for rejected database credentials.

Continue with write and run SQL, or return to the PostgreSQL overview.