MySQL sysbench 安装

1. 下载文件
wget https://github.com/akopytov/sysbench/archive/1.0.zip -O "sysbench-1.0.zip"

2. 安装依赖组件
zypper install libtool  automake

3. 安装
./autogen.sh
./configure
make
make install

4.安装成功
sysbench --version 

sysbench ./tests/include/oltp_legacy/oltp.lua --mysql-host=192.168.56.102 --mysql-port=3306 --mysql-user=root --mysql-password=111 --oltp-test-mode=complex --oltp-tables-count=10 --oltp-table-size=100000 --threads=10 --time=120 --report-interval=10 prepare


sysbench ./tests/include/oltp_legacy/oltp.lua --mysql-host=192.168.56.102 --mysql-port=3306 --mysql-user=root --mysql-password=111 --oltp-test-mode=complex --oltp-tables-count=10 --oltp-table-size=100000 --threads=10 --time=120 --report-interval=10 run >>run.log


sysbench ./tests/include/oltp_legacy/oltp.lua --mysql-host=192.168.56.102 --mysql-port=3306 --mysql-user=root --mysql-password=111 --oltp-test-mode=complex --oltp-tables-count=10 --oltp-table-size=100000 --threads=10 --time=120 --report-interval=10 cleanup
 

猜你喜欢

转载自blog.csdn.net/zhengjian0617/article/details/82015449