<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Personal Blog of Emre Yaşar &#187; replication</title>
	<atom:link href="http://www.yasars.com/index.php/tag/replication/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yasars.com</link>
	<description>A bit technical, a bit lifestyle..</description>
	<lastBuildDate>Tue, 27 Apr 2010 19:55:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Broken MySQL Replication !!!</title>
		<link>http://www.yasars.com/index.php/2009/07/28/broken-mysql-replication/</link>
		<comments>http://www.yasars.com/index.php/2009/07/28/broken-mysql-replication/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 20:44:26 +0000</pubDate>
		<dc:creator>Admin - Emre Yasar</dc:creator>
				<category><![CDATA[Genel]]></category>
		<category><![CDATA[broken mysql]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[replication]]></category>

		<guid isPermaLink="false">http://www.yasars.com/?p=222</guid>
		<description><![CDATA[This morning a MySQL issue welcomed me at the office.
After a bit control I found out the reason of the problem.
A full /var/lib/mysql partition caused to dead of mysql daemon.
MySQL began to operating normally after supplying free space and recovering 3 corrupted tables.
Everything was fine until  I noticed the broken replication.

when I run
mysql&#62; show slave [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-223" title="emreyasar_broken" src="http://www.yasars.com/wp-content/uploads/2009/09/emreyasar_broken-225x300.jpg" alt="emreyasar_broken" width="158" height="210" />This morning a MySQL issue welcomed me at the office.</p>
<p>After a bit control I found out the reason of the problem.</p>
<p>A full /var/lib/mysql partition caused to dead of mysql daemon.</p>
<p>MySQL began to operating normally after supplying free space and recovering 3 corrupted tables.</p>
<p>Everything was fine until  I noticed the broken replication.</p>
<p><span id="more-222"></span></p>
<p>when I run</p>
<p><strong>mysql&gt; show slave status \G</strong></p>
<p>I got an error message like this:</p>
<ul>
<li>Could not parse relay log event entry. The  possible reasons are: the master&#8217;s binary log is corrupted (you can check this  by running &#8216;mysqlbinlog&#8217; on the binary log), the slave&#8217;s relay log is corrupted  (you can check this by running &#8216;mysqlbinlog&#8217; on the relay log), a network  problem, or a bug in the master&#8217;s or slave&#8217;s MySQL code. If you want to check  the master&#8217;s binary log or slave&#8217;s relay log, you will be able to know their  names by issuing &#8216;SHOW SLAVE STATUS&#8217; on this slave.</li>
</ul>
<p>And there were an error at mysqld.log as below:</p>
<ul>
<li>[Warning] Neither &#8211;relay-log nor  &#8211;relay-log-index were used; so replication may break when this MySQL server  acts as a slave and has his hostname changed!! Please use  &#8216;&#8211;relay-log=*****-relay-bin&#8217; to avoid this problem.</li>
</ul>
<p>I restart mysqld on both master and slave but I were getting the same errors again.</p>
<p>And then I tried      <strong>stop slave; </strong> and     <strong>start slave;</strong> but the problem were still present.</p>
<p>It was sad but true.  It was time to setup the replicate server again.</p>
<p>And I decided make a last try:</p>
<ul>
<li>stop slave;</li>
<li>show slave status \G</li>
<li><strong>reset slave;</strong></li>
<li>start slave;</li>
<li>show slave status;</li>
</ul>
<p>And everything was OK.</p>
<p><strong>reset slave</strong> command was the golden key..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yasars.com/index.php/2009/07/28/broken-mysql-replication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

