Mysql-community-server 5.7
Install the build dependent environment first
$ sudo yum install gcc gcc-c++ automake make Libtool mysql-community-devel
$ CD/ tmp && git clone https://github.com/akopytov/sysbench.git
$ cd /tmp/sysbench &&./autogen.sh
$ . /configure--prefix=/usr/local/sysbench-0.5--with-mysql
$ make
$ make Install
$ cd /usr/local/sysbench-0.5/bin
$./sysbench--TEST=OLTP--oltp-table-size=1000000--mysql-db=test--mysql-user=root--mysql-host=127.0.0.1-- mysql-password=123456 Prepare
$./sysbench--TEST=OLTP--oltp-table-size=1000000--mysql-db=test--mysql-user=root--mysql-host=127.0.0.1-- mysql-password=123456--max-time=60--oltp-read-only=on--max-requests=0--num-threads=8 Run
$./sysbench--test=fileio--file-total-size=5g Prepare
$./sysbench--test=fileio--file-total-size=5g--file-test-mode=rndrw--init-rng=on--max-time=300--max-requests=0 Run
$./sysbench--test=fileio--file-total-size=5g Cleanup
sysbench0.5 installation under CENTOS7 (Mysql-community-server)