Skip to main content
Every hosted environment can run a managed database, provisioned and operated by Meridian: no database server to run, no credentials to copy.

Provisioning one

Add a database from Hosting → Database: pick the engine and, optionally, a name. Provisioning takes up to five minutes, and the credentials are wired into your app automatically. Two engines run on Meridian’s managed database servers: MySQL (8.4) and PostgreSQL (18). Both get the same backups, restores, SQL console, metrics and plan limits.

One engine per app

An app has one engine, shared by every environment and every developer database, so your Prisma schema and migrations work everywhere the app runs. You choose it when you create the app: the create form offers MySQL and PostgreSQL and starts on MySQL (it shows no choice while only MySQL is offered). While the app has no database, you can still choose it on Hosting → Database: the Add database window lists the engines and preselects the app’s. After that, the window shows only the app’s engine, because the engine is fixed while the app has any database (including a failed one, and a developer database). To change engine, delete the app’s databases, then add one in the other engine. If your plan includes a database, the production database is created with the app, in the engine you chose on the create form. To change the engine of an app created that way, delete that database before you store data in it, then add one in the other engine. Your Prisma datasource must name the same engine: provider = "mysql" on a MySQL app, provider = "postgresql" on a PostgreSQL app. Meridian warns when you connect the repository and stops the deploy before the build when they differ, since the app could not open its database. The check applies to a datasource that reads url = env("DATABASE_URL") from the managed connection, and is skipped when you set your own DATABASE_URL.

How your app connects

The connection reaches your app as DATABASE_URL and the managed DB_* variables, injected at deploy time, so nothing is hardcoded, and the credentials never live in your repository. A DATABASE_URL you set yourself takes precedence over the managed one. The host is 127.0.0.1 because each instance of your app reaches its database through an encrypted database connector that runs beside it. On PostgreSQL your app’s role owns its database and the public schema, so Prisma Migrate can create, alter and drop everything in it. A role can open 40 connections at most, which is far more than Prisma’s pool needs. If provisioning or a restore fails, Delete and recreate asks you to confirm permanent deletion of the database and all its data. Deleting a database also asks you to confirm it’s you. A failed database can still contain data. After deletion, the form lets you create a new, empty database. Closing that form leaves the old database deleted and does not restore its data.

Connection details

The screen shows the connection your app uses inside Meridian: type, host, port, database, user, and the SSL requirement. The password stays hidden until a collaborator with Credentials: Manage (credentials.manage) access to the app confirms it’s them and selects Reveal password. Each reveal is recorded in the organization audit log. Regular add-on and environment responses never include it. The host is a private address. It is reachable from your hosted app, not from the internet, so these values do not work from your laptop or another cloud.

Confirming your identity

The database page and external access give access to your app’s data: its connection details, password, backups, SQL console and the credentials that reach it from outside Meridian. So each of them asks you to confirm it’s you when you open it. Until you do, a Confirm it’s you window opens over a blurred outline of the page, and nothing of the page is loaded. The window cannot be closed: it stays until you confirm. To leave the page instead, use the sidebar, which stays usable, like the rest of the dashboard. These pages only ask while the database is up: when there is none yet, or while it is being created or deleted, there is nothing to confirm. Choose how to confirm:
  • Your password, whenever your account has one, with or without a second factor.
  • Beside it, your passkey if you registered one, otherwise a code from your authenticator app.
  • With no password (you signed up with social login), your passkey, or else an authenticator code. With none of the three, select Sign in again with Google and sign in with the Google account linked to yours. You stay on the page. Signing out and back in the usual way does not count as a confirmation.
One confirmation covers both pages. It ends after 15 minutes without using them: opening one of them, running a query, revealing the password, a backup action, deleting the database or an external access change each restarts the 15 minutes. A page left open locks again on its own: the window comes back, a revealed password is hidden, and what the page had loaded is dropped. A statement still running in the SQL console when the page locks is kept: once you confirm it’s you again, the console shows it with its result, so you can tell whether it ran. Moving around the dashboard keeps the confirmation, while a page refresh, a new tab or a new sign-in asks again. A recent sign-in does not count as a confirmation, and confirming here does not count for account changes such as your password or 2FA. After five wrong passwords or codes, new attempts are refused for a few minutes. A passkey still works. The API enforces this too: listing the backups, listing the external access credentials and their connections, running a query, reading the schema, revealing the password, downloading or restoring a backup and deleting the database are refused until you confirm it’s you. Deleting an environment that has a database asks the same. A Meridian support view of your account can never confirm it’s you, so these pages show it a notice instead. Sample applications in demo mode ask nothing. The database’s metrics do not ask for this confirmation. Storage, connections, query time and backup size say nothing about the data itself, so their reports open in Reports like any other.

Connecting from outside

If the other system only needs your data, expose an HTTPS endpoint on your hosted app and call that instead. Your app keeps control of what is read and written, and nothing new reaches the database. When a system outside Meridian does need SQL (your own backend on another cloud, a BI tool, a migration script), give it an external access credential from Hosting → Database → External access. It connects to db.the-meridian.app (port 3306 for MySQL, 5432 for PostgreSQL) with two things, and needs both:
  • A client certificate. Its private key is generated in your browser and never sent to Meridian.
  • A database user and password that work on this one database only.
External access works for both engines. PostgreSQL clients need sslmode=verify-full, and a query can be cancelled only over TLS (libpq 17 or newer, not Ctrl-C in psql). See External database access. Each credential is read-only or read-write, and can be limited to allowed networks (up to 20, in CIDR notation). A database can have at most 5 active credentials, which share 10 connections between them (5 each by default). After 10 failed logins within 15 minutes, a credential is locked for 15 minutes. The password and the private key are shown once, when the credential is created or rotated, in a bundle you download. Meridian keeps no copy of either. Rotating issues a new certificate and password and stops the old pair on its next connection. Revoking deletes the credential’s database user, and connections using it stop within 30 seconds. Creating, editing, rotating and revoking credentials needs Credentials: Manage (credentials.manage). Listing them needs Hosting: View. See External database access for the full guide, the settings for each driver, and troubleshooting.

Reading and writing data

There’s a SQL console in the dashboard. It’s deliberately not a raw pipe:
  • Every statement is classified server-side. The client’s claim about what a statement does is never trusted.
  • Reads are available to anyone with Hosting: View on the app.
  • Any write or DDL statement escalates the whole request to the Hosting: Delete permission, so a viewer can investigate data without being able to change it.
EXPLAIN, DESCRIBE and DESC follow the permissions of the statement they explain. Describing a table stays a read. EXPLAIN ANALYZE and EXPLAIN FOR CONNECTION require write access. With that access, you still receive the query plan’s rows and columns. Read requests run in a read-only transaction on both engines, so the database itself refuses a change hidden in a statement that looks like a read. A read stops with a timeout error after 15 seconds on both engines. On PostgreSQL:
  • The console reads PostgreSQL syntax: -- and nested /* */ comments, "quoted" identifiers, E'...' and dollar-quoted ($$ ... $$) strings. # is an operator, not a comment.
  • SELECT ... INTO creates a table, so it counts as DDL. A statement that calls a function with side effects (nextval, setval, set_config, pg_notify, pg_sleep, large-object and dblink functions, and others) counts as a write.
  • A few statements are always refused: role and permission changes (CREATE ROLE, GRANT, SET ROLE, SET SESSION AUTHORIZATION), CREATE EXTENSION, ALTER SYSTEM, COPY to or from a file or a program, LISTEN and NOTIFY, VACUUM, and reads of the role catalogs (pg_authid, pg_shadow, pg_auth_members).
  • The time limit covers writes too. In a Query request each statement commits on its own; in a Transaction request all of them commit together, and the first error rolls the whole transaction back. A statement that cannot run inside a transaction, such as CREATE INDEX CONCURRENTLY, is refused: run it from a migration instead.
  • The console does not report an inserted row’s id. Add RETURNING id to the INSERT to see it.
Read results are capped at 1,000 rows. When more rows match, the console warns that the result is incomplete. Filter your query or add a LIMIT to narrow the results. Structure (tables, columns, indexes) is also readable by an AI client through Meridian MCP (database_schema_get), which returns structure only, never rows.

Backups

Backups are listed newest-first with their date and size, and any of them can be restored. How often they run depends on the environment:
  • Production is backed up daily. Backups are kept for 7 days on Private and Lite, 30 days on Pro, and as agreed on Enterprise. Retention comes with the plan: a hosting upgrade does not change it.
  • Development and staging are backed up once a week, and only the last 2 backups are kept.
Restoring replaces the whole database with the chosen backup and briefly interrupts your app while the database is recreated. Restoring needs the Hosting: Delete permission, which owners and admins have by default, and it cannot be undone. The Backups card lists the recent restores with their status (Queued, Restoring, Restored or Failed), who started each one and, for a failed one, why. The status updates on its own while a restore runs. One restore of a database runs at a time: you can start another once the first has ended. A small database restores in minutes; a large one can take hours, and your app cannot use the database until it is done. Whoever started the restore gets an email when it finishes, whether it succeeded or failed. Downloading saves any completed backup as a gzipped SQL dump (.sql.gz). Import it into your own server with gunzip -c backup.sql.gz | mysql … for MySQL, or gunzip -c backup.sql.gz | psql … for PostgreSQL. A PostgreSQL dump is plain SQL made by pg_dump 18 without owners or permissions, so it loads into a database owned by any role; use psql 18, or the latest minor release of an older major, which understands the \restrict lines at the top of the dump. Pick Download next to Restore and choose a date. Downloading needs the Database backups: Download permission, which owners and admins have by default; give it to a member through a role, limited to the apps the role reaches. Each download is a fresh link to Meridian’s private storage that works for five minutes, so a link copied out of the browser stops working soon after: download again from the dashboard to get a new one. Listing and downloading backups keeps working when the app is locked because its trial ended, its plan lapsed or its organization is suspended: taking your data out never waits on a payment. Restoring one stays closed until the app is paid for again. To take everything the organization holds at once, including the latest dump of every database, use the organization data export.

What other apps can see

Each app’s database lives on a shared database server, next to other apps’ databases, and each app’s role can open its own database only.
  • MySQL: your user lists and reaches only your database.
  • PostgreSQL: your role cannot connect to another database, read another role’s tables, join another role or act as an administrator. PostgreSQL itself lets every role list the names of the databases and roles on the instance (pg_database, pg_roles). Meridian names them from random identifiers only, never from your app, your environment or text you typed, so a name tells another app nothing about yours. Your data, your schema and your password are never visible to it.

Metrics and capacity

The database page shows the latest storage, connections, average query time and backup size (the size of the database’s last completed backup), under the environment tabs. Their history is in Reports: an app with a database gets five built-in reports, each with one line per environment. Meridian reads the database every 2 minutes and keeps the readings about 30 days, so the reports cover the last 30 days, and a day is the finest grain they show. Like any report, you can change the period, group by week, filter on an environment or delete one. The metrics are the same on both engines. A new database has no history for a while. Days use UTC boundaries. The reports are created with the app’s first database, and deleting the database keeps them. One you delete comes back only if the app gets a database again after having none. Reading them needs the Hosting: View permission and a plan with Reports. Storage is a plan meter: 10 GB on Private and Lite, 20 GB on Pro, or 30 GB with Medium and 50 GB with Large. An upgrade replaces the plan’s figure rather than adding to it. Owners are emailed at 90%, 95% and 100%. At the limit nothing is deleted and the app keeps serving, but on one instance with the smallest CPU and memory, and new credentials are blocked, until space is freed or a hosting upgrade raises the allowance. See Billing and usage.
Developer databases are separate: per-developer, provisioned for local work, connected through the Meridian CLI (meridian dev), and never shared with a teammate. They run the app’s engine, MySQL or PostgreSQL, and reach it through the same gateway.Moving a PostgreSQL app from Heroku? See Migrate from Heroku Postgres.
Last modified on November 23, 2026