MySQL logging

Updated: 10 September 2022

Enable logging temporarily

SET global log_output = 'FILE';
SET global general_log_file='/var/log/mysql/mysql-all.log';
SET global general_log = 1;