From 58dc190ab33bb5abf910805e9e2285806ac4234b Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Mon, 22 Jan 2024 17:10:16 +0100 Subject: [PATCH] The user for replication is "replication", not "replica" Now MariaDB replication is working, just confirmed it by looking to containers activity (previously it was idle). Now time to check why PHPUnit isn't detecting that, it should so we immediately know when replication is not working. --- .../replica/docker-entrypoint-initdb.d/10_replicate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runner/main/modules/docker-database/mariadb.d/replica/docker-entrypoint-initdb.d/10_replicate.sh b/runner/main/modules/docker-database/mariadb.d/replica/docker-entrypoint-initdb.d/10_replicate.sh index 282f4af..c05b1a8 100755 --- a/runner/main/modules/docker-database/mariadb.d/replica/docker-entrypoint-initdb.d/10_replicate.sh +++ b/runner/main/modules/docker-database/mariadb.d/replica/docker-entrypoint-initdb.d/10_replicate.sh @@ -29,8 +29,8 @@ mysql -u root -pmoodle moodle < /tmp/moodle.sql mysql -u root -pmoodle moodle << EOSQL CHANGE MASTER TO MASTER_HOST='${DBHOST}', - MASTER_USER='replica', - MASTER_PASSWORD='replica', + MASTER_USER='replication', + MASTER_PASSWORD='replication', MASTER_LOG_FILE='$replfile', MASTER_LOG_POS=$position; START SLAVE;