mysql - is there a tool that can show a live log of all the sql commands the mysql engine receives? -


using mysql - there tool can show live log of sql commands mysql engine receives?

a. helpfull see explain plan dml commands.
b. helpfull if turned on , off on mysql server no need restart service.
c. open source/free mysql nice.
thanks.

you first need activate general query log. there must tools around parse log, favourite being :

tail -f /path/to/mysql.log 

;)

unfortunately, may not disabled dynamically, need restart server in order activate/disable log.

careful, though, activating log has severe performance impact. not use in production.


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -