Read and seek mysqlbinlog file.
python setup.py build sudo python setup.py install
mysqlbinlook read sql from stdin and seek a pattern
mysqlbinlog mysql-bin.* | mysqlbinlook date_format_types