Skip to content

Serverless MySQL

A real MySQL endpoint in seconds. TLS by default, every standard MySQL driver works. From $5/mo on Solo; MariaDB speaks the same wire protocol on the Free tier. Cloud, desktop, or self-host with SpinDB.

SQL Console
MySQL

Tables

  • users
  • events
  • orders
  • sessions
SELECT id, name, created_at
FROM events
WHERE created_at > NOW() - INTERVAL '7 days'
ORDER BY id DESC LIMIT 5;
idnamecreated_at
1247signup2026-03-12 14:21
1246purchase2026-03-12 14:08
1245login2026-03-12 13:55
1244signup2026-03-12 13:44
1243purchase2026-03-12 13:30
5 rows ยท 12ms

Branch MySQL in seconds

Fork a running MySQL into a full, isolated copy with its own connection string. Copy-on-write makes it near-instant, not a dump and restore. Point a preview deploy at it, test a migration, then throw it away. Layerbase branches 9 engines, not just Postgres.

See how branching works

Production features, free tier included

Every MySQL database ships with the same primitives: TLS, web console, hibernation, and a real dashboard. No tiered features hidden behind a sales call.

Web IDE

Query console in the dashboard, no extra client to install.

Included

TLS by default

All connections encrypted. No setup required.

Included

Always-on connections

Pin a database to your always-on pool to prevent hibernation.

Included

Scale to zero

Hibernates when idle. Wakes on the next connection.

Included

Connection pooling

Pooled endpoint for serverless and edge workloads.

Included

Direct connections

Bypass the pooler for migrations and replication.

Included

Native HTTPS endpoint

Engines whose own wire protocol speaks HTTPS. Every database, including this one, is also queryable over the platform's HTTPS query API and web console.

Not available

Serverless driver

Drop-in HTTP driver for edge runtimes (Upstash REST, PlanetScale, or the engine-native client).

Included

IP whitelisting

Restrict access to specific IPs or CIDR ranges.

Included

Automatic backups

Scheduled dumps and volume snapshots with one-click restore on paid plans. Free tier includes a manual backup slot.

Included

Predictable pricing, no cloud setup

MySQL on Layerbase Cloud is priced the same way as every other engine: a flat monthly plan with nothing metered behind it.

A fixed monthly price

Plans are flat: Free at $0, then $5/mo Solo and $15/mo Pro. No per-hour compute meter, no per-database line items, and no bill that changes shape when your traffic does.

No bandwidth charges

Reads and writes are not metered. There are no ingress or egress fees, so moving data in and out of your database never adds to the bill.

No cloud account to wire up

You do not need an AWS, GCP, or Azure account. Sign up, create a database, and connect. Layerbase runs the infrastructure, so there is no cloud provider to configure or pay separately.

Hosted MySQL, compared

PlanetScale

Free tier
None since April 2024
Billing
PS-5 at $5/mo single node, $15/mo for high availability

Layerbase

Free tier
MySQL from Solo at $5/mo; MariaDB, a wire-compatible drop-in, is on the Free tier
Billing
$5 or $15/mo flat. No meters.

Competitor facts as of July 2026, from public pricing pages.

Connect with any MySQL client

WordPress-style apps, Rails or Laravel workloads, existing MySQL schemas, and services that need broad MySQL client compatibility.

  • Host a WordPress, Rails, or Laravel app database without setting up your own server
  • Run migrations from a legacy MySQL deployment without changing client code
  • Serverless apps that prefer the PlanetScale serverless driver over a TCP connection
  • Per-developer dev databases that match production exactly
  • Self-host on your own hardware with SpinDB when compliance requires it
Full MySQL connection guide
bash
MySQL
mysql --ssl-mode=REQUIRED -h your-host.cloud.layerbase.dev -P <port> -u layerbase -p app

Already have data? Migrate it from Railway, PlanetScale Any connection string works too.

Common MySQL questions

Which MySQL version do you run?

Layerbase Cloud tracks recent stable MySQL releases, currently 9.x, with 8.4 also available. You can pick a specific supported version from the create flow.

Do you support the PlanetScale serverless driver?

Yes. MySQL-family databases on Layerbase also speak the PlanetScale serverless driver via an HTTP-based hostname, which is the right path for edge runtimes that cannot hold a TCP connection.

Can I use mysqldump and standard tooling?

Yes. The endpoint speaks the standard MySQL wire protocol. mysqldump, mysql CLI, MySQL Workbench, DBeaver, Prisma, Drizzle, and any standard driver work without code changes.

TLS configuration?

TLS is required and enabled by default. Most clients accept the default trust store; for stricter setups, the dashboard exposes the CA certificate.

Can I run MySQL locally?

Yes. SpinDB manages multiple local MySQL versions with one command, and Layerbase Desktop adds a GUI on top.