Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

activate log mariadb

# 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 #mariadb
ADD COMMENT
Topic
Name
3+7 =