<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: MySQL SLAVE, obey your MASTER!</title>
      <link>http://ask.metafilter.com/63591/MySQL-SLAVE-obey-your-MASTER/</link>
      <description>Comments on Ask MetaFilter post MySQL SLAVE, obey your MASTER!</description>
	  	  <pubDate>Tue, 29 May 2007 09:05:27 -0800</pubDate>
      <lastBuildDate>Tue, 29 May 2007 09:05:27 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: MySQL SLAVE, obey your MASTER!</title>
  	<link>http://ask.metafilter.com/63591/MySQL-SLAVE-obey-your-MASTER</link>	
  	<description>MySQL, why won&apos;t you replicate properly? &lt;br /&gt;&lt;br /&gt; Replication doesn&apos;t work.&lt;br&gt;
&lt;br&gt;
We set up replication on two windows machines running mysql, got everything all synced up, set up the master/slave relationship, and everything worked fine for about two days.&lt;br&gt;
&lt;br&gt;
Then it just stops... and the slave doesn&apos;t want to catch up with the master. Basic tests seem to indicate that the connection is still live -- we can still see the master&apos;s status from the slave, but it won&apos;t just grab all the data it needs to be current.&lt;br&gt;
&lt;br&gt;
Here are the mysql servers:&lt;br&gt;
master: 4.1 (NT)&lt;br&gt;
slave: 5.0 (Advanced Server 2003)&lt;br&gt;
&lt;br&gt;
What can we do to diagnose the problem?</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.63591</guid>
  	<pubDate>Tue, 29 May 2007 08:29:08 -0800</pubDate>
  	<dc:creator>ph00dz</dc:creator>
	
	<category>database</category>
	
	<category>mysql</category>
	
	<category>replication</category>
	
	<category>windows</category>
	
	<category>master</category>
	
	<category>slave</category>
	
</item>
<item>
  	<title>By: cmiller</title>
  	<link>http://ask.metafilter.com/63591/MySQL-SLAVE-obey-your-MASTER#957067</link>	
  	<description>I know something of MySQL server.  FWIW, replicating from a lower-version master to a higher-version slave is totally fine.  That&apos;s supported.&lt;br&gt;
&lt;br&gt;
My first question would be, what are the thread states?&lt;br&gt;
&lt;br&gt;
How many &amp;quot;&lt;i&gt;host_name&lt;/i&gt;-relay-bin.&lt;i&gt;nnnnnn&lt;/i&gt;&amp;quot; files do you have?&lt;br&gt;
&lt;br&gt;
I assume you&apos;ve read these sections of the manual:  &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/replication-implementation-details.html&quot;&gt;Replication Implementation Details&lt;/a&gt;.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.63591-957067</guid>
  	<pubDate>Tue, 29 May 2007 09:05:27 -0800</pubDate>
  	<dc:creator>cmiller</dc:creator>
</item>
<item>
  	<title>By: mendel</title>
  	<link>http://ask.metafilter.com/63591/MySQL-SLAVE-obey-your-MASTER#957080</link>	
  	<description>MySQL logs replication problems into the server log on the slave. Check that log. &lt;br&gt;
&lt;br&gt;
Also, please share the output of SHOW MASTER STATUS on the master and SHOW SLAVE STATUS on the slave with us -- otherwise it&apos;s all crazy guessing.&lt;br&gt;
&lt;br&gt;
Mixed-version replication is always slightly hazardous, though, in either direction.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.63591-957080</guid>
  	<pubDate>Tue, 29 May 2007 09:16:43 -0800</pubDate>
  	<dc:creator>mendel</dc:creator>
</item>
<item>
  	<title>By: ph00dz</title>
  	<link>http://ask.metafilter.com/63591/MySQL-SLAVE-obey-your-MASTER#957082</link>	
  	<description>When I run show processlist the relevant line is:&lt;br&gt;
&lt;br&gt;
Command: Binlog Dump &lt;br&gt;
Status: Has sent all binlog to slave; waiting for binlog to be updated &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
There are 7 of those bin files in the data dir on the slave.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.63591-957082</guid>
  	<pubDate>Tue, 29 May 2007 09:17:14 -0800</pubDate>
  	<dc:creator>ph00dz</dc:creator>
</item>
<item>
  	<title>By: ph00dz</title>
  	<link>http://ask.metafilter.com/63591/MySQL-SLAVE-obey-your-MASTER#957087</link>	
  	<description>Here&apos;s the master status:&lt;br&gt;
mysql&amp;gt; show master status \G;&lt;br&gt;
*************************** 1. row ***************************&lt;br&gt;
            File: td_server-bin.000003&lt;br&gt;
        Position: 960993582&lt;br&gt;
    Binlog_Do_DB: &lt;br&gt;
Binlog_Ignore_DB: &lt;br&gt;
1 row in set (0.04 sec)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Here&apos;s the slave status:&lt;br&gt;
mysql&amp;gt; show slave status \G;&lt;br&gt;
*************************** 1. row ***************************&lt;br&gt;
             Slave_IO_State: Waiting for master to send event&lt;br&gt;
                Master_Host: 192.168.2.102&lt;br&gt;
                Master_User: slave_user&lt;br&gt;
                Master_Port: 3306&lt;br&gt;
              Connect_Retry: 60&lt;br&gt;
            Master_Log_File: td_server-bin.000003&lt;br&gt;
        Read_Master_Log_Pos: 960986863&lt;br&gt;
             Relay_Log_File: tdesigns_backup-relay-bin.000002&lt;br&gt;
              Relay_Log_Pos: 54975987&lt;br&gt;
      Relay_Master_Log_File: td_server-bin.000003&lt;br&gt;
           Slave_IO_Running: Yes&lt;br&gt;
          Slave_SQL_Running: No&lt;br&gt;
            Replicate_Do_DB: traffic&lt;br&gt;
        Replicate_Ignore_DB: &lt;br&gt;
         Replicate_Do_Table: &lt;br&gt;
     Replicate_Ignore_Table: &lt;br&gt;
    Replicate_Wild_Do_Table: &lt;br&gt;
Replicate_Wild_Ignore_Table: &lt;br&gt;
                 Last_Errno: 1062&lt;br&gt;
                 Last_Error: Error &apos;Duplicate entry &apos;216555&apos; for key 1&apos; on query. Default database: &apos;traffic&apos;. Query: &apos;INSERT INTO td_lookuplog (id, dateAdded, epid, cuid, ipAddress) VALUES (&apos;, NOW(), &apos;1262&apos;, &apos;2057113&apos;, &apos;192.168.2.136&apos;)&apos;&lt;br&gt;
               Skip_Counter: 0&lt;br&gt;
        Exec_Master_Log_Pos: 544987956&lt;br&gt;
            Relay_Log_Space: 475701546&lt;br&gt;
            Until_Condition: None&lt;br&gt;
             Until_Log_File: &lt;br&gt;
              Until_Log_Pos: 0&lt;br&gt;
         Master_SSL_Allowed: No&lt;br&gt;
         Master_SSL_CA_File: &lt;br&gt;
         Master_SSL_CA_Path: &lt;br&gt;
            Master_SSL_Cert: &lt;br&gt;
          Master_SSL_Cipher: &lt;br&gt;
             Master_SSL_Key: &lt;br&gt;
      Seconds_Behind_Master: NULL&lt;br&gt;
1 row in set (0.00 sec)&lt;br&gt;
&lt;br&gt;
  	&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
... so, the question is -- does that error kill things?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.63591-957087</guid>
  	<pubDate>Tue, 29 May 2007 09:22:45 -0800</pubDate>
  	<dc:creator>ph00dz</dc:creator>
</item>
<item>
  	<title>By: jenkinsEar</title>
  	<link>http://ask.metafilter.com/63591/MySQL-SLAVE-obey-your-MASTER#957089</link>	
  	<description>looks like it. Did you try to slurp in the same binlog twice somehow?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.63591-957089</guid>
  	<pubDate>Tue, 29 May 2007 09:26:01 -0800</pubDate>
  	<dc:creator>jenkinsEar</dc:creator>
</item>
<item>
  	<title>By: ph00dz</title>
  	<link>http://ask.metafilter.com/63591/MySQL-SLAVE-obey-your-MASTER#957101</link>	
  	<description>Sweet. Deleted the offending row and everything got all synced back up.&lt;br&gt;
&lt;br&gt;
Yay! Thanks!</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.63591-957101</guid>
  	<pubDate>Tue, 29 May 2007 09:39:07 -0800</pubDate>
  	<dc:creator>ph00dz</dc:creator>
</item>

    </channel>
</rss>
