【发布时间】:2017-08-09 07:21:05
【问题描述】:
我正在尝试使用 sysbench 在 mySQL 数据库上运行基准测试。但是,它说它找不到内置测试oltp。
详情:
我已经在本地机器上安装了 mySQL 和 sysbench。
另外,我在 mySQL 中创建了数据库dbtest。然后我执行了以下指令。
sysbench --test=oltp --oltp-table-size=1000000 --mysql-db=dbtest --mysql-user=root --mysql-password=<password> prepare
但随后出现此错误消息。
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 与其他测试如
sysbench --test=cpu --cpu-max-prime=20000 run
我认为问题在于 sysbench 找不到名为 oltp 的预定义测试,但我不知道如何解决。
感谢您的阅读。
【问题讨论】:
标签: mysql database benchmarking oltp sysbench