Created
October 3, 2014 08:50
-
-
Save vadviktor/38f9a69051a76560de92 to your computer and use it in GitHub Desktop.
Tail mysql log with syntax highlight
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo tail -n +4 -f /var/log/mysql/mysql.log | sed -u -e 's/^.\+Query\t//' -e '/^.\+Connect\t/d' -e '/^.\+Quit\t/d' | source-highlight -fesc -ssql -oSTDOUT |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tail -f /var/log/mysql/mysql.log | source-highlight -f esc -s sql