Stressing out your database.
todo:
This of course doesn't have to be written in lua to create lua files. I just wanted to use lua.
You need the mysql client if you're running this on a remote machine. Here's one way to get that on Mac:
brew install mariadb
Install lua (luarocks will come with it) and the luasql-mysql and date modules:
brew install lua
luarocks install luasql-mysql MYSQL_DIR=/usr/local/bin MYSQL_INCDIR=/usr/local/Cellar/mariadb/10.1.21/include/mysql
luarocks install date
mysql -uuser -ppassword < myisam_log.sql
After allowing time for the queries to be logged, parse the log into per-thread, timed query playbooks, with a scheduler.lua file too.
./convert.lua