I was struggling for a while with how to get a profile of the queries being sent to MySQL. All my searches suggested running the debug version of MySQL, but it would either log WAY WAY too much information, or else not log the queries at all. I wanted something akin to the SQL Server Profiler, so I could just see the SQL and proc calls. Is that so much to ask?
I eventually found the solution in the NHibernate forums (of all places), and it doesn’t require running the debug version of MySQL at all. Inside your MySQL option file (e.g. “C:Program FilesMySQLMySQL Server 5.0my.ini” or some other location), add the following line inside the [mysqld] section:
log="C:/Program Files/MySQL/MySQL Server 5.0/mysql.log"
Restart the MySQL service, and you’ll get a nice log file continuously updated with all queries being sent to MySQL. You can view it with TextPad or some other text editor that can auto-refresh files when they change.