Commit f3bef4b1 authored by yiwenshao's avatar yiwenshao

add script

parent 7d73a3be
sudo apt install vim git
customer,total_count 30000
district,total_count 10
history,total_count 30000
item,total_count 100000
new_orders,total_count 9000
order_line,total_count 299810
orders,total_count 30000
stock,total_count 100000
warehouse,total_count 1
name="all.sql"
if [ $# = 1 ];then
name=$1
fi
mysqldump -uroot -pletmein -h127.0.0.1 -P3306 --no-create-info --compact tpcc1000 > $name
mysql -uroot -pletmein -h127.0.0.1 -e "drop database if exists tpcc1000"
mysql -uroot -pletmein -h127.0.0.1 -e "create database tpcc1000"
mysql -uroot -pletmein -h127.0.0.1 tpcc1000 < create_table.sql
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment