Shows a list and stats on recently run queries. By default, the query_log is turned off. You can enable the log by running the sql statement SET querylog = 1000, and the most recent 1000 queries will be logged. You can disable it by running SET querylog = 0.
SELECT * FROM INFORMATION_SCHEMA.QUERY_LOG