1 批量删除进程
导出文件只能导出到系统指定的文件路径,其他地方没有权限,可以通过以下命令查看系统指定路径
show variables like '%secure%';
- 可以通过my.ini 文件进行修改,修改之后需要重启Mysql才能生效
select concat('KILL ',id,';') from information_schema.processlist where user='root' into outfile '/tmp/a.txt';
source /var/lib/mysql/a.txt;
2 查看系统日志是否开启
show variables like '%general_log%';
show variables like 'log_output';
show variables like '%error'; 错误日志文件