Skip to main content
The PlanetScale provider enables you to create and manage MySQL-compatible serverless databases with Git-like branching, zero-downtime migrations, and autoscaling.

Installation

Credentials

Create a service token at app.planetscale.com and set environment variables:

Available resources

  • Database - PlanetScale MySQL database
  • Branch - Database branch for development
  • Password - Database credentials

Example usage

Database branching workflow

PlanetScale’s branching model enables safe schema changes:

Use with Cloudflare Workers

Next steps

PlanetScale API

Complete API reference

Hyperdrive

Connection pooling for PlanetScale