Commit 7e6eccb6 authored by casualet's avatar casualet

add bench

parent 4a413546
mysqladmin create tpcc1000 -uroot -pletmein -h127.0.0.1 -P3399
echo "=============================================CREATE DATABASE====================================================="
mysql -uroot -pletmein -h127.0.0.1 -P3399 -e "create database tpcc1000"
echo "=============================================CREATE TABLE====================================================="
mysql -uroot -pletmein -h127.0.0.1 -P3399 tpcc1000 < create_table.sql
echo "=============================================LOAD DATA====================================================="
mysql -uroot -pletmein -h127.0.0.1 -P3399 tpcc1000 < all.sql
mysqldump --skip-extended-insert -uroot -pletmein -h127.0.0.1 -P3399 tpcc1000 > crypt.sql
echo "=============================================DUMP DATABASE====================================================="
mysqldump --skip-extended-insert -uroot -pletmein -h127.0.0.1 -P3399 tpcc1000 > back.sql
mysqladmin create tpcc1000 -uroot -pletmein -h127.0.0.1
# load data and dump all.sql
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
./tpcc_load -h127.0.0.1 -uroot -pletmein -d tpcc1000 -w 2
mysqldump --skip-extended-insert -uroot -pletmein -h127.0.0.1 tpcc1000 > all.sql
mysql -uroot -pletmein -h127.0.0.1 -e "drop database if exists tpcc1000"
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