<?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: When SHOW SLAVE STATUS lies</title>
	<atom:link href="http://www.pythian.com/news/853/when-show-slave-status-lies/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/853/when-show-slave-status-lies/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Fri, 10 Feb 2012 13:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Carole</title>
		<link>http://www.pythian.com/news/853/when-show-slave-status-lies/#comment-339031</link>
		<dc:creator>Carole</dc:creator>
		<pubDate>Tue, 10 Feb 2009 16:25:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/853/when-show-slave-status-lies#comment-339031</guid>
		<description>Paul, I am using 5.0.45, and have been hunting quite a while for something which properly explained this. You have completely saved me from messing up replication. I followed your example, read my error log carefully, and got everything back up and running. Thank you so very, very much for taking the time to post this.</description>
		<content:encoded><![CDATA[<p>Paul, I am using 5.0.45, and have been hunting quite a while for something which properly explained this. You have completely saved me from messing up replication. I followed your example, read my error log carefully, and got everything back up and running. Thank you so very, very much for taking the time to post this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul M</title>
		<link>http://www.pythian.com/news/853/when-show-slave-status-lies/#comment-319267</link>
		<dc:creator>Paul M</dc:creator>
		<pubDate>Mon, 22 Dec 2008 22:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/853/when-show-slave-status-lies#comment-319267</guid>
		<description>You would need to post the error log after trying to start the slave, not the whole thing. As it will have more detail as to why the slave SQL thread is running and the slave IO thread has stopped.</description>
		<content:encoded><![CDATA[<p>You would need to post the error log after trying to start the slave, not the whole thing. As it will have more detail as to why the slave SQL thread is running and the slave IO thread has stopped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avijit</title>
		<link>http://www.pythian.com/news/853/when-show-slave-status-lies/#comment-315189</link>
		<dc:creator>Avijit</dc:creator>
		<pubDate>Tue, 16 Dec 2008 09:48:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/853/when-show-slave-status-lies#comment-315189</guid>
		<description>Hi Paul,
I tried to replication of master-slave of mysql server. 2 problems are there 
1. After setting up in master when I run 
show master status;
It shows 
mysql&gt; show master status;
+------------------+----------+--------------+------------------+
&#124; File             &#124; Position &#124; Binlog_Do_DB &#124; Binlog_Ignore_DB &#124;
+------------------+----------+--------------+------------------+
&#124; mysql-bin.000001 &#124;       98 &#124; test,test    &#124;                  &#124;
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)

Why 2 same database names will come in Binlog_Do_DB col, where I was configured only under [mysqld]

log-bin=mysql-bin
binlog-do-db=test
server-id=1

2. In slave server when I call show slave status\G
it shows 
**************************
             Slave_IO_State:
                Master_Host: 192.168.0.50
                Master_User: slave_user
                Master_Port: 3306
              Connect_Retry: 60
            Master_Log_File:
        Read_Master_Log_Pos: 4
             Relay_Log_File: mysqld-relay-bin.000001
              Relay_Log_Pos: 98
      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: 0
        Exec_Master_Log_Pos: 0
            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)

Slave_IO_State value is blank. can u please let me know why this happened ? and this is not working at all.
Please revert back with u&#039;r expert comments</description>
		<content:encoded><![CDATA[<p>Hi Paul,<br />
I tried to replication of master-slave of mysql server. 2 problems are there<br />
1. After setting up in master when I run<br />
show master status;<br />
It shows<br />
mysql&gt; show master status;<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br />
| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br />
| mysql-bin.000001 |       98 | test,test    |                  |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+<br />
1 row in set (0.00 sec)</p>
<p>Why 2 same database names will come in Binlog_Do_DB col, where I was configured only under [mysqld]</p>
<p>log-bin=mysql-bin<br />
binlog-do-db=test<br />
server-id=1</p>
<p>2. In slave server when I call show slave status\G<br />
it shows<br />
**************************<br />
             Slave_IO_State:<br />
                Master_Host: 192.168.0.50<br />
                Master_User: slave_user<br />
                Master_Port: 3306<br />
              Connect_Retry: 60<br />
            Master_Log_File:<br />
        Read_Master_Log_Pos: 4<br />
             Relay_Log_File: mysqld-relay-bin.000001<br />
              Relay_Log_Pos: 98<br />
      Relay_Master_Log_File:<br />
           Slave_IO_Running: No<br />
          Slave_SQL_Running: Yes<br />
            Replicate_Do_DB:<br />
        Replicate_Ignore_DB:<br />
         Replicate_Do_Table:<br />
     Replicate_Ignore_Table:<br />
    Replicate_Wild_Do_Table:<br />
Replicate_Wild_Ignore_Table:<br />
                 Last_Errno: 0<br />
                 Last_Error:<br />
               Skip_Counter: 0<br />
        Exec_Master_Log_Pos: 0<br />
            Relay_Log_Space: 98<br />
            Until_Condition: None<br />
             Until_Log_File:<br />
              Until_Log_Pos: 0<br />
         Master_SSL_Allowed: No<br />
         Master_SSL_CA_File:<br />
         Master_SSL_CA_Path:<br />
            Master_SSL_Cert:<br />
          Master_SSL_Cipher:<br />
             Master_SSL_Key:<br />
      Seconds_Behind_Master: NULL<br />
1 row in set (0.00 sec)</p>
<p>Slave_IO_State value is blank. can u please let me know why this happened ? and this is not working at all.<br />
Please revert back with u&#8217;r expert comments</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Mudd</title>
		<link>http://www.pythian.com/news/853/when-show-slave-status-lies/#comment-202007</link>
		<dc:creator>Simon Mudd</dc:creator>
		<pubDate>Tue, 20 May 2008 13:40:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/853/when-show-slave-status-lies#comment-202007</guid>
		<description>A similar issue, but equally nasty:

http://bugs.mysql.com/bug.php?id=26540

If the slave server crashes (not mysqld process) then the syncronisation point will be lost and can not be recoved. This effectively requires the slave to be rebuilt. Very nasty. MySQL SHOULD be flushing the .info files on every commit to ensure consistency.

If not done the difference between the &quot;.info&quot; files and the real committed last transaction can be as long as 30 seconds. When the slave starts up it will try to reapply transactions from 30 seconds previously...

Tell your slaves not to crash and don&#039;t pull the power on them. If they do, you&#039;ll need to rebuild them.</description>
		<content:encoded><![CDATA[<p>A similar issue, but equally nasty:</p>
<p><a href="http://bugs.mysql.com/bug.php?id=26540" rel="nofollow">http://bugs.mysql.com/bug.php?id=26540</a></p>
<p>If the slave server crashes (not mysqld process) then the syncronisation point will be lost and can not be recoved. This effectively requires the slave to be rebuilt. Very nasty. MySQL SHOULD be flushing the .info files on every commit to ensure consistency.</p>
<p>If not done the difference between the &#8220;.info&#8221; files and the real committed last transaction can be as long as 30 seconds. When the slave starts up it will try to reapply transactions from 30 seconds previously&#8230;</p>
<p>Tell your slaves not to crash and don&#8217;t pull the power on them. If they do, you&#8217;ll need to rebuild them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #92: a Carnival of the Vanities for DBAs</title>
		<link>http://www.pythian.com/news/853/when-show-slave-status-lies/#comment-178779</link>
		<dc:creator>Log Buffer #92: a Carnival of the Vanities for DBAs</dc:creator>
		<pubDate>Fri, 11 Apr 2008 16:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/853/when-show-slave-status-lies#comment-178779</guid>
		<description>[...] Here on the Pythian Group Blog, Paul Moen posted about a situation in which SHOW SLAVE STATUS lies. [...]</description>
		<content:encoded><![CDATA[<p>[...] Here on the Pythian Group Blog, Paul Moen posted about a situation in which SHOW SLAVE STATUS lies. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paulm</title>
		<link>http://www.pythian.com/news/853/when-show-slave-status-lies/#comment-177403</link>
		<dc:creator>paulm</dc:creator>
		<pubDate>Tue, 08 Apr 2008 03:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/853/when-show-slave-status-lies#comment-177403</guid>
		<description>Hi Harrison,

Thanks for the update. This was MySQL 5.0.41</description>
		<content:encoded><![CDATA[<p>Hi Harrison,</p>
<p>Thanks for the update. This was MySQL 5.0.41</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harrison Fisk</title>
		<link>http://www.pythian.com/news/853/when-show-slave-status-lies/#comment-177269</link>
		<dc:creator>Harrison Fisk</dc:creator>
		<pubDate>Mon, 07 Apr 2008 13:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/853/when-show-slave-status-lies#comment-177269</guid>
		<description>What version was this on?

I recently worked with the replication team to find and fix bugs of this nature.  The resulting fixes were pushed into 5.0.54 and 5.1.23, and I haven&#039;t seen one case of SHOW SLAVE STATUS being wrong in this manner since then.

The bugs in question were:

http://bugs.mysql.com/bug.php?id=31190
http://bugs.mysql.com/bug.php?id=12691

Thanks!</description>
		<content:encoded><![CDATA[<p>What version was this on?</p>
<p>I recently worked with the replication team to find and fix bugs of this nature.  The resulting fixes were pushed into 5.0.54 and 5.1.23, and I haven&#8217;t seen one case of SHOW SLAVE STATUS being wrong in this manner since then.</p>
<p>The bugs in question were:</p>
<p><a href="http://bugs.mysql.com/bug.php?id=31190" rel="nofollow">http://bugs.mysql.com/bug.php?id=31190</a><br />
<a href="http://bugs.mysql.com/bug.php?id=12691" rel="nofollow">http://bugs.mysql.com/bug.php?id=12691</a></p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kamiar kanani</title>
		<link>http://www.pythian.com/news/853/when-show-slave-status-lies/#comment-177234</link>
		<dc:creator>kamiar kanani</dc:creator>
		<pubDate>Mon, 07 Apr 2008 08:06:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/853/when-show-slave-status-lies#comment-177234</guid>
		<description>I think these are tow different errors, one inside I/O thread and another in sql thread. error related to I/O thread occurred at :
&#039;mysql-bin.000480â€² position 683976897
and error related to SQL thread at :
â€˜mysql-bin.000480â€² position 126</description>
		<content:encoded><![CDATA[<p>I think these are tow different errors, one inside I/O thread and another in sql thread. error related to I/O thread occurred at :<br />
&#8216;mysql-bin.000480â€² position 683976897<br />
and error related to SQL thread at :<br />
â€˜mysql-bin.000480â€² position 126</p>
]]></content:encoded>
	</item>
</channel>
</rss>

