<?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: MySQL: Using CONNECT to Quickly Verify Replication Health</title>
	<atom:link href="http://www.pythian.com/news/1466/mysql-using-connect-to-quickly-verify-replication-health/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/1466/mysql-using-connect-to-quickly-verify-replication-health/</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: Phil</title>
		<link>http://www.pythian.com/news/1466/mysql-using-connect-to-quickly-verify-replication-health/#comment-504245</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Wed, 02 Feb 2011 16:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1466/mysql-using-connect-to-quickly-verify-replication-health#comment-504245</guid>
		<description>chetanM &gt; Thank you for that. Personnaly, I use &quot;Exec_Master_Log_Pos&quot; instead of &quot;Read_Master_Log_Pos&quot; (our tests have shown that Read_Master_Log_Pos isn&#039;t what we want to detect loss of replication!)</description>
		<content:encoded><![CDATA[<p>chetanM &gt; Thank you for that. Personnaly, I use &#8220;Exec_Master_Log_Pos&#8221; instead of &#8220;Read_Master_Log_Pos&#8221; (our tests have shown that Read_Master_Log_Pos isn&#8217;t what we want to detect loss of replication!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chetanM</title>
		<link>http://www.pythian.com/news/1466/mysql-using-connect-to-quickly-verify-replication-health/#comment-383425</link>
		<dc:creator>chetanM</dc:creator>
		<pubDate>Mon, 09 Nov 2009 23:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1466/mysql-using-connect-to-quickly-verify-replication-health#comment-383425</guid>
		<description>slave_pos=&quot;`mysql -uroot -ppasswd  -e &#039;show slave status \G;&#039; &#124;grep -r &#039;Read_Master_Log_Pos&#039; &#124;awk &#039;{ printf &quot;   %s  &quot;, $2  }&#039; &#124;xargs`&quot;


master_pos=&quot;` mysql -uroot -ppasswd  -e &#039;show master status;&#039; &#124; grep mysql-bin &#124;awk &#039;{ printf &quot;   %s  &quot;, $2  }&#039; &#124;xargs`&quot;</description>
		<content:encoded><![CDATA[<p>slave_pos=&#8221;`mysql -uroot -ppasswd  -e &#8216;show slave status \G;&#8217; |grep -r &#8216;Read_Master_Log_Pos&#8217; |awk &#8216;{ printf &#8221;   %s  &#8220;, $2  }&#8217; |xargs`&#8221;</p>
<p>master_pos=&#8221;` mysql -uroot -ppasswd  -e &#8216;show master status;&#8217; | grep mysql-bin |awk &#8216;{ printf &#8221;   %s  &#8220;, $2  }&#8217; |xargs`&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerry Narvaja</title>
		<link>http://www.pythian.com/news/1466/mysql-using-connect-to-quickly-verify-replication-health/#comment-334698</link>
		<dc:creator>Gerry Narvaja</dc:creator>
		<pubDate>Thu, 29 Jan 2009 21:15:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1466/mysql-using-connect-to-quickly-verify-replication-health#comment-334698</guid>
		<description>Pretty concept. I guess that the awk and perl experts can take it and add some warning messages based on the info. Thanks for sharing.</description>
		<content:encoded><![CDATA[<p>Pretty concept. I guess that the awk and perl experts can take it and add some warning messages based on the info. Thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Hinz</title>
		<link>http://www.pythian.com/news/1466/mysql-using-connect-to-quickly-verify-replication-health/#comment-334209</link>
		<dc:creator>Stefan Hinz</dc:creator>
		<pubDate>Wed, 28 Jan 2009 11:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1466/mysql-using-connect-to-quickly-verify-replication-health#comment-334209</guid>
		<description>For my small replication network, I&#039;m using this shell script:

#! /bin/sh
echo &quot;Master servers --------------------------------------------------&quot;
for host in themis iconnect2; do
  echo $host
  mysql -h $host -e &quot;show master status\G&quot; &#124; grep Position
done
echo &quot;Slave servers ---------------------------------------------------&quot;
for host in iconnect2 artemis astraia athena aphrodite hermes; do
  echo $host
  mysql -h $host -e &quot;show slave status\G&quot; &#124; grep Exec_Master_Log_Pos
done

The output is pretty concise and straightforward. :-)</description>
		<content:encoded><![CDATA[<p>For my small replication network, I&#8217;m using this shell script:</p>
<p>#! /bin/sh<br />
echo &#8220;Master servers &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#8221;<br />
for host in themis iconnect2; do<br />
  echo $host<br />
  mysql -h $host -e &#8220;show master status\G&#8221; | grep Position<br />
done<br />
echo &#8220;Slave servers &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8221;<br />
for host in iconnect2 artemis astraia athena aphrodite hermes; do<br />
  echo $host<br />
  mysql -h $host -e &#8220;show slave status\G&#8221; | grep Exec_Master_Log_Pos<br />
done</p>
<p>The output is pretty concise and straightforward. :-)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

