mysql的binlog过期时间
最近查看binlog日志文件,发现直接变为了mysql-bin.000003,好奇为什么没有从01开始记录,于是查询了binlog过期时间
show variables like 'expire_logs_days%';
发现为0,应该是永不过期才对
因为我的数据库版本是8,发现在mysql8版本以上,binlog过期时间为以下参数
show variables like 'binlog_expire_logs_seconds%';
该值为2592000,可得出默认过期时间为30天
浙公网安备 33010602011771号