Skip to content

Instantly share code, notes, and snippets.

@BarDev
Last active April 15, 2021 14:44
Show Gist options
  • Save BarDev/97dd1080f72d56bd923a5d9356493543 to your computer and use it in GitHub Desktop.
Save BarDev/97dd1080f72d56bd923a5d9356493543 to your computer and use it in GitHub Desktop.
TiDB - TiUP Scratchpad

TiDB - TiUP Scratch Pad

How to manage and run TiDB using TiUP

TiUP Overview
TiUP Documentation Guide
Deploy a TiDB Cluster Using TiUP
Get a TiDB Cluster Up in Only One Minute
Quick Start Guide for the TiDB Database Platform
TiUP Common Operations
Deploy and Maintain an Online TiDB Cluster Using TiUP
Scale the TiDB Cluster Using TiUP

# Download and Install TiUP
curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh 


# Start TiDB with TiUP
tiup playground 
tiup playground --pd 3 --db 3 --kv 4
tiup playground --pd 3 --db 3 --kv 4 --monitor
tiup playground v3.0.10
tiup --tag example-features playground v4.0.0-rc
tiup client # Connect a TiDB cluster in your local host
tiup client example-features


# Install, update, or uninstall a component
tiup install <component>, tiup update <component>, tiup uninstall <component>)

# Uninstall TiUP and clear all downloaded components and data generated by the component when it runs 
tiup uninstall --self

# Display a list of components
tiup list
tiup list tidb

# Display the status of running components  
tiup status

# Delete the temporary data that is generated when an application runs
tiup clean

# TPC-C performance benchmarking
tiup bench tpcc

# TPC-H performance benchmarking
tiup bench tpch



TiUP Client

# start TiUP Client from Bash
tiup client

# help
help

# import files
\i 'some.sql'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment