SyntaxFix
Write A Post
Hire A Developer
Questions
Seems like the general query log is the file that you need. A good introduction to this is at http://dev.mysql.com/doc/refman/5.1/en/query-log.html