<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: What are your favorite MySQL replication filtering rules?</title>
	<link>http://www.xaprb.com/blog/2007/10/20/what-are-your-favorite-mysql-replication-filtering-rules/</link>
	<description>Stay curious!</description>
	<pubDate>Thu, 24 Jul 2008 00:18:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2007/10/20/what-are-your-favorite-mysql-replication-filtering-rules/#comment-13560</link>
		<author>Xaprb</author>
		<pubDate>Sun, 21 Oct 2007 19:33:00 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/10/20/what-are-your-favorite-mysql-replication-filtering-rules/#comment-13560</guid>
		<description>Good suggestions, thanks.  I'm pretty sure the elapsed-time and user-variable problems are solved by meta-data added to the binlog events, but I'll check.

An interesting question: do user-variables cause issues like temp tables in case the slave crashes and restarts?  I think they don't but I'm not sure.  I'll check that too.</description>
		<content:encoded><![CDATA[<p>Good suggestions, thanks.  I&#8217;m pretty sure the elapsed-time and user-variable problems are solved by meta-data added to the binlog events, but I&#8217;ll check.</p>
<p>An interesting question: do user-variables cause issues like temp tables in case the slave crashes and restarts?  I think they don&#8217;t but I&#8217;m not sure.  I&#8217;ll check that too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri</title>
		<link>http://www.xaprb.com/blog/2007/10/20/what-are-your-favorite-mysql-replication-filtering-rules/#comment-13559</link>
		<author>Sheeri</author>
		<pubDate>Sun, 21 Oct 2007 19:29:30 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/10/20/what-are-your-favorite-mysql-replication-filtering-rules/#comment-13559</guid>
		<description>Well, one trick is when you're replicating only one database but want to use another without having to change replication, do everything using dot notation from the allowed db.

      ie, 

      use alloweddb;
      INSERT INTO different.tbl1 (col1, col2, col3) VALUES (val1,val2,val3);

      But that's of course a huge hack.

      One thing that's interesting that came up as a question at work the other day -- if you do the following:

      BEGIN;
      INSERT INTO TimeTbl (beginTime) SELECT NOW();
      -- some long query here
      INSERT INTO TimeTbl (endTime) SELECT NOW();
      COMMIT;

      does it replicate properly?  I'd like to see things like highlighting  where replication falls apart (like with SET statements, user variables, etc....and maybe how one can get around those).</description>
		<content:encoded><![CDATA[<p>Well, one trick is when you&#8217;re replicating only one database but want to use another without having to change replication, do everything using dot notation from the allowed db.</p>
<p>      ie, </p>
<p>      use alloweddb;<br />
      INSERT INTO different.tbl1 (col1, col2, col3) VALUES (val1,val2,val3);</p>
<p>      But that&#8217;s of course a huge hack.</p>
<p>      One thing that&#8217;s interesting that came up as a question at work the other day &#8212; if you do the following:</p>
<p>      BEGIN;<br />
      INSERT INTO TimeTbl (beginTime) SELECT NOW();<br />
      &#8212; some long query here<br />
      INSERT INTO TimeTbl (endTime) SELECT NOW();<br />
      COMMIT;</p>
<p>      does it replicate properly?  I&#8217;d like to see things like highlighting  where replication falls apart (like with SET statements, user variables, etc&#8230;.and maybe how one can get around those).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2007/10/20/what-are-your-favorite-mysql-replication-filtering-rules/#comment-13558</link>
		<author>Xaprb</author>
		<pubDate>Sun, 21 Oct 2007 13:22:46 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/10/20/what-are-your-favorite-mysql-replication-filtering-rules/#comment-13558</guid>
		<description>Ethan, do you mean timezones as they relate to replication, or just timezones in general?</description>
		<content:encoded><![CDATA[<p>Ethan, do you mean timezones as they relate to replication, or just timezones in general?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ethan</title>
		<link>http://www.xaprb.com/blog/2007/10/20/what-are-your-favorite-mysql-replication-filtering-rules/#comment-13557</link>
		<author>Ethan</author>
		<pubDate>Sun, 21 Oct 2007 12:59:07 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/10/20/what-are-your-favorite-mysql-replication-filtering-rules/#comment-13557</guid>
		<description>Yes, information on replication of permissions would be really useful.

Info about other config options in the mysql database (timezones etc) would also be helpful</description>
		<content:encoded><![CDATA[<p>Yes, information on replication of permissions would be really useful.</p>
<p>Info about other config options in the mysql database (timezones etc) would also be helpful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2007/10/20/what-are-your-favorite-mysql-replication-filtering-rules/#comment-13556</link>
		<author>Xaprb</author>
		<pubDate>Sun, 21 Oct 2007 12:30:32 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/10/20/what-are-your-favorite-mysql-replication-filtering-rules/#comment-13556</guid>
		<description>Well, in a book about how to make replication work right, we should probably avoid this setting and concentrate on helping solve whatever's creating the need for it :-)</description>
		<content:encoded><![CDATA[<p>Well, in a book about how to make replication work right, we should probably avoid this setting and concentrate on helping solve whatever&#8217;s creating the need for it :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.xaprb.com/blog/2007/10/20/what-are-your-favorite-mysql-replication-filtering-rules/#comment-13554</link>
		<author>Marc</author>
		<pubDate>Sun, 21 Oct 2007 01:36:35 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/10/20/what-are-your-favorite-mysql-replication-filtering-rules/#comment-13554</guid>
		<description>--slave-skip-errors=all

I know most people don't agree with this however.</description>
		<content:encoded><![CDATA[<p>&#8211;slave-skip-errors=all</p>
<p>I know most people don&#8217;t agree with this however.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
