<?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: Bind 9.5.0 &#8211; Patch dlz MySQL 5 for auto reconnect</title>
	<atom:link href="http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/</link>
	<description>Some useful tips about CLI tools, Shell scripts and batch files... GNU Bash, Windows XP, SQL, Help Sheets / Cheat Sheets, etc.</description>
	<lastBuildDate>Mon, 10 May 2010 18:31:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Tobias Scherbaum</title>
		<link>http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/comment-page-1/#comment-14160</link>
		<dc:creator>Tobias Scherbaum</dc:creator>
		<pubDate>Sat, 03 May 2008 19:17:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/#comment-14160</guid>
		<description>Thanks for this patch, Nicolas :) I included the patch as a fix for https://bugs.gentoo.org/show_bug.cgi?id=180720 to Gentoo :) And yeah, it also works with 9.4.2.</description>
		<content:encoded><![CDATA[<p>Thanks for this patch, Nicolas :) I included the patch as a fix for <a href="https://bugs.gentoo.org/show_bug.cgi?id=180720" >https://bugs.gentoo.org/show_bug.cgi?id=180720</a> to Gentoo :) And yeah, it also works with 9.4.2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas Brousse</title>
		<link>http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/comment-page-1/#comment-10396</link>
		<dc:creator>Nicolas Brousse</dc:creator>
		<pubDate>Tue, 22 Jan 2008 17:02:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/#comment-10396</guid>
		<description>That should work. You probably have to check that it&#039;s ok with the sources of bind 9.4.1. The main thing to do is to fix the source file &quot;contrib/dlz/drivers/dlz_mysql_driver.c&quot; for setting the mysql option to reconnect (and also some mysql_ping() to do) :

+    if(mysql_options((MYSQL *) dbi-&gt;dbconn, MYSQL_OPT_RECONNECT, &quot;1&quot;)) {
+		isc_log_write(dns_lctx, DNS_LOGCATEGORY_DATABASE,
+			      DNS_LOGMODULE_DLZ, ISC_LOG_ERROR,
+			      &quot;Could not set database reconnect option&quot;);
+    }

try to patch directly the sources of mysql 9.4.1, if you don&#039;t succeed I&#039;ll take time to look at it.</description>
		<content:encoded><![CDATA[<p>That should work. You probably have to check that it&#8217;s ok with the sources of bind 9.4.1. The main thing to do is to fix the source file &#8220;contrib/dlz/drivers/dlz_mysql_driver.c&#8221; for setting the mysql option to reconnect (and also some mysql_ping() to do) :</p>
<p>+    if(mysql_options((MYSQL *) dbi->dbconn, MYSQL_OPT_RECONNECT, &#8220;1&#8243;)) {<br />
+		isc_log_write(dns_lctx, DNS_LOGCATEGORY_DATABASE,<br />
+			      DNS_LOGMODULE_DLZ, ISC_LOG_ERROR,<br />
+			      &#8220;Could not set database reconnect option&#8221;);<br />
+    }</p>
<p>try to patch directly the sources of mysql 9.4.1, if you don&#8217;t succeed I&#8217;ll take time to look at it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hdcyly</title>
		<link>http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/comment-page-1/#comment-10309</link>
		<dc:creator>hdcyly</dc:creator>
		<pubDate>Sat, 19 Jan 2008 13:14:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/#comment-10309</guid>
		<description>Hi, I am using BIND 9.4.1 now. Does the patch also work on this version ?

Thanks !</description>
		<content:encoded><![CDATA[<p>Hi, I am using BIND 9.4.1 now. Does the patch also work on this version ?</p>
<p>Thanks !</p>
]]></content:encoded>
	</item>
</channel>
</rss>
