MariaDB master-replica for ERPNext failover : deep dive
summary
Deploys MariaDB Community Edition master‑replica for ERPNext with manual steps, automation scripts and an on‑host demo: config edits (server_id, log_bin, relay_log), create replication user, take backup/restore, set master status file and position, run CHANGE MASTER TO, watch seconds behind master = 0 on slave. Demo uses two servers on ports 3306 and 3307 under WSL, shows a replicated row, and switches replication by stopping/resetting the slave and updating common_site_config.json. Automation via Bash, MariaBackup and Ansible is included; GTID noted but binlog recommended for per‑database setups.
AI-written summary · about
