I had used a tool to open and analyze the binary files. The output used to be
insert into table1
update table4
insert into some_other_table
It used to show how many insert or update statements where there in the binary file. It was useful to know if the server is inserting/ deleting records or if there are heavy updates happening.
I do not remember the name of the utility. any hint?
Finally got the tool I was looking for.
http://forge.mysql.com/tools/tool.php?id=273
Since the link is not working, here is the code...
mysqlbinlog filename | grep -i -e "^update" -e "^insert" -e "^delete" -e "^replace" -e "^alter" | cut -c1-100 | tr '[A-Z]' '[a-z]' | sed -e "s/\t/ /g;s/\`//g;s/(.*$//;s/ set .*$//;s/ as .*$//" | sed -e "s/ where .*$//" | sort | uniq -c | sort -nr | head -50
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With