Skip to content

Commit 34e4760

Browse files
committed
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.
1 parent 0c28e95 commit 34e4760

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

db.mariadb.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ services:
1111
--collation-server=utf8mb4_bin
1212
--innodb_file_per_table=On
1313
--wait-timeout=28800
14+
--skip-log-bin
1415
environment:
1516
MYSQL_ROOT_PASSWORD: "m@0dl3ing"
1617
MYSQL_USER: moodle

db.mysql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ services:
99
command: >
1010
--character-set-server=utf8mb4
1111
--collation-server=utf8mb4_bin
12+
--skip-log-bin
1213
environment:
1314
MYSQL_ROOT_PASSWORD: "m@0dl3ing"
1415
MYSQL_USER: moodle

0 commit comments

Comments
 (0)