Steps to setup MySQL replication with zero master downtime:
server-id=1 (can have any unique digit)
log-bin=mysql-bin
CREATE USER repluser@'<master IP>’ IDENTIFIED BY ‘replpass’;
GRANT REPLICATION SLAVE ON *.* TO repluser@'<slave IP>’;
mysqldump –skip-lock-tables –single-transaction –flush-logs –hex-blob –master-data=2 -A > ~/mysqldump.sql
server-id=2 (can have any unique digit)
relay-log-index=slave-relay-bin.index
relay-log=slave-relay-bin
read_only=1
super_read_only=1
CHANGE MASTER TO MASTER_HOST='<master IP>’, MASTER_PORT=<master Port>, MASTER_USER='<user’s username created in #3>’, MASTER_PASSWORD='<user’s password created in #3>’, MASTER_LOG_FILE='<log file name copied from #6>’, MASTER_LOG_POS=<log file position copied from #6>;
START SLAVE;
SHOW SLAVE STATUS;
Web3, the decentralized internet infrastructure, is crucial for building a...
Mehul Gajera
18 Apr 2023Designers can unlock the full potential of AI and create better user...
Parth Parmar, Moin Vhora
28 Jul 2023Hello!
Send us your basic project requirements, one of our Team managers will evaluate your requirement and get back with you with a formal proposal.