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?
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: