Goal
Understand the managed database model before creating, connecting, backing up, importing, or promoting one.Prerequisites
- Basic knowledge of relational databases
Workflow
1
Treat databases as their own resource type, not as special cases of stacks.
2
Connect applications through the displayed stable endpoint rather than a physical runtime address.
3
Use Backups for durable recovery and Import / Export for portable logical SQL movement.
Project and standalone databases
A database can belong to a project or directly to your account. Both contexts expose the same core detail surfaces, but authorization and API paths differ. Project database reads require project access and mutations require project mutation permission. Standalone databases are owner-only. A database used through the wrong route family, a cross-tenant identifier, or a hidden transfer candidate returns not found rather than exposing the resource.- Project base:
/api/v1/projects/{projectID}/databases/{databaseID}. - Standalone base:
/api/v1/databases/{databaseID}. - The dashboard provides equivalent database and Import / Export views in both contexts.
Engines and capability scope
The managed database surface offers PostgreSQL, MySQL, MariaDB, ClickHouse, MongoDB, OpenSearch, Redis, and Valkey where the selected placement supports them. Full-database Import / Export is narrower: it requires a running PostgreSQL, MySQL or MongoDB database on the digest-qualified hosted V2containerd runtime, a stable-endpoint lineage, and a transfer-capable hosted agent.
- Current versions: PostgreSQL 18, 17, 16, and 15; MySQL 8.4; MariaDB 12.3; ClickHouse 26.8 (default) and 26.3; MongoDB 8.0; OpenSearch 3; Redis 8.10; Valkey 9.0. Every engine runs on Debian 13 images built and security-scanned by StackShift.
- Redis (engine
redis) is Redis 8 with JSON, search, vector search, time series and Bloom filters built in. Valkey (enginevalkey) is a Redis-compatible engine without those modules. Both userediss://connection strings and work with the same Redis client libraries;redis-cliandvalkey-cliboth connect. - Redis and Valkey are not eligible for full SQL transfer. MongoDB transfers use
mongodumparchives instead of SQL files. OpenSearch databases import straight from Elasticsearch 7.x to 9.x or OpenSearch 1.x to 3.x over HTTPS, copying index settings, mappings and documents. - New database also has Elasticsearch as an engine. It is created on its own from the same page with a name and a size, and you can connect one of your projects now or later. It is not a managed database: upgrades, tuning and backups are yours. These services are listed on the Databases page under Self-hosted from templates. See the Elasticsearch template guide.
- Connected-node, legacy, and unqualified database runtimes are not eligible.
- Selective table export, server-global roles/grants, custom URL authentication headers, and automatic promotion are excluded.
- Eligible transfers are available on every active plan; transfer creation has no plan-tier entitlement check.
Stable endpoint identity
A hosted V2 database has one logical identity and a current physical generation. Applications connect to the stable hostname. Import candidates and retained generations are internal physical generations and never become application connection targets. Transfer promotion changes which physical generation the stable endpoint serves while preserving the private/public hostname, port, database name, credentials, CA, TLS policy, public-access mode and allowlist, proxy policy, and firewall policy. The previous generation remains read-only for the exact rollback window.Active runtime metadata
Detail and list responses for running or stopped managed databases report the verified current generation inversion, runtime_kind, and the runtime_image_*, runtime_authority_*, runtime_qualification_evidence, and runtime_execution_profile* fields. Dedicated databases and databases still provisioning keep their existing response behavior.
The database ID, ownership, name, status, stable endpoints and credentials keep their logical identity. A generation change does not require applications to switch connection addresses. For example, after an eligible Redis migration, the same database ID can report version 8.10 while its endpoint remains unchanged.
If the current generation cannot be verified, the detail request returns 409 with current database runtime is unavailable. Retry after the operation settles; contact Support if it persists. List requests retain the database entry with an empty version and omitted runtime image and authority fields. The existing operation is preserved; otherwise a retryable operation with step current runtime unavailable is included. Do not interpret missing runtime metadata as the retained generation being active.
What the database detail surface includes
- Provisioning, running, stopping, recovery, and failure state.
- Stable connection details and credentials on demand.
- Private and public-access policy, including allowlists where enabled.
- Metrics, logs, observability, database browsing, and lifecycle actions.
- Pooler, clone, backup, and restore controls where eligible.
- Import / Export for qualified hosted V2 PostgreSQL and MySQL databases.
Backups and transfers are different
Backups are the durable recovery path and use recovery-specific encryption, credentials, records, retention controls, and storage. Import / Export moves portable logical SQL through an independent private transfer bucket with short-lived artifacts. A transfer export is not a backup policy, and a backup artifact cannot be substituted as transfer validation evidence.Expected result
You can choose the correct database context, connection identity, recovery path, and transfer workflow without relying on hidden runtime details.
Related guides
Create a database
Create a hosted or connected-node database with private, direct public, or StackShift tunnel access.
Database connections and tunneling
Use private, direct public, or StackShift tunnel endpoints with TLS and explicit client IP policy.
Import and export a database
Move complete PostgreSQL or MySQL databases as portable SQL with resumable uploads, private candidates, structural validation, explicit promotion, and 24-hour rollback.
Back up and restore a database
Use durable recovery storage correctly and understand why backups are independent from portable SQL transfers.
Resource activity
Follow builds, deployments, releases and database operations from the resource you are working on.