Master da Web
Managed MySQL

Managed MySQL for Laravel, WordPress and PHP

MySQL 8.4 on a machine of its own, with a backup every night, the binary log shipped every 30 seconds, point-in-time restore and TLS required. Connect it to your serverless apps, your VPS instances or any server, paying in reais.

  • MySQL 8.4 LTS, with TLS required
  • Point-in-time restore up to 7 days back
  • sql_mode, time_zone and more, without a restart
  • Copy from another MySQL or upload a .sql.gz

No lock-in: prepaid credit via Pix, boleto or card, billed by the second.

Version
8.4 LTS
Restore
Point-in-time, up to 7 days
Connections
Up to 700 concurrent
Disk
Up to 1 TB, no restart
Starting at
R$106.60/month
Production-ready

The MySQL your app already uses, without the upkeep

You get the address and the password. Backups, certificates, tuning to the size and monitoring are handled by the platform.

Nightly backups and the binary log every 30 seconds

A full backup every night and the binary log shipped every 30 seconds: restore any second of the backup window, up to 7 days, into a new database, without touching the live one.

Migration without the guesswork

Copy straight from another MySQL reachable over the internet, or upload a .sql or .sql.gz file, with an upload that resumes where it stopped. A restore point is marked first.

TLS required, with nothing to configure

The server refuses connections without TLS. Its own hostname and certificate, from Let's Encrypt, renewed automatically: ssl-mode=VERIFY_IDENTITY checks both the certificate and the hostname.

Slow queries and metrics

Connections, queries per second, reads and writes, buffer pool hit rate and lock waits minute by minute for 30 days, and the slow queries of the last 7 days.

Only those you allow can reach it

Your connected services, up to 50 VPS instances picked by name, up to 50 addresses or networks, or the mw db tunnel. The rest of the internet can't connect.

Grows with your app

More CPU and memory with a restart, right away or in the maintenance window. The disk grows without a restart and can grow on its own past 85%.

Parameters

Tune MySQL to your app, without a restart

The parameters apps usually ask for, in the console. Everything else comes tuned to the database's size.

WordPress and PHP on a VPS instance

Take the database out of the site's server: WordPress stays on your VPS instance, and MySQL gets point-in-time backups, TLS and metrics. The console shows the wp-config.php ready to paste.

  • Allow the instance by name: the database keeps up with its IPs
  • In the same location as the instance, with sub-millisecond responses
  • PDO with PDO::MYSQL_ATTR_SSL_CA verifies the certificate

wp-config.php

// the managed database, with TLSdefine( 'DB_NAME', 'loja' );define( 'DB_USER', 'loja' );define( 'DB_PASSWORD', 'the-database-password' );define( 'DB_HOST', '<id>.db.meu-app.net:3306' );define( 'MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL );

Behavior

sql_mode
Any combination of the 21 modes, such as ONLY_FULL_GROUP_BY and STRICT_TRANS_TABLES.
time_zone
The time zone of date functions, such as -03:00.
transaction_isolation
All 4 levels; the default is REPEATABLE-READ.
group_concat_max_len
Up to 64 MiB for GROUP_CONCAT.

Limits and performance

max_allowed_packet
From 1 MiB to 1 GiB; the default is 64 MiB.
long_query_time
How long before a query counts as slow, from 0.1 s.
wait_timeout
How long an idle connection lasts, from 1 minute to 7 days.
innodb_lock_wait_timeout
How long to wait for a lock, from 1 s to 1 hour.

For security, LOAD DATA LOCAL INFILE is turned off. Several databases on the same instance: up to 21, with up to 20 users.

Connect

Connect to MySQL from any language

On a connected service, the variables arrive ready, with TLS on. Elsewhere, the console shows the connection for your .env, PDO, WordPress and .NET.

  • Serverless apps

    Connect the database to a service and the variables arrive on their own, with a login just for that service, rotated every 90 days.

  • Your VPS instances

    Pick the instance in the list of allowed addresses: MySQL keeps up when the instance's IP changes.

  • Your computer

    mw db connect opens the client; mw db tunnel, a local port for DBeaver or your ORM, without exposing the database.

.env
# the connected database's variables, in Laravel formatDB_CONNECTION=mysqlDB_HOST=<id>.db.meu-app.netDB_PORT=3306DB_DATABASE=lojaDB_USERNAME=loja_webDB_PASSWORD=generated-for-the-serviceMYSQL_ATTR_SSL_CA=/etc/ssl/certs/ca-certificates.crt
Backup and restore

Undo the DELETE without a WHERE

A full backup every night and the binary log shipped every 30 seconds, encrypted with a key unique to your database.

Restores into a new database

The live database isn't touched. The new one can be a different size, and the console switches your services over to it in one click.

Automatic restore points

Before a deployment that runs migrations, an import, hibernation and deletion, a restore point is marked automatically.

Worry-free deletion

Deletion protection is on by default; a deleted database leaves its backups for 7 days, free of charge, so you can bring it back.

A .sql.gz dump whenever you want

Download a compressed dump at any time; it stays available for download for 7 days.

What it's for

Where managed MySQL shines

The web's most widely used database, without the tedious part.

01

Laravel apps

DB_* filled in, migrations before traffic and a restore point before each one.

02

WordPress and WooCommerce

The site on your VPS instance, the database managed, with point-in-time backups.

03

Legacy PHP systems

An adjustable sql_mode so the old system runs the way it always has.

04

Online stores

Orders and inventory, with restore to the second before a mistake.

05

Multi-tenant SaaS

Up to 21 databases on the same instance, with read-write or read-only users.

06

Reports

A read-only user for BI, with no risk to production.

Migration

Bring your MySQL over from your current host

Copy straight from your current database or upload a file. A restore point is marked before every import.

  1. 1

    Create the database

    MySQL 8.4, sized for your app, in the console or with mw db create.

  2. 2

    Import

    Enter your current database's connection URL and the data comes straight from it, or upload a .sql or .sql.gz file.

  3. 3

    Switch the address

    Connect the database to the service or update the app's DB_HOST.

Terminal

$ mw db create loja-wp --engine mysql --project loja # copied straight from your current database, reachable over the internet$ mw db import loja-wp --from-url "mysql://user:password@host.example.com:3306/loja" # or from a file: if the upload drops, it resumes where it stopped$ mw db import loja-wp backup.sql.gz

Bring it from wherever it runs today

  • cPanel hosting
  • Amazon RDS
  • DigitalOcean
  • PlanetScale
  • Your VPS
Sizes and prices

How much managed MySQL costs

A fixed monthly price, in reais, billed by the second: a database running all month is never billed past 730 hours.

Build your database

Choose the size and see the monthly price. You can change it later.

Size

R$1.90 per GB a month. It grows without a restart, up to 1,000 GB.

Estimated total

R$154.80/month

≈ R$0.2121 an hour

1 vCPU · 2 GB · 20 GB
R$154.80
  • Backups and point-in-time restore
  • TLS with a public certificate
  • Metrics and slow queries
  • Connection alerts
Create MySQL

Billed by the second, from when the database is ready. No lock-in.

  • A hibernated database pays only for its backup storage: R$0.45 per GB a month.
Compare

Managed MySQL, on your VPS or on a cloud abroad

All three work. The difference is what's left to you and how much it costs, in reais.

Comparison of managed MySQL, MySQL installed on a VPS and international clouds
Master da WebInstalled on your VPSInternational clouds
Setup and tuningReady in a few minutes, tuned to its sizeUp to youReady
Point-in-time restoreYesYou set it up and test itYes
TLSRequired, with a public certificateYou configure itOptional
Billing currencyReais, no IOF taxReaisUS dollars, plus IOF tax
Where the data livesBelo HorizonteWherever the VPS isUsually outside Brazil
SupportIn PortugueseIn PortugueseUsually in English
FAQ

Frequently asked questions about managed MySQL

What everyone asks before moving their database to the cloud.

Your MySQL, ready in a few minutes

Choose the size, create your MySQL and connect in a few minutes.