mysql设置二进制日志保存天数

只需要在/etc/my.cnf加入

expire_logs_days = 10

再重启mysql服务就可

comments powered by Disqus