<?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: How to add a new MySQL slave</title>
	<atom:link href="http://www.redips.net/mysql/add-new-slave/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redips.net/mysql/add-new-slave/</link>
	<description>Techniques and Web Technologies</description>
	<lastBuildDate>Sat, 04 Feb 2012 16:29:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/</generator>
	<item>
		<title>By: Start MySQL Replication on a slave &#124; Web Hosting</title>
		<link>http://www.redips.net/mysql/add-new-slave/comment-page-1/#comment-4956</link>
		<dc:creator>Start MySQL Replication on a slave &#124; Web Hosting</dc:creator>
		<pubDate>Sun, 22 Jan 2012 00:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=51#comment-4956</guid>
		<description>[...] sure it goes in /var/lib/mysql 6) Edit relay-log.info file, change the hostname, see step 6 here: http://www.redips.net/mysql/add-new-slave/ 7) Copy my.cnf and increment server-id (or maybe not needed if since broken slave has it already)  [...]</description>
		<content:encoded><![CDATA[<p>[...] sure it goes in /var/lib/mysql 6) Edit relay-log.info file, change the hostname, see step 6 here: <a href="http://www.redips.net/mysql/add-new-slave/" rel="nofollow">http://www.redips.net/mysql/add-new-slave/</a> 7) Copy my.cnf and increment server-id (or maybe not needed if since broken slave has it already)  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Furosh</title>
		<link>http://www.redips.net/mysql/add-new-slave/comment-page-1/#comment-4897</link>
		<dc:creator>Furosh</dc:creator>
		<pubDate>Sat, 07 Jan 2012 00:18:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=51#comment-4897</guid>
		<description>Thanks for your response. I figured this all out after multiple tries of trying to figure out which exact bin-log and position to add to Slave2. The little light finally turned on right before I saw your response and yes I came to the same exact conclusion! I accomplished this by essentially making Slave2 use Slave1 as its master.

I think your simple topology where Master has 2 slaves is the best approach to have just one single-point of failure however due to our network topology slave1 is currently the only allowed server that can access our DMZ from inside our network. Master is in DMZ, Slave1 is inside our network, and Slave2 is in a separate DMZ for Disaster Recovery. Slave1 has access to both DMZs.

I realize if Slave1 becomes corrupted for any reason so will Slave2, but until I can have both slaves access our Master, this current setup seemed to be the only solution...
Thanks for your response!!!</description>
		<content:encoded><![CDATA[<p>Thanks for your response. I figured this all out after multiple tries of trying to figure out which exact bin-log and position to add to Slave2. The little light finally turned on right before I saw your response and yes I came to the same exact conclusion! I accomplished this by essentially making Slave2 use Slave1 as its master.</p>
<p>I think your simple topology where Master has 2 slaves is the best approach to have just one single-point of failure however due to our network topology slave1 is currently the only allowed server that can access our DMZ from inside our network. Master is in DMZ, Slave1 is inside our network, and Slave2 is in a separate DMZ for Disaster Recovery. Slave1 has access to both DMZs.</p>
<p>I realize if Slave1 becomes corrupted for any reason so will Slave2, but until I can have both slaves access our Master, this current setup seemed to be the only solution...<br />
Thanks for your response!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/mysql/add-new-slave/comment-page-1/#comment-4883</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Thu, 05 Jan 2012 08:13:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=51#comment-4883</guid>
		<description>@Furosh - This post is about adding a new slave to the existing MySQL replication. In short, Master and Slave1 already exist and how to add Slave2 without stopping Master and Slave1. Here is my simple topology:
&lt;pre class=&quot;brush:text&quot;&gt; 
 Slave1 &lt;--- Master ---&gt; Slave2
&lt;/pre&gt;
So, this instructions for adding a new slave (Slave2) to the replication will not fit your case of daisy chained slaves. You will have configure Slave1 to log to its own binary log any updates that are received from a master server. Here is MySQL documentation for &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.1/en/replication-options-slave.html#option_mysqld_log-slave-updates&quot; title=&quot;MySQL: --log-slave-updates option&quot; rel=&quot;nofollow&quot;&gt;--log-slave-updates&lt;/a&gt; option. Slave1 in your case must be both, a master and a slave at the same time.</description>
		<content:encoded><![CDATA[<p>@Furosh - This post is about adding a new slave to the existing MySQL replication. In short, Master and Slave1 already exist and how to add Slave2 without stopping Master and Slave1. Here is my simple topology:</p>
<pre class="brush:text">
 Slave1 &lt;--- Master ---> Slave2
</pre>
<p>So, this instructions for adding a new slave (Slave2) to the replication will not fit your case of daisy chained slaves. You will have configure Slave1 to log to its own binary log any updates that are received from a master server. Here is MySQL documentation for <a href="http://dev.mysql.com/doc/refman/5.1/en/replication-options-slave.html#option_mysqld_log-slave-updates" title="MySQL: --log-slave-updates option" rel="nofollow">--log-slave-updates</a> option. Slave1 in your case must be both, a master and a slave at the same time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Furosh</title>
		<link>http://www.redips.net/mysql/add-new-slave/comment-page-1/#comment-4882</link>
		<dc:creator>Furosh</dc:creator>
		<pubDate>Wed, 04 Jan 2012 23:38:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=51#comment-4882</guid>
		<description>Originally I stumbled across this while trying to setup a slave of a slave of a master type setup. Where primary server is:
&lt;pre class=&quot;brush:text&quot;&gt;
Master ---&gt; Slave1 ---&gt; Slave2
&lt;/pre&gt;
I&#039;ve read its more practical to have the slaves replicate directly to the master for single-point of failure. However our network topology requires this for our disaster recover solution.

So I already have Master to --&gt; slave replication working, however to now replicate the slave1 to new slave2, would I simply follow these instructions and use master.info to reflect my slave1?

-Furosh</description>
		<content:encoded><![CDATA[<p>Originally I stumbled across this while trying to setup a slave of a slave of a master type setup. Where primary server is:</p>
<pre class="brush:text">
Master ---&gt; Slave1 ---&gt; Slave2
</pre>
<p>I've read its more practical to have the slaves replicate directly to the master for single-point of failure. However our network topology requires this for our disaster recover solution.</p>
<p>So I already have Master to --&gt; slave replication working, however to now replicate the slave1 to new slave2, would I simply follow these instructions and use master.info to reflect my slave1?</p>
<p>-Furosh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/mysql/add-new-slave/comment-page-1/#comment-4378</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Tue, 23 Aug 2011 06:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=51#comment-4378</guid>
		<description>@Dave - Thank you for your comment. I made several MySQL slave cloning and never had any problems. Next time I will try with &lt;strong&gt;change master to&lt;/strong&gt; command. Anyway in step 6 is minor editing of relay-log.info file (beacuse many of parameters stay unchanged), on the other hand with &lt;strong&gt;change master to&lt;/strong&gt; command you will have to type in a lot of parameters to set the slave to the right point of master MySQL database. Nevertheless &lt;strong&gt;change master to&lt;/strong&gt; seems as preferred method.

;)</description>
		<content:encoded><![CDATA[<p>@Dave - Thank you for your comment. I made several MySQL slave cloning and never had any problems. Next time I will try with <strong>change master to</strong> command. Anyway in step 6 is minor editing of relay-log.info file (beacuse many of parameters stay unchanged), on the other hand with <strong>change master to</strong> command you will have to type in a lot of parameters to set the slave to the right point of master MySQL database. Nevertheless <strong>change master to</strong> seems as preferred method.</p>
<p> <img src='http://www.redips.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.redips.net/mysql/add-new-slave/comment-page-1/#comment-4373</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Sun, 21 Aug 2011 16:09:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=51#comment-4373</guid>
		<description>Thanks for the guide. As other people have commented, the stuff about editing files is unnecessary and it&#039;s very easy to discover a chunk of data missing on your new slave, which can waste hours of time if you have a large database.

If anyone else should stumble across this page, here&#039;s what you need to do differently:

At step 1, after you have stopped the original slave and used the show slave status\G command, make a note of the Relay_Master_Log_File and Exec_Master_Log_Pos. Ignore step 3 and step 6. At step 9, issue the following commands:

&lt;pre class=&quot;brush:text&quot;&gt;
reset slave;

change master to master_host=&#039;[master host]&#039;,master_user=&#039;[slave username]&#039;,master_password=&#039;[slave password]&#039;,master_log_file=&#039;[Relay_Master_Log_File]&#039;,master_log_pos=[Exec_Master_Log_Pos];

start slave;
&lt;/pre&gt;

If you can&#039;t remember your slave username or password, then it is on line 4 and 5 in the mysql-master.info file on the original slave.</description>
		<content:encoded><![CDATA[<p>Thanks for the guide. As other people have commented, the stuff about editing files is unnecessary and it's very easy to discover a chunk of data missing on your new slave, which can waste hours of time if you have a large database.</p>
<p>If anyone else should stumble across this page, here's what you need to do differently:</p>
<p>At step 1, after you have stopped the original slave and used the show slave status\G command, make a note of the Relay_Master_Log_File and Exec_Master_Log_Pos. Ignore step 3 and step 6. At step 9, issue the following commands:</p>
<pre class="brush:text">
reset slave;

change master to master_host='[master host]',master_user='[slave username]',master_password='[slave password]',master_log_file='[Relay_Master_Log_File]',master_log_pos=[Exec_Master_Log_Pos];

start slave;
</pre>
<p>If you can't remember your slave username or password, then it is on line 4 and 5 in the mysql-master.info file on the original slave.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: a bisserl was geht immer &#187; Blog Archive &#187; MySQL-Slave zur Replikation hinzufügen</title>
		<link>http://www.redips.net/mysql/add-new-slave/comment-page-1/#comment-1963</link>
		<dc:creator>a bisserl was geht immer &#187; Blog Archive &#187; MySQL-Slave zur Replikation hinzufügen</dc:creator>
		<pubDate>Wed, 12 May 2010 12:38:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=51#comment-1963</guid>
		<description>[...] Es gibt hunderte Kurzanleitungen zu diesem Thema &#8211; ich nutze immer http://www.redips.net/mysql/add-new-slave/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Es gibt hunderte Kurzanleitungen zu diesem Thema &#8211; ich nutze immer <a href="http://www.redips.net/mysql/add-new-slave/" rel="nofollow">http://www.redips.net/mysql/add-new-slave/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbunic</title>
		<link>http://www.redips.net/mysql/add-new-slave/comment-page-1/#comment-1902</link>
		<dc:creator>dbunic</dc:creator>
		<pubDate>Sun, 11 Apr 2010 13:08:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=51#comment-1902</guid>
		<description>This error is due to privileges and authentication. Here is what I found:

&quot;Error No. 1045 indicates that the user trying to connect to the master is not properly authenticated. Check if user has been given sufficient privileges at the master server.&quot;

Hope this short info will give the right direction to solve the problem.</description>
		<content:encoded><![CDATA[<p>This error is due to privileges and authentication. Here is what I found:</p>
<p>"Error No. 1045 indicates that the user trying to connect to the master is not properly authenticated. Check if user has been given sufficient privileges at the master server."</p>
<p>Hope this short info will give the right direction to solve the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: george thil</title>
		<link>http://www.redips.net/mysql/add-new-slave/comment-page-1/#comment-1892</link>
		<dc:creator>george thil</dc:creator>
		<pubDate>Wed, 07 Apr 2010 04:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=51#comment-1892</guid>
		<description>hai friends pls help me, how can i solve this problem


&quot;Slave_IO_State&quot;, &quot;Master_Host&quot;, &quot;Master_User&quot;, &quot;Master_Port&quot;, &quot;Connect_Retry&quot;, &quot;Master_Log_File&quot;,
&quot;Read_Master_Log_Pos&quot;, &quot;Relay_Log_File&quot;, &quot;Relay_Log_Pos&quot;, &quot;Relay_Master_Log_File&quot;, &quot;Slave_IO_Running&quot;, &quot;Slave_SQL_Running&quot;, &quot;Replicate_Do_DB&quot;, &quot;Replicate_Ignore_DB&quot;, &quot;Replicate_Do_Table&quot;, &quot;Replicate_Ignore_Table&quot;, &quot;Replicate_Wild_Do_Table&quot;, &quot;Replicate_Wild_Ignore_Table&quot;, &quot;Last_Errno&quot;, &quot;Last_Error&quot;, &quot;Skip_Counter&quot;, &quot;Exec_Master_Log_Pos&quot;, &quot;Relay_Log_Space&quot;, &quot;Until_Condition&quot;, &quot;Until_Log_File&quot;, &quot;Until_Log_Pos&quot;, &quot;Master_SSL_Allowed&quot;, &quot;Master_SSL_CA_File&quot;, &quot;Master_SSL_CA_Path&quot;, &quot;Master_SSL_Cert&quot;, &quot;Master_SSL_Cipher&quot;, &quot;Master_SSL_Key&quot;, &quot;Seconds_Behind_Master&quot;, &quot;Master_SSL_Verify_Server_Cert&quot;, 
&quot;Last_IO_Errno&quot;, &quot;Last_IO_Error&quot;, &quot;Last_SQL_Errno&quot;, &quot;Last_SQL_Error&quot;


&quot;Connecting to master&quot;, &quot;192.168.0.226&quot;, &quot;hyden&quot;, &quot;3306&quot;, &quot;60&quot;, &quot;master-bin.000001&quot;,
&quot;106&quot;, &quot;C70-relay-bin.000001&quot;, &quot;4&quot;, &quot;master-bin.000001&quot;, &quot;No&quot;, &quot;Yes&quot;, &quot;my_db&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;0&quot;, &quot;&quot;, &quot;0&quot;, &quot;106&quot;, &quot;106&quot;, &quot;None&quot;, &quot;&quot;, &quot;0&quot;, &quot;No&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, NULL, &quot;No&quot;,
&quot;1045&quot;, &quot;error connecting to master &#039;hyden@192.168.0.226:3306&#039; - retry-time: 60  retries: 86400&quot;, &quot;0&quot;, &quot;&quot;

regards</description>
		<content:encoded><![CDATA[<p>hai friends pls help me, how can i solve this problem</p>
<p>"Slave_IO_State", "Master_Host", "Master_User", "Master_Port", "Connect_Retry", "Master_Log_File",<br />
"Read_Master_Log_Pos", "Relay_Log_File", "Relay_Log_Pos", "Relay_Master_Log_File", "Slave_IO_Running", "Slave_SQL_Running", "Replicate_Do_DB", "Replicate_Ignore_DB", "Replicate_Do_Table", "Replicate_Ignore_Table", "Replicate_Wild_Do_Table", "Replicate_Wild_Ignore_Table", "Last_Errno", "Last_Error", "Skip_Counter", "Exec_Master_Log_Pos", "Relay_Log_Space", "Until_Condition", "Until_Log_File", "Until_Log_Pos", "Master_SSL_Allowed", "Master_SSL_CA_File", "Master_SSL_CA_Path", "Master_SSL_Cert", "Master_SSL_Cipher", "Master_SSL_Key", "Seconds_Behind_Master", "Master_SSL_Verify_Server_Cert",<br />
"Last_IO_Errno", "Last_IO_Error", "Last_SQL_Errno", "Last_SQL_Error"</p>
<p>"Connecting to master", "192.168.0.226", "hyden", "3306", "60", "master-bin.000001",<br />
"106", "C70-relay-bin.000001", "4", "master-bin.000001", "No", "Yes", "my_db", "", "", "", "", "", "0", "", "0", "106", "106", "None", "", "0", "No", "", "", "", "", "", NULL, "No",<br />
"1045", "error connecting to master 'hyden@192.168.0.226:3306' - retry-time: 60  retries: 86400", "0", ""</p>
<p>regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich Gubby</title>
		<link>http://www.redips.net/mysql/add-new-slave/comment-page-1/#comment-1853</link>
		<dc:creator>Rich Gubby</dc:creator>
		<pubDate>Fri, 19 Mar 2010 16:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.redips.net/?p=51#comment-1853</guid>
		<description>Thanks for the guide, really helped me along!

My process was the same but I did a CHANGE MASTER TO as well.

One thing I had to do after i did the GRANT REPLICATION ... line was to do a FLUSH PRIVILEGES on the master as well.</description>
		<content:encoded><![CDATA[<p>Thanks for the guide, really helped me along!</p>
<p>My process was the same but I did a CHANGE MASTER TO as well.</p>
<p>One thing I had to do after i did the GRANT REPLICATION ... line was to do a FLUSH PRIVILEGES on the master as well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

