To turn on MySQL trace feature, simply issue following command in MySQL console (OFF to turn off)
SET GLOBAL general_log = 'ON';
Or add following option to MySQL start up command (to turn off use 0):
You can find the trace log at the database folder. The file name is something like host_name.log.