Skip to content

Serverless MySQL

A real MySQL endpoint in seconds. TLS by default, every standard MySQL driver works, from $5/mo on Solo. Not ready to pay? MariaDB speaks the same MySQL wire protocol on the Free plan, so mysql2, Prisma, and Drizzle connect to it unchanged. Cloud, desktop, or self-host with the Layerbase CLI.

Engine

Choose a database engine to provision.

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

Common MySQL questions

Is there a free MySQL tier?

Not for MySQL itself: it starts on Solo at $5/mo, having moved off the Free plan in July 2026 because it holds around half a gigabyte of memory sitting idle. The free path is MariaDB, which is on the Free plan at $0/mo with no card (2 databases, 5 GB of storage, up to 20 concurrent connections) and speaks the MySQL wire protocol, so mysql2, Prisma, Drizzle, mysqldump, the mysql CLI, Workbench, and DBeaver all talk to it without a code change. If you later need MySQL itself, the Convert tab on the database page does it in one click on Solo and above: it copies your MariaDB database into a new MySQL one without touching the original, and can carry your existing host, port, and password across so your connection string keeps working. A pre-check looks for the things MySQL cannot take, such as sequences or MariaDB-only column types, before it starts; it is best-effort rather than a guarantee, and row counts are compared table by table once the copy finishes. The same tab runs MySQL to MariaDB, so the door is open in both directions.

Free MariaDB on Layerbase
What is MySQL?

MySQL is one of the most widely deployed open-source relational databases, the default backend behind WordPress-style apps and a great many Rails and Laravel projects. Nearly every language has a mature MySQL driver, so the wire protocol is about as portable as SQL gets. Layerbase runs it as a managed endpoint with TLS on by default and a web SQL console, and the same engine runs locally through the Layerbase CLI and Layerbase Desktop.

How much does managed MySQL hosting cost?

MySQL starts on Solo at $5/mo, which is the cheapest plan that can create it, and Pro is $15/mo. Both are flat monthly prices with no usage meters, and the create flow shows the cost before you provision anything. MySQL is not on the Free plan, but MariaDB is, and it speaks the same MySQL wire protocol, so most MySQL drivers still have a free path here at $0/mo.

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.

How is TLS configured on a Layerbase MySQL database?

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. The Layerbase CLI manages multiple local MySQL versions with one command (lbase create mydb -e mysql), and Layerbase Desktop adds a GUI on top.