<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Restarting MySQL master-master replication</title>
	<atom:link href="http://www.darkcoding.net/software/restarting-mysql-master-master-replication/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darkcoding.net/software/restarting-mysql-master-master-replication/</link>
	<description>Solvitas perambulum</description>
	<lastBuildDate>Mon, 06 Feb 2012 00:12:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: graham</title>
		<link>http://www.darkcoding.net/software/restarting-mysql-master-master-replication/#comment-3994</link>
		<dc:creator>graham</dc:creator>
		<pubDate>Thu, 02 Feb 2012 03:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/?p=699#comment-3994</guid>
		<description>&lt;p&gt;@Callum: Fixed it, thanks!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Callum: Fixed it, thanks!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Callum</title>
		<link>http://www.darkcoding.net/software/restarting-mysql-master-master-replication/#comment-3906</link>
		<dc:creator>Callum</dc:creator>
		<pubDate>Tue, 31 Jan 2012 13:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/?p=699#comment-3906</guid>
		<description>&lt;p&gt;Thanks for the article, and particularly the link to replication monitoring with monit. I spotted what I think is a typo in your post, I think you mean &quot;a world away&quot; rather than &quot;a word away&quot; here:&lt;/p&gt;

&lt;blockquote&gt;Monit is easy to setup (a word away from the monster that is Nagios), and will save again and again.&lt;/blockquote&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the article, and particularly the link to replication monitoring with monit. I spotted what I think is a typo in your post, I think you mean &#8220;a world away&#8221; rather than &#8220;a word away&#8221; here:</p>

<blockquote>Monit is easy to setup (a word away from the monster that is Nagios), and will save again and again.</blockquote>]]></content:encoded>
	</item>
	<item>
		<title>By: Graham King</title>
		<link>http://www.darkcoding.net/software/restarting-mysql-master-master-replication/#comment-992</link>
		<dc:creator>Graham King</dc:creator>
		<pubDate>Wed, 21 Sep 2011 18:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/?p=699#comment-992</guid>
		<description>&lt;p&gt;@Azz That only avoids conflicts on the primary key. If you&#039;re writing to both masters, any other unique keys you have could still conflict. I&#039;m avoiding master-master, and only using master-slave.
See my reply to Antony here: http://www.darkcoding.net/software/restarting-mysql-master-master-replication/#comment-18558&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Azz That only avoids conflicts on the primary key. If you&#8217;re writing to both masters, any other unique keys you have could still conflict. I&#8217;m avoiding master-master, and only using master-slave.
See my reply to Antony here: <a href="http://www.darkcoding.net/software/restarting-mysql-master-master-replication/#comment-18558" rel="nofollow">http://www.darkcoding.net/software/restarting-mysql-master-master-replication/#comment-18558</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Azz</title>
		<link>http://www.darkcoding.net/software/restarting-mysql-master-master-replication/#comment-991</link>
		<dc:creator>Azz</dc:creator>
		<pubDate>Wed, 21 Sep 2011 15:51:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/?p=699#comment-991</guid>
		<description>&lt;p&gt;For master-master set up that avoids index conflicts, see:&lt;/p&gt;

&lt;p&gt;http://stackoverflow.com/questions/325791/which-is-the-best-way-to-bi-directionally-synchronize-dynamic-data-in-real-time-u/325850#325850&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>For master-master set up that avoids index conflicts, see:</p>

<p><a href="http://stackoverflow.com/questions/325791/which-is-the-best-way-to-bi-directionally-synchronize-dynamic-data-in-real-time-u/325850#325850" rel="nofollow">http://stackoverflow.com/questions/325791/which-is-the-best-way-to-bi-directionally-synchronize-dynamic-data-in-real-time-u/325850#325850</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dominic O'Brien</title>
		<link>http://www.darkcoding.net/software/restarting-mysql-master-master-replication/#comment-990</link>
		<dc:creator>Dominic O'Brien</dc:creator>
		<pubDate>Wed, 20 Apr 2011 22:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/?p=699#comment-990</guid>
		<description>&lt;p&gt;The amount of times I have come to your site as THE reference on how to do it. I got about 3 print outs of your web site floating around in different places just in case I have no connection when I need to remember how its done. Man you saved my bacon a number of times. A big thank you. This can be a really confusing subject and this makes it comprehensible and doable.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The amount of times I have come to your site as THE reference on how to do it. I got about 3 print outs of your web site floating around in different places just in case I have no connection when I need to remember how its done. Man you saved my bacon a number of times. A big thank you. This can be a really confusing subject and this makes it comprehensible and doable.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: pradeep</title>
		<link>http://www.darkcoding.net/software/restarting-mysql-master-master-replication/#comment-989</link>
		<dc:creator>pradeep</dc:creator>
		<pubDate>Fri, 22 Oct 2010 08:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/?p=699#comment-989</guid>
		<description>&lt;p&gt;Hi! i am new in mysql and trying to establish master master replication in mysql&lt;/p&gt;

&lt;p&gt;on first server i have added these lines to mysqld section of my.cnf(mysql  Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using readline 5.1)&lt;/p&gt;

&lt;p&gt;datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log-bin=/var/lib/mysql/mysql-bin.log
binlog-do-db=sample1
binlog-ignore-db=mysql
binlog-ignore-db=information_schema
binlog-ignore-db=test2
binlog-ignore-db=sample3
binlog-ignore-db=example3
binlog-ignore-db=endpoints
binlog-ignore-db=meetme
binlog-ignore-db=test
binlog-ignore-db=sample2&lt;/p&gt;

&lt;p&gt;server-id=1
master-host = 192.xxx.x.xxx
master-user = abc
master-password = abc_pass
master-connect-retry = 60&lt;/p&gt;

&lt;p&gt;relay-log = /var/lib/mysql/slave-relay.log
relay-log-index = /var/lib/mysql/slave-relay-log.index&lt;/p&gt;

&lt;p&gt;On second server i have added these lines to mysqld section of my.cnf(mysql  Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1)&lt;/p&gt;

&lt;p&gt;server-id=2&lt;/p&gt;

&lt;p&gt;master-host = 192.xxx.x.xxx
master-user = xyz
master-password = xyz_pass
master-connect-retry = 60&lt;/p&gt;

&lt;p&gt;relay-log = /var/lib/mysql/slave-relay.log
relay-log-index = /var/lib/mysql/slave-relay-log.index&lt;/p&gt;

&lt;p&gt;log-bin = /var/lib/mysql/mysql-bin.log
binlog-do-db = sample1
binlog-ignore-db=mysql
binlog-ignore-db=information_schema
binlog-ignore-db=phpmyadmin&lt;/p&gt;

&lt;p&gt;on first server slave status is&lt;/p&gt;

&lt;p&gt;*************************** 1. row ***************************
             Slave_IO_State: Connecting to master
                Master_Host: 192.xxx.x.xx
                Master_User: abc
                Master_Port: 3306
              Connect_Retry: 60
            Master_Log_File: mysql-bin.000001
        Read_Master_Log_Pos: 36158
             Relay_Log_File: slave-relay.000001
              Relay_Log_Pos: 98
      Relay_Master_Log_File: mysql-bin.000001
           Slave_IO_Running: No
          Slave_SQL_Running: Yes
            Replicate_Do_DB:
        Replicate_Ignore_DB:
         Replicate_Do_Table:
     Replicate_Ignore_Table:
    Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
                 Last_Errno: 0
                 Last_Error:
               Skip_Counter: 0
        Exec_Master_Log_Pos: 36158
            Relay_Log_Space: 98
            Until_Condition: None
             Until_Log_File:
              Until_Log_Pos: 0
         Master_SSL_Allowed: No
         Master_SSL_CA_File:
         Master_SSL_CA_Path:
            Master_SSL_Cert:
          Master_SSL_Cipher:
             Master_SSL_Key:
      Seconds_Behind_Master: NULL
1 row in set (0.00 sec)&lt;/p&gt;

&lt;p&gt;ERROR:
No query specified&lt;/p&gt;

&lt;p&gt;On second server slave status is&lt;/p&gt;

&lt;p&gt;*************************** 1. row ***************************
               Slave_IO_State: Connecting to master
                  Master_Host: 192.xxx.x.xxx
                  Master_User: xyz
                  Master_Port: 3306
                Connect_Retry: 60
              Master_Log_File:
          Read_Master_Log_Pos: 4
               Relay_Log_File: slave-relay.000003
                Relay_Log_Pos: 4
        Relay_Master_Log_File:
             Slave_IO_Running: No
            Slave_SQL_Running: Yes
              Replicate_Do_DB:
          Replicate_Ignore_DB:
           Replicate_Do_Table:
       Replicate_Ignore_Table:
      Replicate_Wild_Do_Table:
  Replicate_Wild_Ignore_Table:
                   Last_Errno: 0
                   Last_Error:
                 Skip_Counter: 5
          Exec_Master_Log_Pos: 0
              Relay_Log_Space: 106
              Until_Condition: None
               Until_Log_File:
                Until_Log_Pos: 0
           Master_SSL_Allowed: No
           Master_SSL_CA_File:
           Master_SSL_CA_Path:
              Master_SSL_Cert:
            Master_SSL_Cipher:
               Master_SSL_Key:
        Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
                Last_IO_Errno: 1045
                Last_IO_Error: error connecting to master &#039;abc@192.xxx.x.xxx:3306&#039; - retry-time: 60  retries: 86400
               Last_SQL_Errno: 0
               Last_SQL_Error:
1 row in set (0.00 sec)&lt;/p&gt;

&lt;p&gt;ERROR:
No query specified&lt;/p&gt;

&lt;p&gt;Do&#039;nt know why Slave_IO_Running is no.&lt;/p&gt;

&lt;p&gt;i have tried a lot to start replication but i am still unable to start replication.
i have also commented&lt;/p&gt;

&lt;h1&gt;bind-address           = 127.0.0.1&lt;/h1&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;h1&gt;skip-external-locking&lt;/h1&gt;

&lt;p&gt;i need your help. Please send your suggestions and solution for this problem.&lt;/p&gt;

&lt;p&gt;Thanks in advance.&lt;/p&gt;

&lt;p&gt;regards,
pradeep&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi! i am new in mysql and trying to establish master master replication in mysql</p>

<p>on first server i have added these lines to mysqld section of my.cnf(mysql  Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using readline 5.1)</p>

<p>datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log-bin=/var/lib/mysql/mysql-bin.log
binlog-do-db=sample1
binlog-ignore-db=mysql
binlog-ignore-db=information_schema
binlog-ignore-db=test2
binlog-ignore-db=sample3
binlog-ignore-db=example3
binlog-ignore-db=endpoints
binlog-ignore-db=meetme
binlog-ignore-db=test
binlog-ignore-db=sample2</p>

<p>server-id=1
master-host = 192.xxx.x.xxx
master-user = abc
master-password = abc_pass
master-connect-retry = 60</p>

<p>relay-log = /var/lib/mysql/slave-relay.log
relay-log-index = /var/lib/mysql/slave-relay-log.index</p>

<p>On second server i have added these lines to mysqld section of my.cnf(mysql  Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1)</p>

<p>server-id=2</p>

<p>master-host = 192.xxx.x.xxx
master-user = xyz
master-password = xyz_pass
master-connect-retry = 60</p>

<p>relay-log = /var/lib/mysql/slave-relay.log
relay-log-index = /var/lib/mysql/slave-relay-log.index</p>

<p>log-bin = /var/lib/mysql/mysql-bin.log
binlog-do-db = sample1
binlog-ignore-db=mysql
binlog-ignore-db=information_schema
binlog-ignore-db=phpmyadmin</p>

<p>on first server slave status is</p>

<p>*************************** 1. row ***************************
             Slave_IO_State: Connecting to master
                Master_Host: 192.xxx.x.xx
                Master_User: abc
                Master_Port: 3306
              Connect_Retry: 60
            Master_Log_File: mysql-bin.000001
        Read_Master_Log_Pos: 36158
             Relay_Log_File: slave-relay.000001
              Relay_Log_Pos: 98
      Relay_Master_Log_File: mysql-bin.000001
           Slave_IO_Running: No
          Slave_SQL_Running: Yes
            Replicate_Do_DB:
        Replicate_Ignore_DB:
         Replicate_Do_Table:
     Replicate_Ignore_Table:
    Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
                 Last_Errno: 0
                 Last_Error:
               Skip_Counter: 0
        Exec_Master_Log_Pos: 36158
            Relay_Log_Space: 98
            Until_Condition: None
             Until_Log_File:
              Until_Log_Pos: 0
         Master_SSL_Allowed: No
         Master_SSL_CA_File:
         Master_SSL_CA_Path:
            Master_SSL_Cert:
          Master_SSL_Cipher:
             Master_SSL_Key:
      Seconds_Behind_Master: NULL
1 row in set (0.00 sec)</p>

<p>ERROR:
No query specified</p>

<p>On second server slave status is</p>

<p>*************************** 1. row ***************************
               Slave_IO_State: Connecting to master
                  Master_Host: 192.xxx.x.xxx
                  Master_User: xyz
                  Master_Port: 3306
                Connect_Retry: 60
              Master_Log_File:
          Read_Master_Log_Pos: 4
               Relay_Log_File: slave-relay.000003
                Relay_Log_Pos: 4
        Relay_Master_Log_File:
             Slave_IO_Running: No
            Slave_SQL_Running: Yes
              Replicate_Do_DB:
          Replicate_Ignore_DB:
           Replicate_Do_Table:
       Replicate_Ignore_Table:
      Replicate_Wild_Do_Table:
  Replicate_Wild_Ignore_Table:
                   Last_Errno: 0
                   Last_Error:
                 Skip_Counter: 5
          Exec_Master_Log_Pos: 0
              Relay_Log_Space: 106
              Until_Condition: None
               Until_Log_File:
                Until_Log_Pos: 0
           Master_SSL_Allowed: No
           Master_SSL_CA_File:
           Master_SSL_CA_Path:
              Master_SSL_Cert:
            Master_SSL_Cipher:
               Master_SSL_Key:
        Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
                Last_IO_Errno: 1045
                Last_IO_Error: error connecting to master &#8216;abc@192.xxx.x.xxx:3306&#8242; &#8211; retry-time: 60  retries: 86400
               Last_SQL_Errno: 0
               Last_SQL_Error:
1 row in set (0.00 sec)</p>

<p>ERROR:
No query specified</p>

<p>Do&#8217;nt know why Slave_IO_Running is no.</p>

<p>i have tried a lot to start replication but i am still unable to start replication.
i have also commented</p>

<h1>bind-address           = 127.0.0.1</h1>

<p>and</p>

<h1>skip-external-locking</h1>

<p>i need your help. Please send your suggestions and solution for this problem.</p>

<p>Thanks in advance.</p>

<p>regards,
pradeep</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Graham King</title>
		<link>http://www.darkcoding.net/software/restarting-mysql-master-master-replication/#comment-988</link>
		<dc:creator>Graham King</dc:creator>
		<pubDate>Mon, 05 Jul 2010 04:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/?p=699#comment-988</guid>
		<description>&lt;p&gt;@Antony:&lt;/p&gt;

&lt;p&gt;To Nagios, I say only this: http://identi.ca/notice/10418281&lt;/p&gt;

&lt;p&gt;Glad my blog entry helped. If you are currently using master-master replication, I &lt;em&gt;really&lt;/em&gt; &lt;em&gt;strongly&lt;/em&gt; urge you to stop. Switch to a single master and multiple slaves.&lt;/p&gt;

&lt;p&gt;I found that if you are writing to both masters, with a decent amount of traffic, and have any unique indexes, you inevitably get conflict, which stops replication, and the data on the two servers gets rapidly inconsistent. It&#039;s a nightmare to repair. I got it several times, faster and faster as traffic grew.&lt;/p&gt;

&lt;p&gt;I searched and searched but could not find anyone out there using master-master replication and writing to both masters. Most people seem to use it as a hot standby. In fact most people seem to have one master, which takes the writes, and lots of slaves, which take the reads.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Antony:</p>

<p>To Nagios, I say only this: <a href="http://identi.ca/notice/10418281" rel="nofollow">http://identi.ca/notice/10418281</a></p>

<p>Glad my blog entry helped. If you are currently using master-master replication, I <em>really</em> <em>strongly</em> urge you to stop. Switch to a single master and multiple slaves.</p>

<p>I found that if you are writing to both masters, with a decent amount of traffic, and have any unique indexes, you inevitably get conflict, which stops replication, and the data on the two servers gets rapidly inconsistent. It&#8217;s a nightmare to repair. I got it several times, faster and faster as traffic grew.</p>

<p>I searched and searched but could not find anyone out there using master-master replication and writing to both masters. Most people seem to use it as a hot standby. In fact most people seem to have one master, which takes the writes, and lots of slaves, which take the reads.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Antony Sohal</title>
		<link>http://www.darkcoding.net/software/restarting-mysql-master-master-replication/#comment-987</link>
		<dc:creator>Antony Sohal</dc:creator>
		<pubDate>Thu, 17 Jun 2010 15:12:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/?p=699#comment-987</guid>
		<description>&lt;p&gt;This info saved me loads of time. Thanks.&lt;/p&gt;

&lt;p&gt;Regarding good monitoring, have you tried Nagios?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This info saved me loads of time. Thanks.</p>

<p>Regarding good monitoring, have you tried Nagios?</p>]]></content:encoded>
	</item>
</channel>
</rss>

