From:http://www.faemalia.net/mysqlUtils/
dbmon.pl A simple script to monitor MySQL queries and log them into a file for future processing. Optionally will kill long-running queries. There are a couple of supporting scripts: listQueries.py If you want to process the logs for long-running querie......