login to your mysql instance as root user and then use this commands to active mysql query logs

SET GLOBAL log_output = 'FILE';
SET GLOBAL general_log_file = 'nameoflogfile';
SET GLOBAL general_log = 'ON';

Continue reading...