mysql5.5, flush logs无效,怎么解决?show variables like 'expire_logs_days';
-- 10set global expire_logs_days=0;
flush logs;马上就执行完了不到一秒,在mysql5.1里面,都需要10分钟,因为有20多G的mysql binlog啊。
检查是否设置正确了。show variables like 'expire_logs_days';
-- 0ok,设置成功了,但是flush logs好像无效,看了error日志,没有报任何信息出来,诡异啊!
-- 10set global expire_logs_days=0;
flush logs;马上就执行完了不到一秒,在mysql5.1里面,都需要10分钟,因为有20多G的mysql binlog啊。
检查是否设置正确了。show variables like 'expire_logs_days';
-- 0ok,设置成功了,但是flush logs好像无效,看了error日志,没有报任何信息出来,诡异啊!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货