Today I decided to tweak my mysql config file for better performance, so I downloaded tuning-primer.sh and tried to start the test until I noticed there is something wrong with JOIN section.
Tuning primer was primarily created for MySQL and not for MariaDB. But there is a quite simple fix for this. Open tununig-primer.sh in your favorite editor and seach for :
mysql_variable \'join_buffer%\' join_buffer_size
replace that line with:
mysql_variable \'join_buffer_size%\' join_buffer_size
Save the file and run the test again. Now it should run OK.