Create a MySQL database
databases & regions
// what it does
Provisions a new Vitess-backed MySQL database with a `main` branch in the region you choose. This is the starting point of every PlanetScale project — after this you branch, develop, and deploy-request your way forward.
// shell
$ pscale database create mydb --region us-east$ pscale database create mydb --region us-east --wait// gotcha
Region is permanent: pick the one closest to your application servers (run `pscale region list` first), because moving later means dump-and-restore into a new database. Add --wait in scripts so the command blocks until the database is actually ready.