Prerequisites
- A PlanetScale account with a database
- A VexiData account
Connect PlanetScale to VexiData
Create a password for VexiData
PlanetScale uses generated passwords for each connection. Create a dedicated one for VexiData:
- Log in to your PlanetScale Dashboard
- Select the database you want to connect
- Click Connect
- Select the Branch you want to connect to (e.g.,
main) - Click Create password
- Choose General as the connection type
- Copy the credentials shown:
| Parameter | Example |
|---|---|
| Host | aws.connect.psdb.cloud |
| Port | 3306 |
| Database | my_database |
| Username | abc123def456gh |
| Password | pscale_pw_aBcDeFgHiJkLmNoPqRsTuVwXyZ |
The password is only shown once when created. Save it immediately. If you lose it, you’ll need to create a new password.
Add the connection in VexiData
- Go to Data Sources in VexiData
- Click MySQL to open the connection form
- Fill in the details:
| Field | Value |
|---|---|
| Display Name | A name to identify this connection (e.g., “PlanetScale Production”) |
| Host | aws.connect.psdb.cloud (or your regional host) |
| Port | 3306 |
| Database | Your database name |
| Username | Your PlanetScale username |
| Password | Your PlanetScale password (starts with pscale_pw_) |
PlanetScale branches
PlanetScale supports database branching — each branch has its own connection credentials. When connecting to VexiData, make sure you select the correct branch (usuallymain for production data).
If you want to connect multiple branches (e.g., production and development), create a separate data source in VexiData for each one. You’ll need to create a separate password for each branch in PlanetScale.
Troubleshooting
Connection timed out
Connection timed out
- PlanetScale requires SSL for all connections. VexiData handles this automatically, but if you see timeout errors, verify the host and port are correct
- Check that your PlanetScale database is not in a sleeping state (free-tier databases sleep after inactivity)
Authentication failed
Authentication failed
- PlanetScale passwords start with
pscale_pw_. Make sure you copied the full password including this prefix - Passwords are only shown once when created. If you’ve lost it, create a new password from the PlanetScale dashboard
- Verify you’re connecting to the correct branch — each branch has its own credentials
No tables visible after connecting
No tables visible after connecting
- Check that you selected the correct branch when creating the password. Your
mainbranch has your production schema, while development branches may have different tables - Confirm the database name matches exactly what’s shown in PlanetScale
Some MySQL features don't work as expected
Some MySQL features don't work as expected
- PlanetScale runs on Vitess, which has some differences from standard MySQL. Most standard queries work normally, but certain advanced features (like foreign key constraints in some configurations) may behave differently