databases (core)10 minutes

Get Started with PlanetScale

Verified 1mo ago

Quick Summary

MySQL-compatible serverless database that scales without limits

Best for: Growth-stage startups and scale-ups who need MySQL compatibility with horizontal scaling and zero-downtime schema changes
Time to first integration: 10 minutes

📋Prerequisites

  • Node.js 18+ installed
  • A PlanetScale account — sign up here
  • An existing project (Next.js, React, or Node.js recommended)

Setup Steps

4 steps
1

Create a database

Create a database in the PlanetScale dashboard.

2

Get a connection string

Create a password and copy the connection string.

bash
DATABASE_URL=mysql://user:pass@aws.connect.psdb.cloud/dbname?sslaccept=strict
3

Connect

Use Prisma with relationMode="prisma", or the serverless driver.

4

Branch and deploy

Make schema changes on a branch, then open a deploy request to merge.

Related Guides

Setting up a full stack? Check out these complementary guides.

Links