sysbench版本是sysbench 1.0.6
下面的lua文件根据是读还是写,还是混合读写而不同
混合读写的
sysbench /usr/share/sysbench/tests/include/oltp_legacy/oltp.lua --mysql-host=10.150.27.222 --mysql-port=3306 --mysql-user=test --mysql-password=test2019523 --mysql-db=test --oltp-tables-count=10 --oltp-table-size=500 --report-interval=10 --rand-init=on --max-requests=0 --oltp-read-only=off --max-time=120 --num-threads=128 --db-driver=mysql prepare
sysbench /usr/share/sysbench/tests/include/oltp_legacy/oltp.lua --mysql-host=10.150.27.222 --mysql-port=3306 --mysql-user=test --mysql-password=test2019523 --mysql-db=test --oltp-tables-count=10 --oltp-table-size=500 --report-interval=10 --rand-init=on --max-requests=0 --oltp-read-only=off --max-time=120 --num-threads=128 --db-driver=mysql run
sysbench /usr/share/sysbench/tests/include/oltp_legacy/oltp.lua --mysql-host=10.150.27.222 --mysql-port=3306 --mysql-user=test --mysql-password=test2019523 --mysql-db=test --oltp-tables-count=10 --oltp-table-size=500 --report-interval=10 --rand-init=on --max-requests=0 --oltp-read-only=off --max-time=120 --num-threads=128 --db-driver=mysql cleanup
只更新的用的是update_index.lua文件