课程名称 201+ 2.1TiDB适用场景&2.2如何连接到 TiDB
学习时长:40
课程收获:
- TiDB适用场景
- 如何连接到 TiDB
课程内容:
适用场景
OLTP
HTAP
- OLAT query in place with help TiFlash
- OLAP query on the integrated data set
DataHub
TiSpark
Not a good idea
如何连接到 TiDB
兼容MYSQL协议的客户端连接,TiDB server 无状态,需要前端假设负载均衡。
兼容绝大多数mysql5.7 语法
不兼容语法:
- 外键
- 存储过程
- 触发器
ORM 生成的SQL未必符合分布式最佳实践,需要人工复核
tiup playground --db 2 --pd 1 --kv 3
CLUSTER START SUCCESSFULLY, Enjoy it ^-^
To connect TiDB: mysql --host 127.0.0.1 --port 4000 -u root
To connect TiDB: mysql --host 127.0.0.1 --port 4001 -u root
To view the dashboard: http://127.0.0.1:2379/dashboard
To view the Prometheus: http://127.0.0.1:9090
To view the Grafana: http://127.0.0.1:3000
mysql client
mysql workbanch