A distributed, MySQL-compatible database that scales out and handles both transactions and analytics.
Open sourceTechnical setup
Free alternative to
Code activity
- Stars
- 40,792
- Forks
- 6,322
- Open issues & PRs
- 7,903
- Last commit
- 3 days ago
- Latest release
- 2 months ago
Details
- Type
- Open source
- License
- Apache-2.0
- Written in
- GoStarlarkShellYacc
- Platforms
- Self-hosted · Web
- Ease of use
- Technical setup

Pros
- Speaks the MySQL protocol, so existing apps run almost unchanged
- Add nodes to grow capacity instead of sharding by hand
- Built-in vector search for AI apps
Cons
- Needs several servers and is harder to operate than plain MySQL
- Not worth the effort for small datasets
Use TiDB instead of
- gPlanetScaleSpeaks the MySQL protocol and shards data automatically across nodes to scale like PlanetScale; open source, with a managed cloud option too.
Similar apps
No apps match. Try removing a filter.
How is the 85/100 "Health" score calculated?
Dorabot computes it weekly from public GitHub data; it is not a review of software quality: 40 points for code freshness (a commit in the last 30 days earns full points), 25 points for popularity by stars, 20 points for a recent release, 15 points for the ratio of open issues to stars. 80+ is Good, 60–79 Fair, below 60 Weak.
FAQ
Is TiDB free?
Yes. TiDB is open source (Apache-2.0 license) and free for personal and commercial use.
Which platforms does TiDB run on?
TiDB is available for self-hosting on your own server and Web.
What can I use TiDB instead of?
TiDB is a free alternative to PlanetScale.