I'm trying to run benchmark on mySQL database using sysbench. However, it says it cannot find built-in test oltp
.
Detail:
I've installed mySQL, and sysbench on my local machine.
Also, I've created database dbtest
inside the mySQL. And then I executed following instruction.
sysbench --test=oltp --oltp-table-size=1000000 --mysql-db=dbtest --mysql-user=root --mysql-password=<password> prepare
But then this error message occured.
WARNING: the --test option is deprecated. You can pass a script
name or path on the command line without any options.
sysbench 1.0.8 (using bundled LuaJIT 2.1.0-beta2)
FATAL: Cannot find benchmark 'oltp': no such built-in test, file or module
sysbench worked fine with other test such as
sysbench --test=cpu --cpu-max-prime=20000 run
I think the problem is that sysbench can't find pre-defined test called oltp
but I don't know how to figure it out.
Thank you for reading.