I want to conduct stress test on our MySQL DB. I have the list of queries i need to execute. I have tried using Apache JMeter for this but it is very time consuming. Is it possible to run mysqlslap with custom .sql file containing INSERT, UPDATE, SELECT queries on specified MySQL database?


1 Answer 1


The mysqlslap --query option will absolutely take a file containing lines with INSERT, UPDATE, DELETE, and REPLACE INTO statements, as well as SELECT.

In fact, one of the examples later in the documentation shows it taking an INSERT:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.