<?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"
	>
<channel>
	<title>Comments on: OpenBSD - Episode 4 - Apache, MySQL, PHP</title>
	<atom:link href="http://www.wrgross.com/blogs/security/2008/07/12/openbsd-episode-4-apache-mysql-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wrgross.com/blogs/security/2008/07/12/openbsd-episode-4-apache-mysql-php/</link>
	<description>All manner of goodness respecting the secure operation of digital systems.</description>
	<pubDate>Sun, 20 May 2012 02:02:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: fcgoo</title>
		<link>http://www.wrgross.com/blogs/security/2008/07/12/openbsd-episode-4-apache-mysql-php/#comment-235</link>
		<dc:creator>fcgoo</dc:creator>
		<pubDate>Thu, 26 Mar 2009 03:14:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.wrgross.com/blogs/security/2008/07/12/openbsd-episode-4-apache-mysql-php/#comment-235</guid>
		<description>hello, i installed openbsd4.4+mysql(pkg_add),but there are some error appeared in log accidently. then i write a test perl script:
=== script start ===
use DBI;
$dsn = "DBI:mysql:database=test;host=127.0.0.1;port=3306";
for ($i = 0; $i connect($dsn, 'root', '');
        if (!$dbh) { exit 1; }
        print $i, ' ', $dbh, "\n";
}
=== script end ===
to run it ,and show following error:
...
231 DBI::db=HASH(0x877f9084)
232 DBI::db=HASH(0x877f9bb8)
233 DBI::db=HASH(0x877f9b34)
234 DBI::db=HASH(0x877f9dc8)
235 DBI::db=HASH(0x863f915c)
DBI connect('database=test;host=127.0.0.1;port=3306','root',...) failed: Can't connect to MySQL server on '127.0.0.1' (65) at 2.pl line 4

if you connect mysql through socket , the error is disappear any time. however, if you connect mysql through ip(127.0.0.1), the error appear again, how to workaround it ?

forum discussed such problem : 
http://www.openbsdonly.org/viewtopic.php?f=17&#38;t=640

sorry for my poor english</description>
		<content:encoded><![CDATA[<p>hello, i installed openbsd4.4+mysql(pkg_add),but there are some error appeared in log accidently. then i write a test perl script:<br />
=== script start ===<br />
use DBI;<br />
$dsn = &#8220;DBI:mysql:database=test;host=127.0.0.1;port=3306&#8243;;<br />
for ($i = 0; $i connect($dsn, &#8216;root&#8217;, &#8221;);<br />
        if (!$dbh) { exit 1; }<br />
        print $i, &#8216; &#8216;, $dbh, &#8220;\n&#8221;;<br />
}<br />
=== script end ===<br />
to run it ,and show following error:<br />
&#8230;<br />
231 DBI::db=HASH(0&#215;877f9084)<br />
232 DBI::db=HASH(0&#215;877f9bb8)<br />
233 DBI::db=HASH(0&#215;877f9b34)<br />
234 DBI::db=HASH(0&#215;877f9dc8)<br />
235 DBI::db=HASH(0&#215;863f915c)<br />
DBI connect(&#8217;database=test;host=127.0.0.1;port=3306&#8242;,&#8217;root&#8217;,&#8230;) failed: Can&#8217;t connect to MySQL server on &#8216;127.0.0.1&#8242; (65) at 2.pl line 4</p>
<p>if you connect mysql through socket , the error is disappear any time. however, if you connect mysql through ip(127.0.0.1), the error appear again, how to workaround it ?</p>
<p>forum discussed such problem :<br />
<a href="http://www.openbsdonly.org/viewtopic.php?f=17&amp;t=640" rel="nofollow">http://www.openbsdonly.org/viewtopic.php?f=17&amp;t=640</a></p>
<p>sorry for my poor english</p>
]]></content:encoded>
	</item>
</channel>
</rss>

