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 客户端测试
我们可以看到基本和mysql 的使用并没有什么差别,我们也准备正式上新一些小业务,正式的跑跑这块的情况。
本文来自 上海志彦,作者:上海志彦,转载请注明原文链接:https://www.cnblogs.com/pmo-sh/p/learn-to-tidb.html