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.Documentation Index
Fetch the complete documentation index at: https://docs.querybear.com/llms.txt
Use this file to discover all available pages before exploring further.
Get your Cloud SQL connection details
- Open the Cloud SQL instances page.
- Select your instance and note the Public IP address and port (
5432Postgres,3306MySQL).
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.
Create a read-only user
- Postgres: read-only role SQL.
- MySQL: read-only user SQL.
Add the connection to QueryBear
In the QueryBear dashboard → Connections → New connection, choose PostgreSQL or MySQL, enter the public IP, and set SSL moderequire. 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
requiremode satisfies it.