Server names: master1, master2 Set up slave account for master2 on master1, enter to mysql on master 1 mysql -u root -p mysql mysql> GRANT REPLICATION SLAVE ON *.* TO ‘replication’@master2 identified be ‘slave’; mysql> FLUSH TABLES WITH READ LOCK; shutdown mysql on master1 service mysqld stop make a tar of datadir on master1 cd /data tar …