TiDB logo

TiDB

Open-source distributed SQL database with ACID transactions, HTAP, MySQL compatibility, and vector search

Open Source Alternative to
Repository activity
  • Stars40.2k
  • Forks6.2k
  • Open Issues6.3k
License

Apache-2.0

Languages
  • Go
  • Starlark
  • Shell
TiDB screenshot

About TiDB

TiDB is an open-source, cloud-native, distributed SQL database for workloads that need strong consistency, high availability, and scale. It supports ACID distributed transactions, MySQL 8.0 compatibility, and deployment across public clouds, on-premises environments, Kubernetes, or TiDB Cloud.

TiDB separates compute from storage so nodes and resources can be adjusted independently. It uses a two-phase commit protocol for transactions and Raft consensus with multiple replicas for automated failover. HTAP uses TiKV row storage and TiFlash columnar storage, with real-time replication between them, and TiDB Server coordinates query execution across both.

TiDB is developed by PingCAP and released under the Apache 2.0 license, with all source code including enterprise-grade features available. Self-managed deployment is available through local clusters, Kubernetes with TiDB Operator, and on-premises setups, while TiDB Cloud provides a fully managed service.

Key features

  • ACID distributed transactions using two-phase commit
  • MySQL 8.0 compatibility for existing drivers, frameworks, and tools
  • HTAP with TiKV row storage and TiFlash columnar storage
  • Raft consensus, multiple replicas, and automated failover
  • Vector search, changefeed, data migration, and disaster recovery

Details

First released
2015
Self-hosting
On-premises · Kubernetes · Local
Managed service
TiDB Cloud
Compatibility
MySQL 8.0
Storage
TiKV row · TiFlash columnar
License
Apache 2.0