You get a bonus - 1 coin for daily activity. Now you have 1 coin

MySQL: How to view the last query and the full query log

Practice




msql how to view the latest and all logs of all queries

if writing to the database, then

SET global general_log = 1;

SET global log_output = 'table';

select * from mysql.general_log


or
if to a file

SET global general_log = 1;
SET GLOBAL log_output = "FILE"
SET GLOBAL general_log_file = "/path/to/your/logfile.log"

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Databases - MySql (Maria DB)"

Terms: Databases - MySql (Maria DB)