Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
see the --query option – Cristian Porta Apr 17 '13 at 12:35
--query option allows only SELECT statements as mentioned… – Ruchit Rami Apr 18 '13 at 4:01
Try changing your stress test tool, if you can, take a look on my answer here:… – Cristian Porta Apr 18 '13 at 5:01
up vote 1 down vote accepted

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:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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