One minute
Tidb Debug
- 准备
参考前面的文章
- 编译&启动
获取与编译:
go get github.com/pingcap/tidb
cd ~/go/src/github.com/pingcap/pd]
make server
启动:
./tidb-server
-p 4000:4000 \
-p 10080:10080 \
-v /etc/localtime:/etc/localtime:ro \
pingcap/tidb:latest \
--store=tikv \
--path="192.168.1.101:2379"
客户端连接:
mysql -h 127.0.0.1 -P 4000 -u root -D test
然后出现如下提示, 就成功了
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.25-TiDB-v3.0.0-beta.1-49-g4cbe896 MySQL Community Server (Apache License 2.0)
65 Words
2019-04-03 10:00 +0800