tpcc-mysql 安裝及使用

來源:互聯網
上載者:User

標籤:.com   通過   star   圖片   tpc   key   info   _id   .sql   

一、 安裝

1、 下載.tar包的tpcc-mysql

2、 上傳到伺服器(rz)

3、 解壓(tar -zxvf tpcc-mysql-src.tar)

二、 準備資料庫

進入資料庫,運行create_table.sql,add_fkey_idx.sql這兩張表(這兩張表通過tpcc-mysql解壓擷取)

三、 使用ttpc_load灌入測試資料(灌入倉庫時間有點長)

tpcc_load host ‘dbname‘ username password warehouse

(warehouse指要建立的倉庫數量)

四、 開始測試

tpcc_start -h host  -Pport -d dbname -u username -p password  -w 10 -c 10 -r 300 -l 1800

-d 測試庫

-u 使用者名稱

-p 密碼

-w 使用多少個資料倉儲

-c 測試的並發數

-r 預熱幾秒

-l 運行測試多長時間

 

(如果需要刪除已建立的表,這個時候drop_cons.sql就有用了)

 

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.