# TiDB

> Open source, MySQL-compatible distributed SQL database for transactions, analytics and vector search

Source: https://talira.ai/catalog/tidb-v4t6zpzz
Every listing: https://talira.ai/catalog.md

- Kind: Open core
- Types: Database
- Categories: [databases / distributed sql](https://talira.ai/categories/databases/distributed-sql), [databases / mysql](https://talira.ai/categories/databases/mysql), [databases / vector](https://talira.ai/categories/databases/vector)
- Platforms: linux, docker, kubernetes
- Licence: Apache-2.0[^3]
- Pricing: Free tier[^1]
- Pricing notes: TiDB Community is free and Apache-2.0. TiDB Cloud: Starter $0 with a free monthly allowance per organization (25 GiB row storage, 25 GiB columnar storage, 250M Request Units), then from $0.10 per million RUs and $0.20 per GiB-month of row storage; Essential compute from $400/month; Premium compute from $1,800/month; Dedicated clusters from $1,376/month; BYOC contact sales. Rates vary by cloud and region.
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- Cloud hosted: yes[^1]
- SOC 2: yes[^4]
- Backed by: [PingCAP](https://talira.ai/orgs/pingcap.md)

TiDB is a distributed SQL database that speaks the MySQL protocol, so existing MySQL drivers, ORMs and tools work with it while it scales out across nodes. It separates SQL compute from storage: TiKV, a Raft-replicated row store, handles transactions with ACID guarantees, and TiFlash keeps a columnar copy in real time so analytical queries run on the same data. It also has vector search, change data capture and automatic failover across zones. The database is Apache-2.0 licensed and runs on your own servers with TiUP or on Kubernetes with TiDB Operator, and PingCAP sells it as TiDB Cloud, a managed service with a free Starter tier and provisioned and dedicated plans on AWS, Google Cloud and Azure.

## Links

- Website: https://www.pingcap.com/tidb/
- GitHub: https://github.com/pingcap/tidb
- Docs: https://docs.pingcap.com/tidb/stable/
- Pricing: https://www.pingcap.com/pricing/

## Problems it solves

- my MySQL database has outgrown one server and I don't want to shard it by hand
- a MySQL-compatible database that scales horizontally with strong consistency
- run analytics on live transactional data without an ETL pipeline to a warehouse
- a distributed SQL database with automatic failover across availability zones
- store vectors next to my relational data for RAG and similarity search
- a serverless MySQL-compatible database with a free tier that scales to zero

## Features

- MySQL protocol and syntax compatibility with existing drivers, ORMs and tools
- distributed ACID transactions with two-phase commit
- horizontal and vertical scaling without downtime, compute and storage scaled separately
- Raft replication with automatic failover and configurable replica placement
- HTAP: TiKV row store plus TiFlash columnar replicas updated in real time
- vector search
- changefeeds for change data capture, data migration and disaster recovery tools
- deploy with TiUP on bare metal or TiDB Operator on Kubernetes
- TiDB Cloud managed service on AWS, Google Cloud and Azure, with a BYOC option

## Limitations

- A production self-managed cluster runs several components (TiDB, TiKV, PD and optionally TiFlash) across multiple nodes
- TiDB Cloud Essential and Premium are in public preview and charge a minimum capacity, with storage and other services billed on top

## Ways to run it

### TiDB Community (self-managed)

You run it, Apache-2.0. Price: free.[^1][^2]

Only in this edition:

- the full database: TiDB, TiKV, PD and TiFlash
- TiUP and TiDB Operator deployment tools

Not included:

- managed operations

You arrange:

- servers or a Kubernetes cluster
- upgrades, backups and monitoring
- community support

Self-hosting docs: https://www.pingcap.com/download/

### TiDB Cloud

Hosted by PingCAP. Price: Starter free up to a monthly allowance, then usage-based; Essential from $400/month; Premium from $1,800/month; Dedicated from $1,376/month.[^1][^2]

Only in this edition:

- managed clusters on AWS, Google Cloud or Azure
- point-in-time recovery
- encryption in transit and at rest

Pricing: https://www.pingcap.com/pricing/

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.36 out of 1.
Signals: backing 0.40, extensibility 0.20.

- backed by PingCAP
- security: SOC 2

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Vitess](https://talira.ai/catalog/vitess-75jdggh8.md): Scalable. Reliable. MySQL-compatible. Cloud-native. Database.
- [Google Cloud Spanner](https://talira.ai/catalog/google-cloud-spanner-p647svjz.md): Always-on database with virtually unlimited scale
- [MySQL](https://talira.ai/catalog/mysql-dy4scprm.md): The world's most popular open source database
- [CockroachDB](https://talira.ai/catalog/cockroachdb-vx5c3n3q.md): The cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement

## Sources

[^1]: https://www.pingcap.com/pricing/ (checked 22 Nov 2026)
[^2]: https://www.pingcap.com/download/ (checked 22 Nov 2026)
[^3]: https://github.com/pingcap/tidb/blob/master/LICENSE (checked 22 Nov 2026)
[^4]: https://www.pingcap.com/trust-hub/ (checked 22 Nov 2026)
