TiDB

TiDB

doc https://docs.pingcap.com/zh/tidb/stable/quick-start-with-tidb

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

测试

生成临时数据,退出自动删除

1
❯ tiup playground v8.1.0 --db 2 --pd 3 --kv 3
1
2
3
4
5
TiDB Dashboard:  http://127.0.0.1:2379/dashboard
Grafana: http://127.0.0.1:3000
Prometheus: http://127.0.0.1:9090

mysql --comments --host 127.0.0.1 --port 4001 -u root -p
1
tiup clean --all

Name Host IP Services
node1 172.16.10.1 PD1, TiDB1
node2 172.16.10.2 PD2, TiDB2
node3 172.16.10.3 PD3
node4 172.16.10.4 TiKV1
node5 172.16.10.5 TiKV2
node6 172.16.10.6 TiKV3

TiKV Server:负责数据存储,是一个提供事务的分布式 Key-Value 存储引擎;

PD Server:负责管理调度,如数据和 TiKV 位置的路由信息维护、TiKV 数据均衡等;

TiDB Server:负责 SQL 逻辑,通过 PD 寻址到实际数据的 TiKV 位置,进行 SQL 操作。

点击打赏
文章目录
  1. 1. TiDB
  2. 2.
载入天数...载入时分秒... ,