mysql> select version();
±-----------------------------+
| version() |
±-----------------------------+
| 5.7.25-OceanBase_CE-v4.3.1.0 |
±-----------------------------+
1 row in set (0.00 sec)
sysbench --version
sysbench 1.1.0
###–threads=1 可以正常执行
sysbench --config-file=config ./lua/oltp_point_select.lua --tables=1 --threads=1 run
###–threads=2 报错
[root@n110 obsysbench]# sysbench --config-file=config ./lua/oltp_point_select.lua --tables=1 --threads=2 run
sysbench 1.1.0 (using bundled LuaJIT 2.1.0-beta3)
Running the test with following options:
Number of threads: 2
Report intermediate results every 2 second(s)
Initializing random number generator from current time
Initializing worker threads…
FATAL: unable to connect to MySQL server on host ‘n113’, port 2881, aborting…
FATAL: error 1045: Access denied for user ‘bench’@‘xxx.xxx.xxx.xxx’ (using password: NO)
FATAL: `thread_init’ function failed: /usr/local/share/sysbench/oltp_common.lua:356: connection creation failed