mysqltail
September 19th, 2006
I’ve hacked together a little PHP script which allows to filter mysql log files for sql statements issued by specific users.
Basic usage:
php mysqltail.php /var/log/mysql.log userToFilter [orOtherUser]
It can also be used to pipe an existing logfile:
cat mysql.log | php mysqltail.php - userToFilter
Download: http://markus.fischer.name/lab/php/mysqltail.php.txt
Entry Filed under: PHP
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed