<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>John Myles White &#187; DBD::MySQL Mac OS X Tiger Perl</title>
	<atom:link href="http://www.johnmyleswhite.com/notebook/tag/dbdmysql-mac-os-x-tiger-perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnmyleswhite.com</link>
	<description>&#34;He who refuses to do arithmetic is doomed to talk nonsense.&#34;</description>
	<lastBuildDate>Wed, 26 Oct 2011 11:36:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>DBD::MySQL On Mac OS X Tiger 10.4.10 With Perl 5.8.6</title>
		<link>http://www.johnmyleswhite.com/notebook/2007/09/04/dbdmysql-on-mac-os-x-tiger-10410-with-perl-586/</link>
		<comments>http://www.johnmyleswhite.com/notebook/2007/09/04/dbdmysql-on-mac-os-x-tiger-10410-with-perl-586/#comments</comments>
		<pubDate>Tue, 04 Sep 2007 00:34:19 +0000</pubDate>
		<dc:creator>John Myles White</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[DBD::MySQL Mac OS X Tiger Perl]]></category>

		<guid isPermaLink="false">http://www.johnmyleswhite.com/notebook/2007/09/04/dbdmysql-on-mac-os-x-tiger-10410-with-perl-586/</guid>
		<description><![CDATA[My attempts to work this weekend on updates to a MySQL database-driven CGI application I wrote a few years ago were all delayed by a recurring problem during the installation of the DBD::MySQL module on my Powerbook. I finally solved the problem a few minutes ago after reading several articles, particularly one from JayAllen.org. In [...]]]></description>
			<content:encoded><![CDATA[<p>My attempts to work this weekend on updates to a MySQL database-driven CGI application I wrote a few years ago were all delayed by a recurring problem during the installation of the DBD::MySQL module on my Powerbook. I finally solved the problem a few minutes ago after reading several articles, particularly one from <a href="http://www.jayallen.org">JayAllen.org</a>. In the interests of saving others&#8217; time, here is the solution I came upon to getting DBD::MySQL to run on Mac OS X Tiger 10.4.10 with Perl 5.8.6.</p>
<p>The first set of problems I had were caused by the makefile for the CPAN module trying to access a non-existent library directory, /usr/local/mysql/lib/mysql. To solve this problem, I created a symbolic link to the missing directory:</p>

<div class="wp_codebox"><table><tr id="p26573"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p2657code3"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>lib <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql</pre></td></tr></table></div>

<p>After this, I got a new batch of errors about password problems during the test phase. The module was attempting to log in as root to the MySQL server without giving a password. The solution was to temporarily open the MySQL server with root requiring no password:</p>

<div class="wp_codebox"><table><tr id="p26574"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p2657code4"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> mysqld <span style="color: #660033;">--skip-grant-tables</span> <span style="color: #660033;">-u</span> root <span style="color: #000000; font-weight: bold;">&amp;</span></pre></td></tr></table></div>

<p>These two steps, discovered after considerable bug-tracking, solved all of my problems. Hopefully this can save other Tiger users a great deal of time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnmyleswhite.com/notebook/2007/09/04/dbdmysql-on-mac-os-x-tiger-10410-with-perl-586/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.282 seconds -->

