1.启动TiDB集群

tiup cluster start tidb-test

2.显示TiDB集群信息

tiup cluster display tidb-test

 3.显示集群列表

tiup cluster list

 4.安装 TiUP 工具

curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
source .bash_profile

5.安装 TIUP 的组件

tiup update --all

6.初始化集群的拓扑

tiup cluster template > topology.yaml

7.编辑toplogy.yaml

在该文件中指定节点角色,例如:TiKV,TiDB,PD,TiFlash等等

8.集群部署

tiup cluster deploy tidb-test v5.1.0 ./topology.yaml --user root [-p] [-i /root/.ssh/gcp_rsa]

 9.登录测试可用性

mysql -u root -h 1921.68.146.206 -P 4000

 

相关文章:

  • 2022-02-03
  • 2021-12-04
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-12-30
  • 2021-08-30
  • 2021-12-05
  • 2021-12-04
相关资源
相似解决方案