使用sysbench测试Mysql性能
时间:2010-12-21 来源:wenaini
sysbench可以用来测试oracle,mysql,os的性能,比较方便实用
首先要安装mysql 5,因为mysql 4不支持sysbench 0.4.8
安装完以后按照下面的步骤配置sysbench:
tar zxvf sysbench-0.4.8.tar.gz
./configure --with-mysql-includes=/usr/local/mysql/include --with-mysql-libs=/usr/local/mysql/lib && make && make install
如果安装完毕后运行sysbench碰到下面的错误:
sysbench: error while loading shared libraries: libmysqlclient_r.so.15: cannot open shared object file: No such file or directory
运行 export LD_LIBRARY_PATH=/usr/local/mysql/lib 即可
下面就是sysbench的准备测试,运行测试,结束测试的语句
首先要安装mysql 5,因为mysql 4不支持sysbench 0.4.8
安装完以后按照下面的步骤配置sysbench:
tar zxvf sysbench-0.4.8.tar.gz
./configure --with-mysql-includes=/usr/local/mysql/include --with-mysql-libs=/usr/local/mysql/lib && make && make install
如果安装完毕后运行sysbench碰到下面的错误:
sysbench: error while loading shared libraries: libmysqlclient_r.so.15: cannot open shared object file: No such file or directory
运行 export LD_LIBRARY_PATH=/usr/local/mysql/lib 即可
下面就是sysbench的准备测试,运行测试,结束测试的语句
相关阅读 更多 +