<?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: my.ini Gotcha on Windows</title>
	<atom:link href="http://www.pythian.com/news/1296/mysql-myini-gotcha-on-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/1296/mysql-myini-gotcha-on-windows/</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: Augusto Bott</title>
		<link>http://www.pythian.com/news/1296/mysql-myini-gotcha-on-windows/#comment-290635</link>
		<dc:creator>Augusto Bott</dc:creator>
		<pubDate>Wed, 15 Oct 2008 16:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1296/mysql-myini-gotcha-on-windows#comment-290635</guid>
		<description>Thanks for the feedback, Rob/Jeremy! The post has been corrected.
Cheers!</description>
		<content:encoded><![CDATA[<p>Thanks for the feedback, Rob/Jeremy! The post has been corrected.<br />
Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Wultsch</title>
		<link>http://www.pythian.com/news/1296/mysql-myini-gotcha-on-windows/#comment-290465</link>
		<dc:creator>Rob Wultsch</dc:creator>
		<pubDate>Tue, 14 Oct 2008 20:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1296/mysql-myini-gotcha-on-windows#comment-290465</guid>
		<description>Meh reversed forward and back slashes in last entry...</description>
		<content:encoded><![CDATA[<p>Meh reversed forward and back slashes in last entry&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Wultsch</title>
		<link>http://www.pythian.com/news/1296/mysql-myini-gotcha-on-windows/#comment-290462</link>
		<dc:creator>Rob Wultsch</dc:creator>
		<pubDate>Tue, 14 Oct 2008 20:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1296/mysql-myini-gotcha-on-windows#comment-290462</guid>
		<description>The MySQL installer writes the my.ini with backslashes, and the manual shows the backslash as a separator (ex http://dev.mysql.com/doc/refman/5.1/en/windows-create-option-file.html). Anything that does not respect this syntax needs to fail *hard*. 

The more conservative option is to use backslashes as it is what the is default anyways, and is less error prone. As Jeremy Cole pointed out there is an error in your example that is just waiting to blow up.

Mods:Forgive me if I post this twice, please delete one if that is the case.</description>
		<content:encoded><![CDATA[<p>The MySQL installer writes the my.ini with backslashes, and the manual shows the backslash as a separator (ex <a href="http://dev.mysql.com/doc/refman/5.1/en/windows-create-option-file.html)" rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/windows-create-option-file.html)</a>. Anything that does not respect this syntax needs to fail *hard*. </p>
<p>The more conservative option is to use backslashes as it is what the is default anyways, and is less error prone. As Jeremy Cole pointed out there is an error in your example that is just waiting to blow up.</p>
<p>Mods:Forgive me if I post this twice, please delete one if that is the case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Augusto Bott</title>
		<link>http://www.pythian.com/news/1296/mysql-myini-gotcha-on-windows/#comment-290443</link>
		<dc:creator>Augusto Bott</dc:creator>
		<pubDate>Tue, 14 Oct 2008 19:40:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1296/mysql-myini-gotcha-on-windows#comment-290443</guid>
		<description>Hi Rob!

That&#039;s the thing: we don&#039;t know &lt;em&gt;all&lt;/em&gt; the apps using these particular database servers (or which OS those apps run on). That said, we can&#039;t predict safely how they would behave with regular/forward slashes on the paths.

Cheers!</description>
		<content:encoded><![CDATA[<p>Hi Rob!</p>
<p>That&#8217;s the thing: we don&#8217;t know <em>all</em> the apps using these particular database servers (or which OS those apps run on). That said, we can&#8217;t predict safely how they would behave with regular/forward slashes on the paths.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Wultsch</title>
		<link>http://www.pythian.com/news/1296/mysql-myini-gotcha-on-windows/#comment-290426</link>
		<dc:creator>Rob Wultsch</dc:creator>
		<pubDate>Tue, 14 Oct 2008 18:02:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1296/mysql-myini-gotcha-on-windows#comment-290426</guid>
		<description>Ok, I&#039;m curious what programs don&#039;t support forward slashes on windows. All the *nix programs I&#039;m aware of deal with it well.</description>
		<content:encoded><![CDATA[<p>Ok, I&#8217;m curious what programs don&#8217;t support forward slashes on windows. All the *nix programs I&#8217;m aware of deal with it well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Augusto Bott</title>
		<link>http://www.pythian.com/news/1296/mysql-myini-gotcha-on-windows/#comment-290422</link>
		<dc:creator>Augusto Bott</dc:creator>
		<pubDate>Tue, 14 Oct 2008 17:54:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1296/mysql-myini-gotcha-on-windows#comment-290422</guid>
		<description>Hi Jeremy, Rob!

There is a reason/purpose for choosing &#039;\&#039; as a path separator: unfortunately not all applications work well with &#039;/&#039; as a path separator (yes, there are some still around). Since most of them can actually fetch those strings from the DB make no conversion/checking whatsoever. For this particular setup, picking &#039;\&#039; was a less risky approach, having a better chance of fixing things instead of breaking other pieces of software connected to those servers :-)

Cheers!</description>
		<content:encoded><![CDATA[<p>Hi Jeremy, Rob!</p>
<p>There is a reason/purpose for choosing &#8216;\&#8217; as a path separator: unfortunately not all applications work well with &#8216;/&#8217; as a path separator (yes, there are some still around). Since most of them can actually fetch those strings from the DB make no conversion/checking whatsoever. For this particular setup, picking &#8216;\&#8217; was a less risky approach, having a better chance of fixing things instead of breaking other pieces of software connected to those servers :-)</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Wultsch</title>
		<link>http://www.pythian.com/news/1296/mysql-myini-gotcha-on-windows/#comment-290410</link>
		<dc:creator>Rob Wultsch</dc:creator>
		<pubDate>Tue, 14 Oct 2008 17:10:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1296/mysql-myini-gotcha-on-windows#comment-290410</guid>
		<description>In my opinion &#039;\\&#039; is ugly. Forward slashes are the only game in town on *nix, and on Windows they work quite nicely. I suggest:

&quot;C:/MySQL/tmp/&quot;

in the future. Isn&#039;t it prettier?</description>
		<content:encoded><![CDATA[<p>In my opinion &#8216;\\&#8217; is ugly. Forward slashes are the only game in town on *nix, and on Windows they work quite nicely. I suggest:</p>
<p>&#8220;C:/MySQL/tmp/&#8221;</p>
<p>in the future. Isn&#8217;t it prettier?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Cole</title>
		<link>http://www.pythian.com/news/1296/mysql-myini-gotcha-on-windows/#comment-290404</link>
		<dc:creator>Jeremy Cole</dc:creator>
		<pubDate>Tue, 14 Oct 2008 16:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1296/mysql-myini-gotcha-on-windows#comment-290404</guid>
		<description>Hi Augusto,

You&#039;ve chosen the wrong solution with &quot;tmpdir=C:\MySQL\\tmp\&quot; ... you need to either escape ALL \ to \\ or replace them with /.  For simplicity sake, on Windows, I would usually use:

tmpdir=c:/MySQL/tmp/

Your configuration line only works because \M isn&#039;t a valid escape sequence, and fundamentally misunderstands the concept of escape sequences to begin with.

Regards,

Jeremy</description>
		<content:encoded><![CDATA[<p>Hi Augusto,</p>
<p>You&#8217;ve chosen the wrong solution with &#8220;tmpdir=C:\MySQL\\tmp\&#8221; &#8230; you need to either escape ALL \ to \\ or replace them with /.  For simplicity sake, on Windows, I would usually use:</p>
<p>tmpdir=c:/MySQL/tmp/</p>
<p>Your configuration line only works because \M isn&#8217;t a valid escape sequence, and fundamentally misunderstands the concept of escape sequences to begin with.</p>
<p>Regards,</p>
<p>Jeremy</p>
]]></content:encoded>
	</item>
</channel>
</rss>

