![](/_next/image?url=https%3A%2F%2Fvercel.com%2Fapi%2Fv1%2Fintegrations%2Fassets%2Foac_ni8CGiTU3oM25q1k2L6unVMp%2Fimages%2F9e131c5384df1d8c3eb9e34461c72da0fb01ecc2.png&w=3840&q=75)
![](/_next/image?url=https%3A%2F%2Fvercel.com%2Fapi%2Fv1%2Fintegrations%2Fassets%2Foac_ni8CGiTU3oM25q1k2L6unVMp%2Fimages%2Fad6ed9ccd0eb5b5cfb69de25350bc97f37a394bd.png&w=3840&q=75)
![](/_next/image?url=https%3A%2F%2Fvercel.com%2Fapi%2Fv1%2Fintegrations%2Fassets%2Foac_ni8CGiTU3oM25q1k2L6unVMp%2Fimages%2F023242027046bc9af1e0b05b2ce3f119e1dccc29.png&w=3840&q=75)
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 connections strings and connects your Vercel projects to your PlanetScale database with zero config needed.
Instructions
What the integration does
The integration connects to your existing PlanetScale database and sets the necessary environment variables in your Vercel project. These environment variables will differ depending on the language or framework you're using. We include a dropdown in the integration setup that lets you select the framework you're using, and then we'll automatically create the applicable environment variables for you. To get started, you just need a PlanetScale database and a Vercel project.
Environment Variables
General framework
PLANETSCALE_DB PLANETSCALE_DB_USERNAME PLANETSCALE_DB_PASSWORD PLANETSCALE_DB_HOST PLANETSCALE_SSL_CERT_PATH
Prisma framework
DATABASE_URL
Node.js framework
DATABASE_URL