
Dolt
Git-native SQL database with branching, merging, and row-level diffs.
Replaces Planetscale, Neon

Who it's for
A data engineer creates a feature branch, runs schema migrations against real data, and opens a pull request for review before merging to main. If the migration breaks something, the branch is discarded and the production database is untouched. The diff shows exactly which rows changed and which constraints failed.
Your team deploys schema changes directly to production and reviews them after the fact. Dolt's value is in the pre-merge review workflow; without that process, the branching adds coordination overhead without a matching payoff.
Multi-agent pipelines that need each agent to operate on an isolated, versioned snapshot of shared state can use Dolt branches as agent memory. Each agent writes to its own branch, conflicts are resolved through the standard merge workflow, and the commit log provides a full audit trail of every agent's writes.
Your agents need sub-millisecond write latency or very high write throughput. Dolt's versioning overhead makes it a poor fit for high-frequency real-time writes.
DoltHub lets you publish a Dolt database as a public repository, clone it, fork it, and submit pull requests with new data. Research teams, data journalists, and open data maintainers can run a Git-like collaboration workflow over datasets rather than distributing CSV snapshots over email.
You need to distribute private datasets to paying customers under access control. DoltHub's model is hosting and collaboration, not commercial data product licensing.
Applications that need row-level history for compliance or debugging can query Dolt's system tables to retrieve the full change history for any row, including who made the change and when, without building a separate audit-log table or trigger layer on top of a standard database.
Your audit requirements are already met by Postgres logical replication or a change-data-capture pipeline in your stack. Dolt adds value when the audit trail needs to be queryable as SQL, not just streamed to a log sink.
The problem
SQL databases store the current state of your data but discard the history. When a bad migration ships or a teammate's query overwrites records, the standard recovery path is restoring from a point-in-time backup, which loses everything that happened after it. Teams work around this with migration files, changelogs, and manual documentation, but none of those give you a commit hash to point at or a branch to roll back. The problem gets worse at the data collaboration boundary. If two data engineers need to make incompatible schema changes simultaneously, they coordinate through messages and deployment windows rather than branches. There is no merge request for data, no diff to review before it goes to production, and no way to cherry-pick a single table change out of a combined deployment.
How it works
Create named branches of your database the same way Git branches source code. Schema changes and data writes on a branch stay isolated until you merge. The `dolt_branch()` and `dolt_merge()` stored procedures expose the full workflow from a standard MySQL connection, with no CLI required.
Query `dolt_diff_<tablename>` or call `dolt_log` to see exactly what changed, who changed it, and when, at the row level. You can diff two branches, two commits, or the working set against HEAD, and the output is a SQL result set you can filter and join like any other table.
Start a MySQL-compatible server with `dolt sql-server`. Any MySQL 8.4 client, ORM, or migration framework connects without modifying your connection string. Dolt supports foreign keys, secondary indexes, triggers, check constraints, and stored procedures, covering most standard SQL workloads.
Every Git operation maps to a SQL stored procedure: `dolt_add()`, `dolt_commit()`, `dolt_push()`, `dolt_pull()`, `dolt_merge()`. Teams that cannot install the Dolt CLI can drive the full version control workflow from a standard SQL client connection, with no extra tooling.
Dolt's branching model fits multi-agent and multi-machine AI workflows where each agent needs an isolated, versioned view of shared state. An agent writes to its own branch, changes are reviewed as a pull request on DoltHub, and the merge creates a permanent, auditable record of what each agent changed and when.
Features
- Git-style branching for SQL tables
- Row-level diffs and commit history
- MySQL-compatible server on port 3306
- Version control via SQL stored procedures
- Agent memory for AI workflows
How to install
Self-host Dolt as a MySQL-compatible SQL server on port 3306 - install the binary, then start the server.
brew install dolt
dolt sql-serverRecommended for this setup
Strengths
- Apache 2.0 license with no usage restrictions: Dolt is Apache 2.0 licensed. You can run it commercially, modify it, and embed it in proprietary products without restriction or licensing fees. Unlike managed database services that require a paid account to access, Dolt's source code is fully open and forkable.
- Single binary, runs everywhere MySQL does: Dolt ships as a ~103 MB standalone binary with no separate database engine or daemon to configure. It installs via Homebrew, Chocolatey, pacman, or a one-line curl script. The Docker image `dolthub/dolt-sql-server` runs the server in a container with no additional setup.
- 24,000+ stars and active development: With 24,724 GitHub stars and a last push on 2026-10-24, Dolt is actively maintained. The project has been public since 2019. The companion DoltHub platform lets teams publish, share, and discover Dolt databases the way GitHub hosts public code repositories.
- No external dependencies for self-hosting: Running a Dolt SQL server requires only the binary and a directory for data storage. No Postgres, Redis, or object storage is needed to get started. This makes self-hosting accessible without DevOps overhead for teams that need version-controlled data but not a managed cloud service.
Trade-offs
- Write throughput lower than standard MySQL: Dolt's write throughput is lower than a standard MySQL or MariaDB instance because every write carries additional versioning overhead. The team publishes benchmarks on their blog. Read-heavy workloads with occasional versioned writes are fine; high-frequency transactional write workloads may find the performance gap significant enough to warrant evaluation before committing.
- 606 open issues; some MySQL compatibility gaps: With 606 open issues, edge cases exist in compatibility with certain MySQL syntax patterns, MySQL 9.0 authentication modes (caching_sha2_password requires extra configuration), and some advanced stored procedure patterns. Most standard SQL workloads run without issues, but testing against your existing application before a production migration is recommended.
- Postgres-compatible variant still in beta: Doltgres, the Postgres-compatible version, is in Beta. Teams that need Postgres wire compatibility rather than MySQL should treat it as experimental rather than a production-ready Neon alternative today.
Tech stack
FAQ
Dolt is MySQL-compatible: any MySQL 8.4 client connects to a Dolt SQL server without changes to your connection string. It supports foreign keys, secondary indexes, triggers, check constraints, and stored procedures. MySQL 9.0's caching_sha2_password authentication requires extra configuration, and some MySQL-specific syntax patterns have open compatibility issues. For most standard SQL workloads Dolt works without modification, but testing your existing queries against a Dolt server before a production migration is worthwhile.
Dolt surfaces merge conflicts as a SQL result you resolve through queries, not a file you edit manually. When two branches modify the same row differently, `dolt_merge()` flags the conflict and the row appears in the `dolt_conflicts_<tablename>` system table. You resolve it by writing the correct value and calling `dolt_conflicts_resolve()`. The workflow mirrors Git's conflict resolution model but works entirely within a SQL client connection.
Yes. DoltLab is the self-hosted version of DoltHub. It runs the DoltHub web interface on your own infrastructure, giving teams a private database sharing and collaboration platform without sending data to a third-party service. See doltlab.com for installation details.
Apache 2.0 lets you run Dolt commercially, modify the source, and embed it in proprietary products without paying licensing fees or releasing your application's source code. There are no restrictions on internal commercial or team use. You can fork the repo, ship your own distribution, and use it in any business context. The license is OSI-approved.
Dolt commits capture the logical state of every table at commit time, not a binary snapshot. You can time-travel to any commit with `dolt checkout <commit>`, query historical data without a restore operation, and diff two points in time as a SQL result set. Backups are for disaster recovery; Dolt commits are for auditability, collaboration, and rollback of specific changes. The team recommends using Dolt's native backup feature alongside commits for full disaster recovery coverage.