<?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>relay log &#8211; SMsoft &#8211; informatica e dintorni</title>
	<atom:link href="https://blog.smsoft.it/tag/relay-log/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.smsoft.it</link>
	<description>consigli settimanali su MacOS, GNU/Linux ed Open Source</description>
	<lastBuildDate>Tue, 09 Feb 2016 09:30:05 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=80836</generator>
	<item>
		<title>Replica MySQL e relay file non trovato</title>
		<link>https://blog.smsoft.it/2016/02/09/replica-mysql-e-relay-file-non-trovato/</link>
					<comments>https://blog.smsoft.it/2016/02/09/replica-mysql-e-relay-file-non-trovato/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 09 Feb 2016 09:30:05 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[relay log]]></category>
		<category><![CDATA[replica]]></category>
		<category><![CDATA[slave]]></category>
		<guid isPermaLink="false">http://blog.smsoft.it/?p=3342</guid>

					<description><![CDATA[Può capitare che lo slave MySQL di una replica non sia attivo e che provado con: [crayon-6a87146913a9e239093361/] venga fuori un errore del genere: [crayon-6a87146913aad689342829/] Questo indica che il file di relay non esiste, mentre il server tenta di lavorarlo. In questo caso bisogna fermare lo slave dalla cli di MySQL: [crayon-6a87146913ab0572582030/] poi verificare qual è ... <a title="Replica MySQL e relay file non trovato" class="read-more" href="https://blog.smsoft.it/2016/02/09/replica-mysql-e-relay-file-non-trovato/" aria-label="Per saperne di più su Replica MySQL e relay file non trovato">Leggi tutto</a>]]></description>
										<content:encoded><![CDATA[<p>Può capitare che lo slave MySQL di una replica non sia attivo e che provado con:</p><pre class="urvanov-syntax-highlighter-plain-tag">slave start;</pre><p>venga fuori un errore del genere:</p><pre class="urvanov-syntax-highlighter-plain-tag">ERROR 29 (HY000): File '/var/log/mysql/relay.004398' not found (Errcode: 2)</pre><p></p>
<p>Questo indica che il file di relay non esiste, mentre il server tenta di lavorarlo.</p>
<p>In questo caso bisogna fermare lo slave dalla cli di MySQL:</p><pre class="urvanov-syntax-highlighter-plain-tag">mysql> stop slave;</pre><p>poi verificare qual è il primo file di relay presente in <strong>/var/log/mysql/</strong> (ipotizziamo sia relay.004400),<br />
modificare il file <strong>/var/log/mysql/relay-log.index</strong> cancellando le prime righe relative a file non esistenti (nel nostro esempio fino a relay.004399 compreso),<br />
infine dalla cli di MySQL:</p><pre class="urvanov-syntax-highlighter-plain-tag">mysql> reset slave;
mysql> start slave;</pre><p></p>
<p>enjoy!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.smsoft.it/2016/02/09/replica-mysql-e-relay-file-non-trovato/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
