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
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:
http://dev.mysql.com/doc/refman/5.1/en/mysqlslap.html#option_mysqlslap_number-of-queries
--query
option--query
option allows onlySELECT
statements as mentioned here:dev.mysql.com/doc/refman/5.1/en/…