Product
logo-TiDB-1

An open-source distributed SQL database trusted by innovators to power transactional, AI, and other modern applications.

Product Overview

Deployment Options TiDB Cloud TiDB Self-Managed Pricing
Ecosystem Integrations TiKV TiSpark OSS Insight
Solutions
Customer Stories

Trusted and verified by innovation leaders around the world.

By Industry Fintech eCommerce SaaS
By Use Case Enable Operational Intelligence Modernize MySQL Workloads Build GenAI Applications
Resources
Learn Blog eBooks & Whitepapers Videos & Replays Horizontal Scaling
Engage Events & Webinars Discord Community Developer Hub TiDB SCaiLE
PingCAP University Courses Hands-on Labs Certifications
Company
Trust Hub

Explore how TiDB ensures the confidentiality and availability of your data.

About Press Releases & News About Us Careers Partners Contact Us
Docs
Sign In Start for Free
logo-TiDB-1

An open-source distributed SQL database trusted by innovators to power transactional, AI, and other modern applications.

Product Overview

Deployment Options
TiDB Cloud TiDB Self-Managed Pricing
Ecosystem
Integrations TiKV TiSpark OSS Insight
Customer Stories

Trusted and verified by innovation leaders around the world.

By Industry
Fintech eCommerce SaaS
By Use Case
Enable Operational Intelligence Modernize MySQL Workloads Build GenAI Applications
Learn
Blog eBooks & Whitepapers Videos & Replays Horizontal Scaling
Engage
Events & Webinars Discord Community Developer Hub TiDB SCaiLE
PingCAP University
Courses Hands-on Labs Certifications
Trust Hub

Explore how TiDB ensures the confidentiality and availability of your data.

About
Press Releases & News About Us Careers Partners Contact Us
Docs
Sign In
Start for Free

TiDB Community Edition

The open source TiDB platform released under the Apache 2.0 license, and supported by the community


Select your favorite way to deploy TiDB online

Deploy TiDB on bare-metal using TiUP

See Full Doc >

TiUP is a cluster operation and maintenance tool that makes it easy to deploy TiDB clusters. The following commands will deploy a simple local cluster using TiUP’s “playground” component. Refer to the TiUP documentation for more information about how to use TiUP to deploy a cluster across multiple hosts.

1. Deploy TiDB

tiup playground

2. Access TiDB

mysql --host 127.0.0.1 --port 4000 -u root

Join the TiDB Community Slack or Discord

Deploy TiDB on Kubernetes

See Full Doc >

TiDB can be easily deployed in a Kubernetes environment using TiDB Operator. These commands will install the TiDB Operator CRDs into an existing Kubernetes cluster and deploy a basic TiDB cluster. Refer to the TiDB Operator documentation for more information about how to customize a deployment.

1. Install TiDB Operator

kubectl apply -f https://raw.githubusercontent.com/pingcap/tidb-operator/{tidb-operator version}/manifests/crd.yaml
helm repo add pingcap https://charts.pingcap.org/
helm install tidb-operator pingcap/tidb-operator --version {​tidb-operator version}

2. Deploy TiDB and TiDB Monitor

kubectl apply -f https://raw.githubusercontent.com/pingcap/tidb-operator/master/examples/basic/tidb-cluster.yaml
kubectl apply -f https://raw.githubusercontent.com/pingcap/tidb-operator/master/examples/basic/tidb-monitor.yaml

3. Access the database

kubectl port-forward svc/basic-tidb 4000 > pf4000.out &
mysql -h 127.0.0.1 -P 4000 -u root

Deploy TiDB on AWS EKS

See Full Doc >

TiDB can be easily deployed to AWS EKS using TiDB Operator and included Terraform scripts to manage EKS infrastructure. These commands will create a basic EKS cluster, install TiDB Operator, and deploy a basic TiDB cluster. Consult the TiDB Operator documentation for more information about how to customize your deployment.

1. Deploy EKS, TiDB Operator, and TiDB cluster node pool

git clone --depth=1 https://github.com/pingcap/tidb-operator && cd tidb-operator/deploy/aws
cp demo.tfvars terraform.tfvars
terraform init
terraform apply

2. Deploy TiDB cluster and monitor

sed "s/CLUSTER_NAME/${cluster_name}/g" manifests/db.yaml.example > db.yaml
sed "s/CLUSTER_NAME/${cluster_name}/g" manifests/db-monitor.yaml.example > db-monitor.yaml
kubectl --kubeconfig credentials/kubeconfig_${eks_name} create -f db.yaml
kubectl --kubeconfig credentials/kubeconfig_${eks_name} create -f db-monitor.yaml

3. Access the database

ssh -i credentials/${eks_name}.pem centos@${bastion_ip}
mysql -h ${tidb_lb} -P 4000 -u root

Deploy TiDB on Google Cloud GKE

See Full Doc >

TiDB can be easily deployed to Google Cloud GKE using TiDB Operator and included Terraform scripts to manage GKE infrastructure. These commands will create a basic GKE cluster, install TiDB Operator, and deploy a basic TiDB cluster. Consult the TiDB Operator documentation for more information about how to customize your deployment.

1. Deploy GKE, TiDB Operator, and TiDB cluster node pool

git clone --depth=1 https://github.com/pingcap/tidb-operator && cd tidb-operator/deploy/gcp
cat small.tfvars >> terraform.tfvars
terraform init
terraform apply

2. Deploy TiDB cluster and monitor

sed "s/CLUSTER_NAME/tidb-cluster/g" manifests/db.yaml.example > db.yaml
sed "s/CLUSTER_NAME/tidb-cluster/g" manifests/db-monitor.yaml.example > db-monitor.yaml
kubectl --kubeconfig credentials/kubeconfig_${gke_name} create -f db.yaml
kubectl --kubeconfig credentials/kubeconfig_${gke_name} create -f db-monitor.yaml

3. Access the database

gcloud compute ssh ${gke_cluster_name}-bastion --zone ${zone}
mysql -h ${tidb_lb} -P 4000 -u root
View on GitHub

TiDB Cloud

TiDB Cloud makes deploying, managing, and maintaining your TiDB clusters even simpler with a fully managed cloud instance that you control through an intuitive dashboard. You’ll be able to easily deploy on AWS, Google Cloud, Azure, or Alibaba Cloud to quickly build mission critical applications.

Get Started

TiDB Self-Managed

TiDB Self-Managed is the recommended option to run TiDB on your own infrastructure with complete flexibility, which gives you 24/7 technical support from the PingCAP engineers who created TiDB.

Try TiDB Self-Managed
English
中文 日本語
Product
Product Overview TiDB Cloud TiDB Self-Managed Pricing
English
中文 日本語
Ecosystem
Integrations TiKV TiSpark OSS Insight
Resources
Blog Articles Events & Webinars TiDB SCaiLE Docs Developer Guide FAQs Support
Company
About Us News Careers Contact Us Partners Trust Hub Security Release Support Brand Guidelines
Stay Connected

Sign up to receive periodic updates and
feature releases to your email.

© 2025 PingCAP. All Rights Reserved.
Privacy Policy Legal