Sometimes it is useful to enable query logging for debugging purposes, this will log all queries so that you can see which users are doing what.
Turn it on (https://stackoverflow.com/a/14404000/2110294)
SET global general_log = on;
SET global log_output = 'table';
List logs
SELECT * FROM mysql.general_log;
List queries (https://dba.stackexchange.com/a/192861)
SELECT a.*, convert(a.argument USING utf8) FROM mysql.general_log a;
Turn it off
SET global general_log = off;
Remove log data
TRUNCATE mysql.general_log;