Skip to content
← Back to Integrations Marketplace
Avatar

PlanetScale

Select a Template

Overview

PlanetScale is a MySQL compatible, serverless database platform powered by Vitess. It's a serverless database platform you can start in seconds and scale continuously to meet your needs

This integration auto-generates access tokens and connects your apps to your PlanetScale database with zero config needed.

To get started, simply install the integration and use one of our Node.js or Go clients to connect to PlanetScale.

Instructions

Get started with a few clicks

  1. Select the integration from the integrations marketplace and add it to your Vercel project
  2. Sign in or sign up if you haven't already
  3. When prompted, select an existing PlanetScale database or create a new one to connect to your Vercel project
  4. PlanetScale will automatically create any new databases and link them to your Vercel project

What the integration does

The integration creates a new database (if requested) and its associated service tokens. It will set the following environment variables in your project:

PLANETSCALE_DB

PLANETSCALE_DB_HOST

PLANETSCALE_DB_USERNAME

PLANETSCALE_DB_PASSWORD

PLANETSCALE_SSL_CERT_PATH

PLANETSCALE_ORG

PLANETSCALE_TOKEN

PLANETSCALE_TOKEN_NAME

These environment variables are used by our clients to connect to PlanetScale.

Pre-built solutions

Get Started With Next.js and PlanetScale Today.