tiup常用命令,tidb卸载

Tidb 停止、卸载

查看tidb集群名称
tiup cluster list

我这里是 tidb-test

停止
tiup cluster stop tidb-test

清理数据
tiup cluster clean tidb-test --all

卸载
tiup cluster destroy tidb-test

TiDB  TiUP使用 


查看tiup版本:
tiup -version
tiup的其他使用:
tiup --help
tiup查看可以安装的组件:
tiup list
查看组件对应的版本:
tiup list tidb
查看已经安装的组件:
tiup list --installed


tiup安装组件
安装最新版本的组件:
tiup install tidb
安装对应版本的组件:tiup install tidb:v6.0.0
tiup 运行组件:
tiup tidb:v6.0.0
指定tag运行组件,如果不指定tag,TiDB会随时生成一个tag,停止后会删除相关数据。指定后,再次启动可以指定--tag运作之前数据。:
tiup --tag=tidbflag tidb:v6.0.0
查看TiDB运行状态:
tiup status

清理TiDB组件
清理tag为tidbtag的组件,如果组件在运行中,会先kill掉,然后清理相关数据文件:
tiup clean tidbtag
清理所有组件:
tiup clean --all

卸载组件
卸载tidb:v6.0.0:
tiup uninstall tidb:v6.0.0
卸载所有版本的tikv:
tiup uninstall tikv --all
卸载所有已安装的组件:
tiup uninstall --all

playground本地集群
查看playground版本:
tiup list playground
安装playground:
tiup install playground
使用playground启动:
tiup playground
默认会使用最新版本进行启动,如最新版本是v1.19.3,则相当于运行tiup playground:v1.19.3
如果没指定各个组件的版本,会使用最新的版本,如tidb,tikv等的最新版本是v6.0.0,则相当于运行tiup playground:v1.19.3 v6.0.0
如果没指定组件的个数,会启动1个TiDB,1个TiKV和1个PD构成最小集群

指定tag来启动:
tiup --tag=playtag playground
启动对应集群:
tiup playground v6.0.0
指定组件个数,指定TiKV的个数为3:
tiup playground --kv=3 --monitor
使用对外的IP提供服务:
tiup playground --host xx.xx.xx.xx

本地测试集群
tiup playground --db=2 --kv=3 --pd=3 --monitor
使用client连接:
tiup client
连接指定tag的集群:
tiup client tagtest

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

七七powerful

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值