Alexey made this amazing tool that the majority of MySQL DBAs are using, but if you use sysbench provided with your GNU/Linux distribution or its repository on packagecloud.io you won’t be able to use it with the new default authentication plugin in MySQL 8.0 (caching_sha2_password
).
error 2059: Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib64/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directoryyou have 3 options:
- modify the use to use
mysql_native_password
as authentication method - compile sysbench linking it to
mysql-community-libs-8.0.x
(/usr/lib64/mysql/libmysqlclient.so.21) - use the rpm for RHEL7/CentOS7/OL7 available on this post: sysbench-1.0.15-1.el7.centos.x86_64
[…] such a case, please refer to this post to understand what you should […]
[…] also wanted to have sysbench compiled and linked with MySQL 8.0 libraries [1], […]