<?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: mysqlbinlog Tips and Tricks</title>
	<atom:link href="http://www.pythian.com/news/1174/mysqlbinlog-tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/1174/mysqlbinlog-tips-and-tricks/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Sat, 20 Mar 2010 20:27:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Krishna Chandra Prajapati</title>
		<link>http://www.pythian.com/news/1174/mysqlbinlog-tips-and-tricks/#comment-296696</link>
		<dc:creator>Krishna Chandra Prajapati</dc:creator>
		<pubDate>Mon, 03 Nov 2008 13:11:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1174/mysqlbinlog-tips-and-tricks#comment-296696</guid>
		<description>Hi Nick,

I would like to know that whether mysqlbinlog --read-from-remote-server can be used to replicate data to a slave mysql server using script. If yes is it successfull.  Although there will be a delay, depending on the cron executing the script.

I have a situation, where i need to get data from different mysql server on server called report server. Actually, i am working on this.

Please give your comments.

Thanks,
Krishna Chandra Prajapati</description>
		<content:encoded><![CDATA[<p>Hi Nick,</p>
<p>I would like to know that whether mysqlbinlog &#8211;read-from-remote-server can be used to replicate data to a slave mysql server using script. If yes is it successfull.  Although there will be a delay, depending on the cron executing the script.</p>
<p>I have a situation, where i need to get data from different mysql server on server called report server. Actually, i am working on this.</p>
<p>Please give your comments.</p>
<p>Thanks,<br />
Krishna Chandra Prajapati</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicklas Westerlund</title>
		<link>http://www.pythian.com/news/1174/mysqlbinlog-tips-and-tricks/#comment-271851</link>
		<dc:creator>Nicklas Westerlund</dc:creator>
		<pubDate>Thu, 04 Sep 2008 16:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1174/mysqlbinlog-tips-and-tricks#comment-271851</guid>
		<description>@Partho:

Thanks, I appreciate it. 
Not really, although I would recommend you to set lower_case_table_names=1 (on both machines, unless you have table1 and Table1). This will store all tables as lowercase, and will also convert it for you (So SELECT a,b FROM C; will be SELECT a,b FROM c;)

However, you&#039;d have to convert all your tables to lowercase on linux first. 

Another option might be to set it to 0 on linux and 2 on windows, but there&#039;s some drawbacks to that as well.

For a more descriptive walk through, please visit: http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html
which has use cases as well.

@Shantanu:
Yes, you are right that unix knowledge does help -- unless you&#039;re a windows DBA I guess. (But even then, having some unix knowledge would be beneficial). Thanks for commenting!</description>
		<content:encoded><![CDATA[<p>@Partho:</p>
<p>Thanks, I appreciate it.<br />
Not really, although I would recommend you to set lower_case_table_names=1 (on both machines, unless you have table1 and Table1). This will store all tables as lowercase, and will also convert it for you (So SELECT a,b FROM C; will be SELECT a,b FROM c;)</p>
<p>However, you&#8217;d have to convert all your tables to lowercase on linux first. </p>
<p>Another option might be to set it to 0 on linux and 2 on windows, but there&#8217;s some drawbacks to that as well.</p>
<p>For a more descriptive walk through, please visit: <a href="http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html</a><br />
which has use cases as well.</p>
<p>@Shantanu:<br />
Yes, you are right that unix knowledge does help &#8212; unless you&#8217;re a windows DBA I guess. (But even then, having some unix knowledge would be beneficial). Thanks for commenting!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shantanu Oak</title>
		<link>http://www.pythian.com/news/1174/mysqlbinlog-tips-and-tricks/#comment-268482</link>
		<dc:creator>Shantanu Oak</dc:creator>
		<pubDate>Sun, 31 Aug 2008 13:45:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1174/mysqlbinlog-tips-and-tricks#comment-268482</guid>
		<description>0 * * * * mysqlbinlog  --read-from-remote-server -h 127.0.0.1 -uwesterlund -p -P 3306 mysql-bin.* --start-datetime=&quot;`date +%Y-%m-%d&#039; &#039;%H:00:00 -d\&quot;1 hour ago\&quot;`&quot; --stop-datetime=&quot;`date +%Y-%m-%d&#039; &#039;%H:00:00`&quot; &#124; awk &#039;/tbl_company/,/;/&#039; &#124; replace tbl_company db.tbl_company &#124; mysql -h 172.29.0.131 -uusrname -ppasswd mydb

I have set a crontab that will check the bin-logs every hour for entries related to a particular table and update it on some other server. I use this method when I want to update only one table and don&#039;t need replication. 

set global sql_slave_skip_counter = 1
is the line I need to run if I want to skip one line on slave.

And yes, Unix knowledge does help :)</description>
		<content:encoded><![CDATA[<p>0 * * * * mysqlbinlog  &#8211;read-from-remote-server -h 127.0.0.1 -uwesterlund -p -P 3306 mysql-bin.* &#8211;start-datetime=&#8221;`date +%Y-%m-%d&#8217; &#8216;%H:00:00 -d\&#8221;1 hour ago\&#8221;`&#8221; &#8211;stop-datetime=&#8221;`date +%Y-%m-%d&#8217; &#8216;%H:00:00`&#8221; | awk &#8216;/tbl_company/,/;/&#8217; | replace tbl_company db.tbl_company | mysql -h 172.29.0.131 -uusrname -ppasswd mydb</p>
<p>I have set a crontab that will check the bin-logs every hour for entries related to a particular table and update it on some other server. I use this method when I want to update only one table and don&#8217;t need replication. </p>
<p>set global sql_slave_skip_counter = 1<br />
is the line I need to run if I want to skip one line on slave.</p>
<p>And yes, Unix knowledge does help :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Partho Roy</title>
		<link>http://www.pythian.com/news/1174/mysqlbinlog-tips-and-tricks/#comment-268050</link>
		<dc:creator>Partho Roy</dc:creator>
		<pubDate>Sun, 31 Aug 2008 04:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1174/mysqlbinlog-tips-and-tricks#comment-268050</guid>
		<description>Hi Nick
Your article is great
When I run the Master MySql server in Linux and the Slave in Windows I have an issue of maintaing case sensitive of Table Column names. IS there a way out.
Would appreciate a reply.
Thanks</description>
		<content:encoded><![CDATA[<p>Hi Nick<br />
Your article is great<br />
When I run the Master MySql server in Linux and the Slave in Windows I have an issue of maintaing case sensitive of Table Column names. IS there a way out.<br />
Would appreciate a reply.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicklas Westerlund</title>
		<link>http://www.pythian.com/news/1174/mysqlbinlog-tips-and-tricks/#comment-267844</link>
		<dc:creator>Nicklas Westerlund</dc:creator>
		<pubDate>Sat, 30 Aug 2008 21:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1174/mysqlbinlog-tips-and-tricks#comment-267844</guid>
		<description>Thanks Alex and Abhishek -- is there any other topic you&#039;d like me to explain in further detail?

Nick.</description>
		<content:encoded><![CDATA[<p>Thanks Alex and Abhishek &#8212; is there any other topic you&#8217;d like me to explain in further detail?</p>
<p>Nick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhishek</title>
		<link>http://www.pythian.com/news/1174/mysqlbinlog-tips-and-tricks/#comment-267362</link>
		<dc:creator>Abhishek</dc:creator>
		<pubDate>Sat, 30 Aug 2008 07:57:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1174/mysqlbinlog-tips-and-tricks#comment-267362</guid>
		<description>Realy its very helpful. Thanks Buddy</description>
		<content:encoded><![CDATA[<p>Realy its very helpful. Thanks Buddy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Gorbachev</title>
		<link>http://www.pythian.com/news/1174/mysqlbinlog-tips-and-tricks/#comment-260829</link>
		<dc:creator>Alex Gorbachev</dc:creator>
		<pubDate>Wed, 20 Aug 2008 04:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1174/mysqlbinlog-tips-and-tricks#comment-260829</guid>
		<description>Nice. Good to know about MySQL analog of Oracle LogMiner.
Thanks Nick!</description>
		<content:encoded><![CDATA[<p>Nice. Good to know about MySQL analog of Oracle LogMiner.<br />
Thanks Nick!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
