general_log
查看日志是否开启
show variables like 'general_log';
看看日志文件保存位置
show variables like 'general_log_file';
看看日志输出类型 table或file
show variables like 'log_output';
开启日志功能
set global general_log=on;
设置日志文件保存位置
set global general_log_file='/data/logs/general.log';
设置输出类型为 table
set global log_output='table';
设置输出类型为 file
set global log_output='file';
设置多位置保存
set global log_output='table,file';
浙公网安备 33010602011771号