[debian-mysql] Bug#1058671: mariadb-server: [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.

Daniel Lewart lewart3 at gmail.com
Thu Dec 14 09:52:30 GMT 2023


Package: mariadb-server
Version: 1:10.11.4-1~deb12u1
Severity: minor
Tags: patch

Otto, et al,

Starting mariadb-server generates the following message:
    [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.

50-server.cnf includes the following lines:
    #log_bin                = /var/log/mysql/mysql-bin.log
    expire_logs_days        = 10
log_bin defaults to OFF, thus the warning.

Commenting out "expire_log_days" is a simple fix.
Patch below.

Thank you!
Daniel Lewart
Urbana, Illinois
---
diff -ru a/debian/additions/mariadb.conf.d/50-server.cnf b/debian/additions/mariadb.conf.d/50-server.cnf
--- a/debian/additions/mariadb.conf.d/50-server.cnf	2023-11-26 20:58:10.000000000 -0600
+++ b/debian/additions/mariadb.conf.d/50-server.cnf	2023-12-14 00:00:00.000000000 -0600
@@ -72,7 +72,7 @@
 #       settings you may need to change.
 #server-id              = 1
 #log_bin                = /var/log/mysql/mysql-bin.log
-expire_logs_days        = 10
+#expire_logs_days       = 10
 #max_binlog_size        = 100M
 
 #



More information about the pkg-mysql-maint mailing list