To show the last queries executed on MySQL

If you are using MySQL 5.x or later ,execute those statements-

SET GLOBAL log_output = ‘TABLE’;
SET GLOBAL general_log = ‘ON’;
SELECT * FROM mysql.general_log;

 

Posted in: SQL

Leave a Reply

Your email address will not be published. Required fields are marked *