这种方法需要的时间比较长
方法2:
SET GLOBAL general_log = ‘OFF‘;
找到general_log的文件 执行
cat /dev/null > general_log.csv
发现也将大小释放了,比上一个快很多
方法3:
可以在配置文件my.conf 中添加:
general_log=1
general_log_file=‘/data/mysql/general_log.CSV‘
将文件放到更大的磁盘
清理 Mysql general_log
标签:mysq null tab 方法 ble regex number keyword 时间