Linux command
tiup 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start local TiDB playground
tiup playground
Start with specific version
tiup playground v[7.1.0]
Start with multiple components
tiup playground --db [3] --pd [3] --kv [3]
Deploy a cluster
tiup cluster deploy [cluster-name] v[7.1.0] [topology.yaml]
Start a cluster
tiup cluster start [cluster-name]
Show cluster status
tiup cluster display [cluster-name]
Connect to TiDB
mysql -h [127.0.0.1] -P [4000] -u root
Install a component
tiup install tidb:v[7.1.0]
说明
tiup is the component manager for TiDB, a MySQL-compatible distributed database. It manages installation, deployment, and operations of TiDB clusters. tiup playground starts a local development cluster with TiDB, PD (placement driver), and TiKV (storage) components. Connect using any MySQL client on port 4000. Production deployments use tiup cluster with YAML topology files. The topology defines hosts, ports, directories, and component placement. deploy creates the cluster; start runs it. TiDB is MySQL-compatible; use standard MySQL clients and drivers. TiFlash provides columnar storage for analytics workloads. TiUP components include monitoring (Prometheus, Grafana), diagnostic tools, and utilities. tiup list shows available components.
FAQ
What is the tiup command used for?
tiup is the component manager for TiDB, a MySQL-compatible distributed database. It manages installation, deployment, and operations of TiDB clusters. tiup playground starts a local development cluster with TiDB, PD (placement driver), and TiKV (storage) components. Connect using any MySQL client on port 4000. Production deployments use tiup cluster with YAML topology files. The topology defines hosts, ports, directories, and component placement. deploy creates the cluster; start runs it. TiDB is MySQL-compatible; use standard MySQL clients and drivers. TiFlash provides columnar storage for analytics workloads. TiUP components include monitoring (Prometheus, Grafana), diagnostic tools, and utilities. tiup list shows available components.
How do I run a basic tiup example?
Run `tiup playground` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more tiup examples?
This page includes 8 examples for tiup, plus related commands for nearby Linux tasks.