Setting Up Master-Master Replication With MySQL 5 On Debian Etch

Posted by falko on Oct 25, 2007 7:13 PM EDT
HowtoForge; By Falko Timme
Mail this story
Print this story

Since version 5, MySQL comes with built-in support for master-master replication, solving the problem that can happen with self-generated keys. In former MySQL versions, the problem with master-master replication was that conflicts arose immediately if node A and node B both inserted an auto-incrementing key on the same table. The advantages of master-master replication over the traditional master-slave replication are that you do not have to modify your applications to make write accesses only to the master, and that it is easier to provide high-availability because if the master fails, you still have the other master.

Since version 5, MySQL comes with built-in support for master-master replication, solving the problem that can happen with self-generated keys. In former MySQL versions, the problem with master-master replication was that conflicts arose immediately if node A and node B both inserted an auto-incrementing key on the same table. The advantages of master-master replication over the traditional master-slave replication are that you do not have to modify your applications to make write accesses only to the master, and that it is easier to provide high-availability because if the master fails, you still have the other master.

http://www.howtoforge.com/mysql5_master_master_replication_debian_etch

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Debian, MySQL

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.