PlanetScale is a serverless MySQL platform built on Vitess, with database branching and online schema changes. QueryBear connects over the standard MySQL 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 PlanetScale connection details
- Open your database in the PlanetScale dashboard.
- Click Connect.
- Choose General (or “Connect with: MySQL”) and copy the credentials — host, username, password, and database. PlanetScale generates a dedicated username/password per connection.
Create a read-only user
PlanetScale manages users through its dashboard rather than rawCREATE USER. When generating a password under Connect, select a role with read-only access if your plan supports it. Otherwise, create the password and rely on QueryBear’s gateway to enforce read-only.
Add the connection to QueryBear
In the QueryBear dashboard → Connections → New connection → MySQL. Enter the PlanetScale host, username, password, database, and set SSL moderequire — PlanetScale mandates TLS and rejects unencrypted connections.
PlanetScale-specific notes
- TLS is required. Connections without SSL fail immediately. Always use
require. - No foreign key constraints by default: PlanetScale historically disabled FKs (Vitess). This doesn’t affect read queries, but your schema may not show FK relationships.
- Branching: Connect QueryBear to a specific branch’s credentials to query that branch — e.g. point at a dev branch that’s a copy of production.
- Multi-statement queries blocked: QueryBear’s parser rejects them regardless of PlanetScale’s settings.