Skip to content

Watches mysql's general_log and prints out sql queries with syntax highlighting

Notifications You must be signed in to change notification settings

LukasHurych/MySQL-Log-Watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

MySQL Log Watcher

Watches MySQL's general_log for changes and prints out nicely formatted SQL queries. Handy if you use ORM.

Screenshot

Requirements

Installation

You need to enable general_log_file in your my.cnf config file.

    [mysqld]
    general_log_file        = /var/log/mysql/mysql.log
    general_log             = 1

and restart database server.

Mac OS X users: if you already don't have mysql's config file, create empty one in /etc/my.cnf

Now you can start the watcher

    python watcher.py

About

Watches mysql's general_log and prints out sql queries with syntax highlighting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages