TIDB 上手

前言

TiDB is the most advanced, open source, distributed SQL database with MySQL compatibility. With TiDB, thousands of organizations are building applications as relentlessly elastic, versatile, and reliable as Titanium (Ti). Learn more about TiDB and TiDB Cloud, an enterprise-ready, fully-managed TiDB service.

安装部署

$ git clone https://github.com/pingcap/tidb-docker-compose.git
$ cd tidb-docker-compose && docker-compose pull # Get the latest Docker images
$ sudo setenforce 0 # Only on Linux
$ docker-compose up -d
$ mysql -h 127.0.0.1 -P 4000 -u root

测试

Access monitor at http://localhost:3000 (login with admin/admin if you want to modify grafana)
Access tidb-vision at http://localhost:8010
Access Spark Web UI at http://localhost:8080 and access TiSpark through spark://127.0.0.1:7077

Mysql 客户端测试

img

我们可以看到基本和mysql 的使用并没有什么差别,我们也准备正式上新一些小业务,正式的跑跑这块的情况。

posted @ 2023-06-16 16:07  上海志彦  阅读(4)  评论(0编辑  收藏  举报