Doc Menu

Install from DBdeployer

DBdeployer is designed to allow multiple versions of TiDB deployed concurrently. It is recommended for advanced users who are testing out new builds of TiDB, or testing compatibility across releases.

Similar to Homebrew, the DBdeployer installation method installs the tidb-server without the tikv-server or pd-server. This is useful for development environments, since you can test your application's compatibility with TiDB without needing to deploy a full TiDB platform.

Note:

Internally this installation uses goleveldb as the storage engine. It is much slower than TiKV, and any benchmarks will be unreliable.

After installing DBdeployer, install a MySQL 5.7 client:

curl -LO https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.25-macos10.14-x86_64.tar.gz dbdeployer unpack mysql-5.7.25-macos10.14-x86_64.tar.gz

Install TiDB using the installed MySQL 5.7 client:

curl -O https://download.pingcap.org/tidb-master-darwin-amd64.tar.gz dbdeployer unpack tidb-master-darwin-amd64.tar.gz --unpack-version=3.0.0 dbdeployer deploy single 3.0.0 --client-from=5.7.25

After installing DBdeployer, install a MySQL 5.7 client:

dbdeployer remote get mysql-5.7.25 dbdeployer unpack mysql-5.7.25.tar.xz

Install TiDB using the installed MySQL 5.7 client:

wget https://download.pingcap.org/tidb-master-linux-amd64.tar.gz dbdeployer unpack tidb-master-linux-amd64.tar.gz --unpack-version=3.0.0 dbdeployer deploy single 3.0.0 --client-from=5.7.25