<?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>Hoschie&#039;s Blog &#187; Databases</title>
	<atom:link href="http://hoschie.org/category/dbs/feed/" rel="self" type="application/rss+xml" />
	<link>http://hoschie.org</link>
	<description>What has this world come to ..</description>
	<lastBuildDate>Sat, 13 Mar 2010 14:30:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>MYSQL:  Failed to open the relay log</title>
		<link>http://hoschie.org/2008/02/mysql-failed-to-open-the-relay-log/</link>
		<comments>http://hoschie.org/2008/02/mysql-failed-to-open-the-relay-log/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 17:50:03 +0000</pubDate>
		<dc:creator>Hoschie</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://hoschie.org/wordpress/?p=62</guid>
		<description><![CDATA[So you woke up, because your mysql replication failed suddenly with an error like: Feb 15 07:41:06 rdb-sl mysqld[18223]: 080215 7:41:06 [ERROR] Failed to open log (file './db-sl-relay-bin.000030', errno 2) Feb 15 07:41:06 db-sl mysqld[18223]: 080215 7:41:06 [ERROR] Failed to open the relay log './db-sl-relay-bin.000030' (relay_log_pos 75527094) Feb 15 07:41:06 db-sl mysqld[18223]: 080215 7:41:06 [ERROR] [...]]]></description>
			<content:encoded><![CDATA[<p>So you woke up, because your mysql replication failed suddenly with an error like:</p>
<p><code>Feb 15 07:41:06 rdb-sl mysqld[18223]: 080215  7:41:06 [ERROR] Failed to open log (file './db-sl-relay-bin.000030', errno 2)<br />
Feb 15 07:41:06 db-sl mysqld[18223]: 080215  7:41:06 [ERROR] Failed to open the relay log './db-sl-relay-bin.000030' (relay_log_pos 75527094)<br />
Feb 15 07:41:06 db-sl mysqld[18223]: 080215  7:41:06 [ERROR] Could not open log file</code></p>
<p>before you consider making a mysqldump &#8211;masterdata on the master database and reimport the entire dump.. try this:</p>
<p>-&gt; stop mysql on the slave server<br />
-&gt; find the directory that contains the relay logs (usually /var/lib/mysql)<br />
-&gt; delete all relay logs called hostname-relay-bin.XXX, hostname-relay-bin.index and relay-log.info<br />
-&gt; restart mysql</p>
<p>Your mysql will start with fresh relay logs and is getting the missing data directly from the master server, as there will be probably still bin logs!</p>
<p><strong>Note:</strong> This is a kind of last resort action, no guarantees here <img src='http://hoschie.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hoschie.org/2008/02/mysql-failed-to-open-the-relay-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
