Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/pingcap/tidb/llms.txt

Use this file to discover all available pages before exploring further.

You can run TiDB locally using three methods. TiUP Playground is the recommended approach because it manages the full cluster lifecycle automatically. Docker is the fastest way to get a single-node instance running. Building from source gives you the most control and is suitable if you are contributing to TiDB.

Testing the connection

Once TiDB is running by any of the methods above, confirm the connection with a basic SQL query:
SELECT tidb_version()\G
This returns the full TiDB version string, including the Git commit hash and build information.

Status API endpoints

The HTTP status API on port 10080 exposes several useful endpoints:
EndpointDescription
GET /statusServer health, version, and connection count
GET /metricsPrometheus metrics
GET /debug/pprofGo pprof profiling data
# Health check
curl http://127.0.0.1:10080/status

# Prometheus metrics
curl http://127.0.0.1:10080/metrics

Next steps

Configuration Reference

Learn how to configure TiDB using a TOML file, including server settings, storage, logging, security, and performance tuning.

Kubernetes Deployment

Deploy a production-grade TiDB cluster on Kubernetes using TiDB Operator.

Build docs developers (and LLMs) love