MySQL

Managed MySQL — the database next to your containers

A relational database for the state your application keeps — databases and users declared as configuration, a tier for every failure tolerance, backups that are always on, and point-in-time restore when a migration goes wrong. Manage it from the console, the Reis CLI or Terraform.

The database your code already speaks

MySQL 8.4 LTS, unmodified — the long-term-support release, with the SQL, drivers and tooling your team already knows. Your ORM, migration tool and client library connect the way they always have: point them at the instance handle on port 3306 from any container in the project. Laravel, Rails, Django, Spring, Prisma or anything else with a MySQL driver works without changes, and moving a database in is a dump and a connection-string change, not a rewrite.

Databases and users as configuration

Most managed databases hand you a server and a root password and leave the rest to you. On Bahriya you list the databases you want and the user that owns each one. The platform creates them, generates every password and keeps the instance matching the list: add an entry and the database appears on the running instance; remove one and, once you confirm by typing the instance's handle, it is dropped. Schemas you create yourself over SQL are never touched.

Pick your failure tolerance

A single node for workloads that can wait for a restart. A primary with read replicas for read-heavy applications. Or Group Replication across three or five members, where a failed primary is replaced automatically. Plans pair CPU and memory per node, from 0.5 vCPU / 1 GB to 8 vCPU / 32 GB, with 5 to 250 GB of storage per node — and the console shows the derived node count before you create anything, so the cost is never a surprise.

Backups you cannot forget

Scheduled dumps of every database plus binary logs shipped every 15 minutes give you a recovery window in every region the instance runs in. Restoring builds a new instance beside the old one, to the second you choose — so a bad migration or an accidental DELETE is an inconvenience, not an incident. Backup storage is billed per GB stored, per region, and nothing else about it is left to you.

Platform features

A database with the platform built in

Everything a relational database needs in production — provisioning, security, backups, recovery and visibility — without operating any of it.

Tiers

Single, replicated and highly available

One node that recovers from its own disk; a primary with one or two asynchronous read replicas; or MySQL Group Replication across three or five members. The tier is the one decision that shapes failure behaviour — your application code stays the same.

Availability

Automatic failover with majority commit

On the highly available tier a write is acknowledged only once a majority of the group holds it, and a failed primary is replaced automatically. Three members survive the loss of one; five survive the loss of two.

Scaling reads

A read-only endpoint

Replicated and highly available instances expose a second endpoint that spreads reads across replicas. Send reporting and read-heavy paths there and keep writes on the primary — no proxy to run, no topology to track.

Durability

Backups that cannot be switched off

Every database is dumped on a schedule you choose, and the binary log ships off the instance every 15 minutes, continuously. There is no setting that turns backups off, because a database without them is a liability.

Recovery

Point-in-time restore, never in place

Pick any second inside the recovery window and the platform builds a new instance holding your databases exactly as they were — while the original keeps serving traffic. Getting data back never puts the running database at risk.

Encryption

Encrypted at rest, keys managed

MySQL’s own encryption covers every table, including tables created later, plus the redo, undo and binary logs, and database users cannot opt a table out. Rotate the master key whenever you like, online, without disconnecting your applications.

Encryption

Volume encryption add-on

For a second layer, volume encryption encrypts every disk of the instance at the storage layer — covering temporary files and anything else MySQL writes outside its tables. Its keys, like all of them, are kept in your vault.

TLS

Certificates without the chores

Turn on TLS and the platform issues a certificate for every name the instance answers to. Choose a lifetime of 1, 3, 5 or 10 years; it renews 30 days before expiry, always from the same CA, and applies without a restart. Or bring your own TLS bundle.

Access

Private by default, open on purpose

Instances are reachable only from their own project. External access requires TLS and an IP allowlist — both enforced, not suggested — and gives the instance its own port at the platform edge, with custom hostnames if you want them.

Networking

Network policies

Attach network policies to an instance to decide exactly which projects and destinations it can talk to, alongside the rest of your project networking. Private-by-default stays the starting point.

Credentials

Passwords as vault secrets

The platform generates every password and keeps it in your vault as a managed secret attached to the project, so a container can reference it like any other secret. Reveal or rotate one when you need it; every reveal is in the activity log.

Observability

Metrics, logs and events

Follow each instance from the console: runtime metrics, server logs, deployment events and the recovery window per region, next to its billing. When you just need to look at a table, phpMyAdmin runs over HTTPS for the hours you ask for, then switches itself off.

Backups and recovery

Getting data back, to the second

Point-in-time recovery is part of every instance, not an upgrade. Here is how it works.

The recovery window

Each region keeps its own dumps and binary logs, so each region has its own recovery window — shown in the console as the range of moments its data can be taken back to. Because binary logs ship every 15 minutes, the end of the window trails the present by up to 15 minutes.

Choose exactly what comes back

Pick the region, the second in UTC, and whether to bring back all databases or just one. Changes committed at or after that second are left out. The new instance accepts the same database users and passwords, so your application can point at it straight away.

A staging copy to read from

Restore into a disposable staging copy, reachable from your project's containers — and, if you allow it, from outside or through phpMyAdmin — then copy back only the rows you need. Discard it when you are done; it is billed as one node while it exists.

Or a new instance to keep

Restore into an ordinary instance under a handle you choose, with backups of its own from the first minute. Use it to recover from a bad migration, to fork production data for an investigation, or to move to a fresh instance at a known-good point.

Operating it

Change it like any other resource

Sizing, regions and settings are configuration. The platform applies the change; you keep shipping.

Plans and storage

Move between plans as your load changes, and grow storage whenever you need to — it grows in place and never shrinks. CPU, memory and storage are per node, so the node count on the form is the multiplier on the bill.

Rolling updates

Plan, storage, databases, exposure and tuning changes apply as a rolling update in every selected region. Server settings that matter can be tuned per instance — max_connections, timeouts, sql_mode, character set and collation, the slow query log and more — while everything point-in-time recovery depends on stays managed.

Multi-region, region-local

Select one or more regions. Each runs an independent copy of the instance with its own data, backups and recovery window, and your containers always reach the copy in their own region through the same handle — no per-region connection strings.

Access control and activity log

Roles decide who can create, change or reveal credentials for an instance, and an instance can be shared with a single person without opening up the whole project. Every change, reveal, rotation, restore and certificate renewal is recorded in the activity log.

Use cases

Where relational fits

Pick the tier that matches how much a minute of downtime costs you.

Web applications

The database behind your HTTP containers. Give each service its own database and user on one instance, or its own instance — and let the containers read their passwords straight from the vault.

Read-heavy products

Catalogues, content and dashboards on the replicated tier — writes to the primary, reads spread across replicas through a read-only endpoint.

Systems of record

Orders, ledgers and accounts on the highly available tier, where every acknowledged write is held by a majority of the group, encrypted at rest, and recoverable to the second.

Migrations and integrations

Move a database in from elsewhere, or let a reporting tool hosted outside the platform read it — over verified TLS, from the addresses you allowlist, on a port reserved for your instance.

What you get on day one

Guided provisioning

Tier, plan, storage, databases and regions with sensible defaults and a derived node count before you create.

Per-node pricing

CPU, memory and storage are per node, backups per GB stored — estimate it in the pricing calculator before you deploy.

Operational visibility

Status, metrics, logs, events, connection endpoints and the recovery window in the console.

Documented end to end

Tiers, databases and users, connecting, TLS, backups and restore, encryption and phpMyAdmin — all in the knowledgebase.

Available and planned

Managed services

Services marked Available can be deployed today. The others are planned, and their timing may change.

PostgreSQL

Managed PostgreSQL with automated backups, point-in-time recovery, and regional deployment. Advanced SQL features, JSONB support, and extensions for modern application workloads.

CouchDB

A globally distributed, multi-region document database with built-in replication. Conflict-free sync across regions for offline-first applications and geo-distributed NoSQL workloads.

S3 Object Storage

S3-compatible object storage for files, media, backups, and static assets. Accessible from your containers or directly via standard S3 APIs and client libraries.

CDN

Global content delivery network for static assets, media, and API acceleration. Edge caching across multiple PoPs with automatic origin pull from your containers or object storage.

API Gateway

Your own dedicated API gateway in front of your services. JWT/OAuth2/OIDC and key auth, fine-grained rate limiting and quotas, request/response transformations, circuit breakers, canary releases and traffic splitting, gRPC and WebSocket proxying, and rich per-route analytics — all configured declaratively via Reis or the Console.

RabbitMQ

Managed RabbitMQ for asynchronous messaging between containers. Multi-region clusters, project-private networking, and per-node billing — same operational model as Memcached.

Run MySQL without operating MySQL

Create an instance next to your containers, declare the databases and users you need, and point your application at it.