Commit 9e4de23c authored by casualet's avatar casualet

compact mode

parent b3df5e91
......@@ -3,6 +3,6 @@ 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
mysql -uroot -pletmein -h127.0.0.1 -P3399 tpcc1000 < all$1.sql
echo "=============================================DUMP DATABASE====================================================="
mysqldump --skip-extended-insert -uroot -pletmein -h127.0.0.1 tpcc1000 > back.sql
mysqldump --skip-extended-insert -uroot -pletmein -h127.0.0.1 --hex-blob tpcc1000 > back$1.sql
......@@ -4,5 +4,5 @@ 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 $1
mysqldump --skip-extended-insert -uroot -pletmein -h127.0.0.1 tpcc1000 > all$1.sql
mysqldump --skip-extended-insert -uroot -pletmein -h127.0.0.1 --no-create-info --hex-blob --compact tpcc1000 > all$1.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