mysql效能測試工具之tpcc-mysql

來源:互聯網
上載者:User

標籤:mysql效能測試工具之tpcc-mysql

官網:

http://imysql.com/wp-content/uploads/2014/09/tpcc-mysql-src.tgz


1.用bzr用戶端下載軟體包

[[email protected] ~]# yum install bzr -y

[[email protected] ~]# bzr branch lp:~percona-dev/perconatools/tpcc-mysql

[[email protected] ~]# cd tpcc-mysql/src/

[[email protected] src]# make

[[email protected] src]# cd ..
[[email protected] tpcc-mysql]# ll
total 252
-rw-r--r--. 1 root root   1621 Apr 23 11:24 add_fkey_idx.sql
-rw-r--r--. 1 root root    317 Apr 23 11:24 count.sql
-rw-r--r--. 1 root root   3105 Apr 23 11:24 create_table.sql
-rw-r--r--. 1 root root    763 Apr 23 11:24 drop_cons.sql
-rw-r--r--. 1 root root    477 Apr 23 11:24 load.sh
-rw-r--r--. 1 root root    851 Apr 23 11:24 README
drwxr-xr-x. 2 root root   4096 Apr 23 11:24 schema2
drwxr-xr-x. 5 root root   4096 Apr 23 11:24 scripts
drwxr-xr-x. 2 root root   4096 Apr 23 11:25 src
-rwxr-xr-x. 1 root root  61191 Apr 23 11:25 tpcc_load        --make後產生的命令
-rwxr-xr-x. 1 root root 155886 Apr 23 11:25 tpcc_start       --make後產生的命令

[[email protected] tpcc-mysql]# 


2.建立資料庫匯入表結構

[[email protected] tpcc-mysql]# mysqladmin  create tpcc;
[[email protected] tpcc-mysql]# mysql tpcc < create_table.sql
[[email protected] tpcc-mysql]#


3.載入測試資料(tpcc_load)

[[email protected] tpcc-mysql]# ./tpcc_load  --help
*************************************
*** ###easy### TPC-C Data Loader  ***
*************************************

 usage: tpcc_load [server] [DB] [user] [pass] [warehouse]
      OR
        tpcc_load [server] [DB] [user] [pass] [warehouse] [part] [min_wh] [max_wh]

           * [part]: 1=ITEMS 2=WAREHOUSE 3=CUSTOMER 4=ORDERS
[[email protected] tpcc-mysql]# ./tpcc_load  localhost tpcc root "" 100   --機械硬體倉庫數不能少於100個,ssd硬體不能少於1000個


本文出自 “一起走過的日子” 部落格,請務必保留此出處http://tongcheng.blog.51cto.com/6214144/1637512

mysql效能測試工具之tpcc-mysql

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.