pingcap/tidb

GITHUB中文整理

主语言 Go · 40,685 星 · Apache-2.0 · 创建于 2015-09-06

分布式数据库云原生MySQL兼容HTAP开源
打开 GitHub 仓库

TiDB 是一个开源、云原生的分布式 SQL 数据库,主打高可用、水平与垂直扩展、强一致和高性能,兼容 MySQL,同时支撑事务、分析与向量检索。

Stars 40,685 累计 star,越多说明被认可得越广
Watching 1,211 订阅该仓库变动的人数
Forks 6,281 被派生出去的仓库数
Issues 7,294 当前开放的 Issue 数
语言 Go GitHub 自动判定的主语言
许可证 Apache-2.0 开源协议,用之前先确认能不能商用
24h 增长 — 数据积累中
7 日增长 — 数据积累中
30 日增长 — 数据积累中

仓库健康度

5 个维度
只看客观信号,不构成安全性结论
维护活跃度 数据完整
2026-10-28 23:38 最近推送

最近推送 2026-10-28 23:38(0 天前),属于活跃维护

社区响应 数据完整
7,294 开放 Issue

开放 Issue 7,294 个 · Fork 6,281 个

增长趋势 证据不足
— 7 日新增

star 记录还不够天数,增量算不出来

项目规范 数据完整
Apache-2.0 许可证

许可证 Apache-2.0 · 8 个 topics · 开了 Wiki

版本发布 证据不足
— 发布次数

这一项暂无数据,不代表项目没有发布

「证据不足」表示这项数据暂时没有取到,不能读成「项目有问题」;「部分数据」表示只拿到一部分信号。版本发布要额外调 Releases 接口,下一版补。

Star 趋势

6 天记录
最近 90 天站内记录的星数
40,685当前 Star +15首尾差值 2026-10-23最早记录 2026-10-28最近记录

横轴 2026-10-23 → 2026-10-28,纵轴按这段时间的最小/最大值拉伸。趋势来自站内每天记录一次的星数,页面打开时不会实时请求 GitHub。

它解决什么问题

据 README 归纳
没有它会怎样

当业务数据量和访问量不可预测地增长时,单机数据库会碰到容量与并发上限,事务、分析和向量检索往往分散在不同系统里形成数据孤岛;TiDB 把事务处理、分析和向量检索放在同一套分布式数据库中,避免资源争抢和基础设施封顶。

核心能力

6 条
归纳自 README,不是功能列表照抄
  1. 1通过两阶段提交实现跨节点分布式事务,保证 ACID 与强一致性
  2. 2支持不停机水平扩容节点或垂直提升现有节点资源
  3. 3内置 Raft 共识协议,多副本存储并自动故障转移
  4. 4提供 TiKV 行存与 TiFlash 列存两套引擎,兼顾事务与分析
  5. 5兼容 MySQL 8.0 协议、框架和工具,迁移应用改动小
  6. 6可在公有云、本地或 Kubernetes 上部署,TiDB Operator 自动化集群运维

项目画像

6 个角度
决定要不要用之前,先看这六条

项目定位

TiDB 是一个开源、云原生的分布式 SQL 数据库,主打高可用、水平与垂直扩展、强一致和高性能,兼容 MySQL,同时支撑事务、分析与向量检索。

适合谁

适合需要强一致事务、又要同时跑分析和向量检索的业务团队,以及希望不停机扩展、不想维护多套数据系统的开发与运维人员。

典型场景

在业务增长时用分布式事务承载高并发写入;在同一集群内用 TiFlash 做实时分析而不影响事务;借助 MySQL 兼容性迁移现有应用;通过 TiDB Cloud 快速获取托管集群做验证与开发。

部署难度

可按本地测试集群、自管 Kubernetes 或托管云服务三种方式起步,Kubernetes 方式需部署 TiDB Operator;具体前置依赖与步骤需查阅对应快速上手指南。

风险限制

使用前需了解分布式集群的部署与运维方式;本地测试、Kubernetes 或托管云服务等不同起步路径的具体要求需另查文档。

最近维护

最近一次推送是 2026-10-28 23:38。 实现方式:计算层与存储层分离:TiKV 以行存方式保存数据并用 Raft 保证多副本一致,TiFlash 以列存方式通过 Multi-Raft Learner 同步数据供分析使用;事务通过两阶段提交跨节点完成,集群可部署在 Kubernetes 上由 TiDB Operator 管理。

README 原文细节

3 个板块
项目自己写的功能与用法,原文照录

核心功能README 里列出来的能力清单

Key Features

  • Distributed Transactions: TiDB uses a two-phase commit protocol to ensure ACID compliance, providing strong consistency. Transactions span multiple nodes, and TiDB's distributed nature ensures data co
  • Horizontal and Vertical Scalability: TiDB can be scaled horizontally by adding more nodes or vertically by increasing resources of existing nodes, all without downtime. TiDB's architecture separates c
  • High Availability: Built-in Raft consensus protocol ensures reliability and automated failover. Data is stored in multiple replicas, and transactions are committed only after writing to the majority o
  • Hybrid Transactional/Analytical Processing (HTAP): TiDB provides two storage engines: TiKV, a row-based storage engine, and TiFlash, a columnar storage engine. TiFlash uses the Multi-Raft Learner prot
  • Cloud-Native: TiDB can be deployed in public clouds, on-premises, or natively in Kubernetes. TiDB Operator helps manage TiDB on Kubernetes, automating cluster operations, while TiDB Cloud provides a f
  • MySQL Compatibility: TiDB is compatible with MySQL 8.0, allowing you to use familiar protocols, frameworks and tools. You can migrate applications to TiDB without changing any code, or with minimal mo
  • Open Source Commitment: Open source is at the core of TiDB's identity. All source code is available on GitHub under the Apache 2.0 license, including enterprise-grade features. TiDB is built with the

怎么安装从零跑起来的步骤

Quick Start

  • Start a TiDB cluster.
  • On local playground. To start a local test cluster, refer to the TiDB quick start guide.
  • On Kubernetes. TiDB can be easily deployed in a self-managed Kubernetes environment or Kubernetes services on public clouds using TiDB Operator. For more details, refer to the TiDB on Kubernetes quick
  • Using TiDB Cloud (recommended). TiDB Cloud offers a fully managed version of TiDB with a free plan, no credit card required, so you can get a free cluster in seconds and start easily: Sign up for TiDB
  • Learn about TiDB SQL: To explore the SQL capabilities of TiDB, refer to the TiDB SQL documentation.
  • Use a MySQL driver or an ORM to Build an App with TiDB.
  • Explore key features, such as data migration, changefeed, vector search, HTAP, disaster recovery, etc.

其它说明README 里剩下的内容

Need Help?

  • You can connect with TiDB users, ask questions, find answers, and help others on our community platforms: Discord, Slack (English, Japanese), Stack Overflow, TiDB Chinese Forum, X @PingCAP
  • For filing bugs, suggesting improvements, or requesting new features, use Github Issues or join discussions on Github Discussions.
  • To troubleshoot TiDB, refer to Troubleshooting documentation.

See Also

  • TiDB Online Playground
  • TiDB Case Studies: TiDB Customers, TiDB 事例記事, TiDB 中文用户案例
  • TiDB User Documentation
  • TiDB Design Docs
  • TiDB Release Notes
  • TiDB Roadmap

关于 tidb 的常见问题

7 个问题
答案来自 README 归纳与 GitHub 实时数据
tidb 是做什么的?

TiDB 是一个开源、云原生的分布式 SQL 数据库,主打高可用、水平与垂直扩展、强一致和高性能,兼容 MySQL,同时支撑事务、分析与向量检索。 当业务数据量和访问量不可预测地增长时,单机数据库会碰到容量与并发上限,事务、分析和向量检索往往分散在不同系统里形成数据孤岛;TiDB 把事务处理、分析和向量检索放在同一套分布式数据库中,避免资源争抢和基础设施封顶。

tidb 有哪些功能?

核心能力:通过两阶段提交实现跨节点分布式事务,保证 ACID 与强一致性;支持不停机水平扩容节点或垂直提升现有节点资源;内置 Raft 共识协议,多副本存储并自动故障转移;提供 TiKV 行存与 TiFlash 列存两套引擎,兼顾事务与分析;兼容 MySQL 8.0 协议、框架和工具,迁移应用改动小;可在公有云、本地或 Kubernetes 上部署,TiDB Operator 自动化集群运维。

tidb 适合谁用?

适合需要强一致事务、又要同时跑分析和向量检索的业务团队,以及希望不停机扩展、不想维护多套数据系统的开发与运维人员。

tidb 是怎么工作的?

计算层与存储层分离:TiKV 以行存方式保存数据并用 Raft 保证多副本一致,TiFlash 以列存方式通过 Multi-Raft Learner 同步数据供分析使用;事务通过两阶段提交跨节点完成,集群可部署在 Kubernetes 上由 TiDB Operator 管理。

怎么安装 tidb?

按项目 README 的说明:Start a TiDB cluster.;On local playground. To start a local test cluster, refer to the TiDB quick start guide.;On Kubernetes. TiDB can be easily deployed in a self-managed Kubernetes environment or Kubernetes services on public clouds using TiDB Opera;Using TiDB Cloud (recommended). TiDB Cloud offers a fully managed version of TiDB with a free plan, no credit card required, so you can get 。完整命令见下方「怎么安装」一节或 GitHub 仓库的 README。

用 tidb 有什么门槛或限制?

使用前需了解分布式集群的部署与运维方式;本地测试、Kubernetes 或托管云服务等不同起步路径的具体要求需另查文档。

tidb 现在还在维护吗?数据怎么样?

目前 40,685 星,6,281 个 Fork,主语言 Go,创建于 2015-09-06,最近一次推送 2026-10-28 23:38,许可证 Apache-2.0。星数、Fork、推送时间都是 GitHub 返回的实时数据,「最近推送」离现在越近说明越活跃;长期不动要留意是否已停止维护。

这些内容来自哪

读法说明
中文整理据 README 归纳,数据取自 GitHub
中文说明据项目 README 归纳只写 README 能确认的内容,不替作者补功能与数字
关键数据与 GitHub 页面一致星数、Fork、语言与时间都不做二次加工
数据日期2026-10-23 17:58星数与介绍这份数据是哪一天的

项目数据取自 GitHub 官方接口与项目 README;星数、Fork、语言与时间以 GitHub 页面为准,档案更新于 2026-10-23 17:58。