Cloud SQL is Google Cloud’s managed database service for PostgreSQL and MySQL. QueryBear connects over the standard wire protocol, giving your AI clients safe, read-only access through QueryBear’s security gateway.
Get your Cloud SQL connection details
- Open the Cloud SQL instances page.
- Select your instance and note the Public IP address and port (
5432 Postgres, 3306 MySQL).
Allow QueryBear’s IP
Cloud SQL restricts connections by Authorized networks:
- Get QueryBear’s egress IP from the dashboard under Connections → Network.
- In the Cloud SQL instance → Connections → Networking, add that IP under Authorized networks.
- Enable Public IP if not already on.
Prefer not to expose a public IP? You can run the Cloud SQL Auth Proxy on a host you control and point QueryBear’s connector at the proxy. For most read-only analytics setups, an authorized-network public IP with SSL is simpler.
Create a read-only user
Add the connection to QueryBear
In the QueryBear dashboard → Connections → New connection, choose PostgreSQL or MySQL, enter the public IP, and set SSL mode require. Cloud SQL supports server-side TLS.
Cloud SQL-specific notes
- Authorized networks: Connections fail silently if QueryBear’s IP isn’t allow-listed. This is the most common setup issue.
- Read replicas: Cloud SQL read replicas have their own IPs — point QueryBear at a replica to isolate AI load.
- SSL enforcement: If your instance requires SSL, QueryBear’s
require mode satisfies it.
Connect to your AI client
Postgres: Claude Code · Cursor · ChatGPT
MySQL: Claude Code · Cursor · ChatGPT