How to monitor MySQL queries on Windows

BreakPhreak picture BreakPhreak · Oct 4, 2010 · Viewed 9.7k times · Source

Is there any easy way to track/monitor all the SQL of the queries, executed by an MySQL server (on a Windows machine)?

Update: I am asking about the free tool.

Answer

BreakPhreak picture BreakPhreak · Oct 4, 2010
  1. Send this command to the server: set global general_log=1;
  2. Find the log file (the default on Win7 it resides in C:\ProgramData\MySQL\MySQL Server 5.1\data) and has a name just like the computer.
  3. Examine the log :)
  4. Set the general_log back to 0 to return the DB server performance back to normal.