Activate Log Mysql

[Solved] Activate Log Mysql | Php - Code Explorer | yomemimo.com
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

Answers related to activate log mysql

Code Explorer Popular Question For Php