Skip to content

Commit

Permalink
Merge pull request #8 from michel-silva/fix-mysqldump-master-database
Browse files Browse the repository at this point in the history
Fix mysqldump master database
  • Loading branch information
michel-silva authored Feb 7, 2024
2 parents 4e65ce4 + 475de9f commit 5f7f32f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bitnami/mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ The above command scales up the number of slaves to `3`. You can scale down in t

> **Note**: You should not scale up/down the number of master nodes. Always have only one master node running.

If your master database is missing some binary files, the replication will break. It's possible to add `MYSQL_REPLICATION_SLAVE_DUMP=true` to make a dump on the master and import it on the slave.
If your master database missing some binary files, the replication will broken. It's possible add `MYSQL_REPLICATION_SLAVE_DUMP=true` toe make a dump on master and import it on slave.

> **Note**: The master database must be only used by this process until the end to avoid missing data.

Expand Down
2 changes: 1 addition & 1 deletion bitnami/mysql/docker-compose-replication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ services:
- MYSQL_MASTER_ROOT_PASSWORD=my_root_password
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
# In case of missing binary files on master, use `true` to reset those binary files. Creating a previous backup is recommended.
# Only use true if master node missing binary files (The binary files will be reset, recomendate backup files)
- MYSQL_REPLICATION_SLAVE_DUMP=false
healthcheck:
test: ['CMD', '/opt/bitnami/scripts/mysql/healthcheck.sh']
Expand Down

0 comments on commit 5f7f32f

Please sign in to comment.