curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
source ~/.bash_profile
tiup playground v5.0.0 --db 2 --pd 3 --kv 3 --monitor --host 0.0.0.0
CLUSTER START SUCCESSFULLY, Enjoy it ^-^ To connect TiDB: mysql --host 192.168.199.187 --port 4001 -u root -p (no password) --comments To connect TiDB: mysql --host 192.168.199.187 --port 4000 -u root -p (no password) --comments To view the dashboard: http://192.168.199.187:2379/dashboard To view the Prometheus: http://192.168.199.187:34084 To view the Grafana: http://192.168.199.187:3000
新开启一个 session 以访问 TiDB 数据库。
使用 TiUP client 连接 TiDB:
tiup client
也可使用 MySQL 客户端连接 TiDB:
mysql --host 127.0.0.1 --port 4000 -u root
网络要求

本文展示了如何使用curl命令安装TiUP,启动一个TiDB集群,包括数据库、PD和KV节点,并提供了监控组件如Prometheus和Grafana的访问地址。用户可以通过TiUPclient或MySQL客户端连接到TiDB服务器。
767

被折叠的 条评论
为什么被折叠?



