-
问题描述
设置expire_logs_days参数出现如下问题:
ERROR 3683 (HY000): The option expire_logs_days and binlog_expire_logs_seconds cannot be used together. Please use binlog_expire_logs_seconds to set the expire time (expire_logs_days is deprecated)
-
解决方案
这个参数的意思是设置日志失效日期为3天,默认是30天,比较耗费磁盘空间。
这个参数已经弃用, 改用
binlog_expire_logs_seconds
,单位由天改为秒,如下设置1天。set global binlog_expire_logs_seconds=60*60*24;
可以通过
show variables like '%expire%';
查看更改结果。永久改动可以找到
/etc/mysql/my.cnf
(Ubuntu)文件写入配置。 -
References
(已解决)ERROR 3683 (HY000): The option expire_logs_days and binlog_expire_logs_seconds cannot be used
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.