 <p>Take a look here: <a href="http://dev.mysql.com/doc/refman/5.1/en/server-logs.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/server-logs.html</a> You're looking for general query log: <a href="http://dev.mysql.com/doc/refman/5.1/en/query-log.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/query-log.html</a></p>