Install Instructions for Production Environment using:

Binary lgoo Ansible logo K8s logo Docker logo AWS logo GCP logo Terraform logo

Developer Local Install Instructions:

icon
Homebrew install instructions (Recommended):
  1. Install Homebrew

  2. Install TiDB

    brew tap pingcap/brew
    brew install tidb-server
  3. Start TiDB

    tidb-server
  4. If you would like to connect a MySQL client to TiDB

    brew install mysql-client
    mysql -h 127.0.0.1 -P4000 -uroot
DBdeployer instructions:
  1. Install DBdeployer

  2. Install MySQL 5.7

    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
  3. Install TiDB

    curl -O https://download.pingcap.org/tidb-master-darwin-amd64.tar.gz
    dbdeployer unpack mysql-5.7.25-macos10.14-x86_64.tar.gz
    dbdeployer deploy single 3.0.0 --client-from=5.7.25
icon
Homebrew install instructions (Recommended):
  1. Install Homebrew

  2. Install TiDB

    brew tap pingcap/brew
    brew install tidb-server
  3. Start TiDB

    tidb-server
  4. If you would like to connect a MySQL client to TiDB

    brew install mysql-client
    mysql -h 127.0.0.1 -P4000 -uroot
DBdeployer instructions:
  1. Install DBdeployer

  2. Install MySQL 5.7

    dbdeployer remote get mysql-5.7.25
    dbdeployer unpack mysql-5.7.25.tar.xz
  3. Install TiDB

    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
icon
Homebrew install instructions (via Windows Subsystem for Linux):
  1. Install Homebrew

  2. Install TiDB

    brew tap pingcap/brew
    brew install tidb-server
  3. Start TiDB

    tidb-server
  4. If you would like to connect a MySQL client to TiDB

    brew install mysql-client
    mysql -h 127.0.0.1 -P4000 -uroot