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.
Before you start
Section titled “Before you start”You need a Cloud SQL for PostgreSQL instance and database credentials. Choose one access method before filling in the connection form.
Find your connection details
Section titled “Find your connection details”| 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”- Create a PostgreSQL connection using connection basics.
- Enter the host and port for your selected access method.
- Enter the PostgreSQL database, user, and password.
- Configure the SSL settings appropriate to that access method.
- Click Test.
- Click Save & Connect after a successful test.
TLS and the proxy
Section titled “TLS and the proxy”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.
If it does not connect
Section titled “If it does not connect”connection refusedtimeout expiredA 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.
Related
Section titled “Related”Continue with write and run SQL, or return to the PostgreSQL overview.