Question : activate log mysql
Answered by : injury
# sql
SET GLOBAL general_log_file='/var/log/mysql/file.log';
SET GLOBAL log_output = 'FILE';
SET GLOBAL general_log = 'ON';
# or
# ./etc/mysql/my.cnf
[mariadbd]
general-log=1
general_log_file=file.log
Source : | Last Update : Tue, 15 Mar 22