Skip to Content
CatalogsPlanetScale

PlanetScale

catalog.schema.table

PlanetScale’s MySQL (Vitess) databases use the MySQL wire protocol, so the catalog is an ordinary MySQL catalog: the schema is the middle part, and everything in PostgreSQL & MySQL applies. Picking PlanetScale in the console opens the MySQL form with the PlanetScale host and TLS requirement filled in.

This page covers PlanetScale MySQL (Vitess). PlanetScale Postgres is a separate product with a different host and TLS shape — connect it with the PostgreSQL & MySQL connector, not this preset.

What you need

FieldValue
Hostaws.connect.psdb.cloud (or gcp.connect.psdb.cloud on GCP)
Port3306
DatabaseThe branch’s database name
UserThe branch username from the connection string
PasswordThe branch password, pscale_pw_…
SSL moderequired — PlanetScale rejects unencrypted connections
SchemaOptional. Usually the database name is the schema

The values come from the database’s Connect button in the PlanetScale dashboard. Use the general connection string, not a framework snippet that adds its own options.

Branch credentials

PlanetScale credentials belong to a branch, not to the organization. A password created for main will not connect to another branch, and revoking it only affects that branch.

Create a credential in the dashboard, or with the CLI:

pscale password create <database> <branch> thunderduck --role reader

The command prints the username and password once. Use --role reader for a read-only credential; --role admin is only needed if the catalog should write. A credential is shown only at creation, so store it in the catalog and revoke the old one if it is lost.

PlanetScale rotates nothing for you — a deleted password stops working immediately, and refreshing the catalog will fail until the form holds a current one.

Schemas and tables

A PlanetScale database maps to one MySQL database, which Thunderduck shows as a single schema. Vitess sharding is transparent to SQL, so catalog.<database>.<table> works the same on a sharded keyspace as on an unsharded one.

Keyspace names with characters MySQL would normally reject are addressed with the connector’s quoting rules; the Tables page shows the exact reference to copy.

Network access

PlanetScale is reachable from the public internet and does not require an IP allowlist for these credentials. If your organization fronts the database with its own proxy or firewall, allow Thunderduck’s addresses there — see static egress addresses.

If the connection fails

MessageLikely cause
SSL connection error, SSL is requiredSSL mode lowered to preferred or disabled; set it back to required
Access denied for user …The credential belongs to another branch, or was revoked
Unknown database …The database name is the branch name rather than the MySQL database; copy it from the Connect string
connection refused, timeoutA proxy or firewall in front of PlanetScale; the public host needs no allowlist of its own

Writing

The catalog is writable by default, so CREATE TABLE … AS SELECT and INSERT work if the credential’s role permits them. A reader credential is read-only at the PlanetScale level; marking the catalog read-only in the form also blocks writes at attach time.