From 34e4760e48110fca77f00352341cb1d98fdcae78 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Wed, 4 Jan 2023 09:35:30 +0100 Subject: [PATCH] Ensure that we don't use bin logs by default MySQL 8 comes with bin logs enabled, and that can end using big space on volumes for near nothing. So ensure that both MySQL and MariaDB, by default, disable them. Note this can be changed whenever/if we want to test primary + replica configurations, but that's another story. For standalone runs better have bin logs disabled. --- db.mariadb.yml | 1 + db.mysql.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/db.mariadb.yml b/db.mariadb.yml index e27090d7819..d463011e6a6 100644 --- a/db.mariadb.yml +++ b/db.mariadb.yml @@ -11,6 +11,7 @@ services: --collation-server=utf8mb4_bin --innodb_file_per_table=On --wait-timeout=28800 + --skip-log-bin environment: MYSQL_ROOT_PASSWORD: "m@0dl3ing" MYSQL_USER: moodle diff --git a/db.mysql.yml b/db.mysql.yml index 917bcc9aec6..45854f2d718 100644 --- a/db.mysql.yml +++ b/db.mysql.yml @@ -9,6 +9,7 @@ services: command: > --character-set-server=utf8mb4 --collation-server=utf8mb4_bin + --skip-log-bin environment: MYSQL_ROOT_PASSWORD: "m@0dl3ing" MYSQL_USER: moodle