Skip to content
Power. Scalability. Developer experience. Simple pricing.

The database PHP deserves

PlanetScale is a MySQL-compatible serverless database that pairs perfectly with PHP.

With developer-first features like branching, non-blocking schema changes, and real-time query analytics, you have everything you need to manage your database in one place.

Under the hood of PlanetScale lives Vitess, the technology that scaled YouTube, Slack, and more. With PlanetScale, you get the massive scale and power of Vitess with the extraordinary workflow of PlanetScale, all without having to hire a database expert to manage it for you.

The most cost-effective way to scale MySQL

Query performance analytics

  • With PlanetScale, you get an in-dashboard analytics dashboard to monitor your database down to the individual query level.
  • At-a-glance monitoring of rows read, rows written, query latency, and queries per second.
  • Deploy requests are overlayed on your analytics chart so you can easily tie performance back to a deployment.
  • Analyze all queries over the past 24 hours to discover if something is running too often, returning too many rows, and more.
  • Supports the use of SQL comments in your PHP code to track down individual query issues.

Powerful developer experience

  • Utilize a Git-like branching workflow for your database: create a branch off of your production schema, modify your schema, create a deploy request, and merge to production.
  • The PlanetScale workflow allows you to deploy non-blocking schema changes so you never experience locking.
  • Accidentally deployed a bad schema change? Instantly revert a schema change, without downtime or lost data.
  • Easily sync your database with your data warehouse for easy data analysis.
  • Serve your global users with read-only regions you can set up in seconds.

Effortless scale

  • Leverage Vitess, the battle-tested and reliable ACID-compliant MySQL orchestration layer that scaled YouTube.
  • Get automatic connection pooling, replication, horizontal sharding, and Vitess under-the-hood, so you can automatically scale to thousands of queries per second.
  • PlanetScale easily handles thousands of connections at once, without the memory-intensive overhead.
  • With our Enterprise plan, our solutions engineers will work with you to figure out the best horizontal sharding strategy for your application.

Predictable pricing

  • Our Scaler Pro plan allows you to easily upsize your cluster sizes, with no downtime, to scale as needed.
  • If you’re looking for a more customizable plan, our Enterprise offering is for you. We can create custom usage-based or resource-based pricing with unlimited branches. Fill out the form below so we can learn more about your business needs and see how we can help.
Spin up a database in seconds

Get started with PlanetScale and PHP

PlanetScale works out of the box with Laravel, Symfony, and more. No special driver required. You can follow one of our quickstarts below to spin up a database, connect to your application, run migrations, and deploy to production in minutes.

Plug and play

Terminal
# .env
HOST=xxxxxxx.us-east-3.psdb.cloud
DATABASE=php_database
USERNAME=xxxxxxxxxx
PASSWORD=xxxxxxxxxxxxxxxxxxxxxxx
MYSQL_ATTR_SSL_CA=/etc/ssl/cert.pem

Check out our PHP quickstart

The last database you'll ever need

Your business deserves a predictable database.

Never worry about another 3am wake-up call saying the site is down. Give your engineers the power they deserve with a PlanetScale database today.