Show recently executed SQL statements in MariaDB

MariaDb

 Enable general_log by running:

SET GLOBAL log_output = 'TABLE'

SET GLOBAL general_log = 'ON'

Then view the contents of the general_log table to see SQL statements.

To turn this off, run

SET GLOBAL general_log = 'OFF'


Post a Comment

Previous Post Next Post