Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

activate log mysql

# 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
 
PREVIOUS NEXT
Tagged: #activate #log #mysql
ADD COMMENT
Topic
Name
2+3 =