Recently, I came through with this error. It was weird because I
have never seen this error earlier.
[root@percona-pxc55-1 nilnandan]# sysbench --test=oltp
--oltp-table-size=1000000 --mysql-db=dbtest --mysql-user=msandbox
--mysql-password=msandbox --mysql-socket=/tmp/mysql_sandbox5537.sock
prepare
sysbench 0.4.12: multi-threaded system evaluation benchmark
FATAL: no database driver specified
FATAL: failed to initialize database driver!
[root@percona-pxc55-1 nilnandan]#
After some research, found that with Sysbench 0.4.x, we have to
use option –db-driver to make it work. So I have used it and it
worked.
[root@percona-pxc55-1 nilnandan]# sysbench --test=oltp
--oltp-table-size=1000000 --mysql-db=dbtest --mysql-user=msandbox
--mysql-password=msandbox --mysql-socket=/tmp/mysql_sandbox5537.sock
--db-driver=mysql --oltp-auto-inc=off prepare
sysbench 0.4.12: multi-threaded system evaluation benchmark
Creating table 'sbtest'...
Creating …
[Read more]