6 MySQL Database Replication Tips

By Angsuman Chakraborty, Gaea News Network
Sunday, November 18, 2007

Replicating on two or more MySQL master database servers

1. MySQL Master-Master Replication Fails With ERROR 1200 (HY000) on Master

2. Password problem are solved by carefully checking your grant statements

3. When you have more than two master servers, you must use log-slave-updates option to ensure that changes are propagated in a chain. Beware of infinite looping of updates. Infinite loop is prevented with:
replicate-same-server-id = 0

4. When in trouble delete the master.info file and restart the server. It may contain stale information which overrides your configuration in my.cnf.

5. Always keep a tail -f of MySQL server log file to spot any replication problems during testing phase

6. Setup scripts to notify you when replication fails.

Discussion
August 21, 2008: 3:20 pm

Thanks Very good

YOUR VIEW POINT
NAME : (REQUIRED)
MAIL : (REQUIRED)
will not be displayed
WEBSITE : (OPTIONAL)
YOUR
COMMENT :