<?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>Thijs Lensselink&#039;s Blog &#187; MySql</title>
	<atom:link href="http://lenss.nl/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://lenss.nl</link>
	<description>Webdevelopment and stuff...</description>
	<lastBuildDate>Thu, 26 Apr 2012 21:48:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Reserved keywords, corrupt cache and stack errors</title>
		<link>http://lenss.nl/2011/06/reserved-keywords_corrupt-cache-and-stack-errors/</link>
		<comments>http://lenss.nl/2011/06/reserved-keywords_corrupt-cache-and-stack-errors/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 12:22:36 +0000</pubDate>
		<dc:creator>Thijs Lensselink</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[APC]]></category>
		<category><![CDATA[currupt cache]]></category>
		<category><![CDATA[Doctrine]]></category>
		<category><![CDATA[keywords]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[reserved]]></category>
		<category><![CDATA[stack frame]]></category>

		<guid isPermaLink="false">http://lenss.nl/?p=1277</guid>
		<description><![CDATA[What a day. Every now and then there are such days where you wished you stayed in bed. Today was one of them. And i was confronted by two weird errors with very non descriptive error message or no error message at all. In both cases the issue was solved without a real solution. This [...]]]></description>
			<content:encoded><![CDATA[<p>What a day. Every now and then there are such days where you wished you stayed in bed. Today was one of them. And i was confronted by two weird errors with very non descriptive error message or no error message at all. In both cases the issue was solved without a real solution. This post is just to vent my frustration of the day. And now that i take the time to write this down i might as well add the issue i ran into last week. Will save that one for last.</p>
<p><strong>Reserved keyword</strong></p>
<p>So i have been banging my head over this issue for way to long today. And had to find out the hard way it was a simple little thing as usual. But <a href="http://www.doctrine-project.org/">Doctrine</a> (version 1 if anybody asks) didn&#8217;t offer me any good info with the error message it was displaying. Nor did <a href="http://www.php.net/">PHP</a> or <a href="http://www.mysql.com/">MySQL</a> (should be <a href="http://mariadb.org/">MariaDB</a> if you ask me).</p>
<p>While working on a very heavy Doctrine based project. I ran into a at first glance weird error. Yesterday i created a class structure. All good and well. The class i was working on was called <em>Shows</em>. But it represented a single <em>Show</em> entity and therefore should have been called <strong>Show</strong>. So i decided to do a rename action. Pretty complex because of different dependencies. But after a few tries i got it right. Except Doctrine was failing with a syntax error. After a code inspection i still couldn&#8217;t spot the issue. The only thing i didn&#8217;t do yet was output the query and run it from a shell. And this failed with the same syntax error message. Damn!</p>
<blockquote><p>INNER JOIN show s ON &#8230;</p></blockquote>
<p>Checked the whole query. Still couldn&#8217;t spot the issue. Then for some weird reason i decided to escape the table name with <a href="http://en.wikipedia.org/wiki/Grave_accent">backticks</a> <strong>`Show`</strong>. Everything worked again. Wow! So Doctrine doesn&#8217;t escape table names. But why did it fail in the first place? By now i had the feeling i was using a reserved keyword. And a check <a href="http://dev.mysql.com/doc/mysqld-version-reference/en/mysqld-version-reference-reservedwords-5-6.html">confirmed</a> this. An error would have been helpful here. I had a bit of luck though. As it turned out the table should have been named different anyway. I made a small workaround for it in my code. But decided that was not the way to go  So the lesson of the day for me was don&#8217;t use reserved words for class / table names. A good thread on the issue can be found <a href="http://www.doctrine-project.org/jira/browse/DBAL-40">here</a>.</p>
<p><strong>APC object corruption</strong></p>
<p>The second issue to bite my ass was a nice one as well. And this time no indication of an error at all. While working on the same classes discusses shortly above. I renamed the class names and the file names on disk. And after a page reload in the browser. The framework was complaining it couldn&#8217;t load the changed class. I checked the class and file names and all were correct. After toying with it for 20 minutes i decided to ask my colleague. And he suggested to restart Apache. for the second time today i was stumped. Everything worked again. Turns out that APC couldn&#8217;t find the already in memory loaded class. After renaming the corresponding filename (seems logical now that i think of it). A restart of Apache flushed the APC cache and therefore the issue. This sounds like a bug though. And requires some further inspection or a bug report. We will see.</p>
<p><strong>PHP Fatal error</strong></p>
<p>Last week while setting up <a href="https://github.com/sebastianbergmann/phpunit/">PHPUnit</a> i ran into a weird issue while testing PHPUnit from a shell on my local desktop. The whole test suite would run from start to end. But at the end would display the following not so descriptive error message.</p>
<blockquote><p>PHP Fatal error:  Exception thrown without a stack frame in Unknown on line 0 </p></blockquote>
<p>This kept me busy for some hours. This happened somewhere in a large framework. And there was no clear sign of what was causing the issue. Some <a href="http://www.google.com/search?client=ubuntu&#038;channel=fs&#038;q=Exception+thrown+without+a+stack+frame+in+Unknown+on+line+0&#038;ie=utf-8&#038;oe=utf-8">googling</a> did reveal some cases in which this error may occur.</p>
<blockquote><ul>
<ul>There was an exception while handling an exception</ul>
<ul>There was an exception while running a destructor</ul>
<ul>There was an exception while closing the session</ul>
<ul>There was an exception while running a shutdown function</ul>
<ul>There was an exception while running a autoload function</ul>
</ul>
</blockquote>
<p>The issue in my case was the fact that the configuration file wasn&#8217;t loaded yet. And therefore the log file location was not set correctly. Logging in this framework is done in a plugin system which is pretty cool. We can basically assign plugins for certain log levels (and more). This was the FileLogger. This all still does not explain why it failed with this particular error message. But a bit of digging in the Log/Plugin system revealed the issue. </p>
<pre name="code" class="php">
register_shutdown_function(array(__CLASS__, 'Shutdown'));
</pre>
<p>Message are stored in a queue and written to file in a register shutdown function. Which was failing because the logfile location was not set correctly. This was causing an exception to be thrown inside the registered shutdown function. And therefore triggering this horrible error message. Be careful with <a href="http://nl.php.net/manual/en/function.register-shutdown-function.php">register_shutdown</a> functions.</p>
]]></content:encoded>
			<wfw:commentRss>http://lenss.nl/2011/06/reserved-keywords_corrupt-cache-and-stack-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing Mysql for MariaDB</title>
		<link>http://lenss.nl/2010/11/changing-mysql-for-mariadb/</link>
		<comments>http://lenss.nl/2010/11/changing-mysql-for-mariadb/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 05:19:45 +0000</pubDate>
		<dc:creator>Thijs Lensselink</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[InnoDB]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Percona]]></category>
		<category><![CDATA[XtraDB]]></category>

		<guid isPermaLink="false">http://lenss.nl/?p=908</guid>
		<description><![CDATA[Ok so i quit smoking 4 days ago now. And i am having some serious sleep issues at the moment. i have been up half the night sitting here staring at my screen. But nothing really productive comes out of my hands. So while doing a bit of browsing i hit the MariaDB page. And [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mariadb.org/" target="_blank"><img src="http://lenss.nl/wp-content/uploads/2010/11/mariadb.png" alt="" style="float:left;" title="mariadb" width="209" height="68" class="aligncenter size-full wp-image-917" border="0" /></a>Ok so i quit smoking 4 days ago now. And i am having some serious sleep issues at the moment. i have been up half the night sitting here staring at my screen. But nothing really productive comes out of my hands. So while doing a bit of browsing i hit the <a href="http://mariadb.org/">MariaDB</a> page. And has been while since i was here. The last time there was no real downloadable package yet. But this has all changed.</p>
<p>So that made me think about last week. I think it was on Friday. but there was some up stirring about <a href="http://www.mysql.com/products/">MySQL</a> (Oracle) asking a license fee for using the <a href="http://www.innodb.com/">InnoDB</a> storage engine. And quite a big fee if you ask me :) This really sucks. I love the InnoDB engine. What would we do without it&#8230;? That&#8217;s where MariaDB comes into play. It uses the <a href="https://launchpad.net/percona-xtradb">XtraDB</a> storage engine which is basically InnoDB on steroids. XtraDB is developed and maintained by <a href="http://www.percona.com/">Percona</a>. Some really smart MySQL guys :) At the moment it&#8217;s under the <a href="http://www.gnu.org/licenses/gpl.html">GPL</a> license. And i can only hope it will be freely available for a long time.</p>
<p>So i went ahead and took a look at how hard / easy it is to change MySQL for MariaDB. I tried this on a Debian Lenny machine which made the process quite easy i have to mention.</p>
<p>First get the PGP key from the server and import the repository locations. After that hit update to refresh the local database.</p>
<blockquote><p>$ wget -O- http://ourdelta.org/deb/ourdelta.gpg | sudo apt-key add -<br />
$ cd /etc/apt/sources.list.d; wget http://mirror.ourdelta.org/deb/sources/lenny-mariadb-ourdelta.list<br />
$ aptitude update</p></blockquote>
<p>As we can see we have some new packages</p>
<p>Get:8 http://mirror.ourdelta.org lenny/mariadb-ourdelta Sources [864B]<br />
Current status: 3 updates [+3], 232 new [+11].</p>
<p>Searching for &#8216;mariadb&#8217; gives the following packages</p>
<blockquote><p>$ aptitude search mariadb</p>
<p>p   libmariadbclient-dev              &#8211; MariaDB database development files<br />
p   libmariadbclient16                &#8211; MariaDB database client library<br />
v   libmariadbclient16-dev            &#8211; MariaDB embedded database development files<br />
p   mariadb-client                    &#8211; MariaDB database client (metapackage depending on the latest version)<br />
p   mariadb-client-5.1                &#8211; MariaDB database client binaries<br />
p   mariadb-client-core-5.1           &#8211; MariaDB database core client binaries<br />
v   mariadb-common<br />
p   mariadb-server                    &#8211; MariaDB database server (metapackage depending on the latest version)<br />
p   mariadb-server-5.1                &#8211; MariaDB database server binaries<br />
p   mariadb-test                      &#8211; MariaDB database regression test suite (metapackage depending on the latest version)<br />
p   mariadb-test-5.1                  &#8211; MariaDB database regression test suite</p></blockquote>
<p>So let&#8217;s go ahead and install the server and see what happens.</p>
<blockquote><p>$ aptitude install mariadb-server</p></blockquote>
<p>Some mysql files get removed the mysql-common package gets updated and the new MariaDB packages get installed.</p>
<blockquote><p>
<strong>The following NEW packages will be installed:</strong><br />
  libmariadbclient16{a}<br />
  libmysqlclient16{a}<br />
  mariadb-client-5.1{a}<br />
  mariadb-client-core-5.1{a}<br />
  mariadb-server<br />
  mariadb-server-5.1{a}
</p></blockquote>
<blockquote><p>
<strong>The following packages will be REMOVED:</strong><br />
  mysql-client-5.0{a}<br />
  mysql-server{a}<br />
  mysql-server-5.0{a}
</p></blockquote>
<blockquote><p>
<strong>The following packages will be upgraded:</strong><br />
  mysql-common
</p></blockquote>
<p>Now that&#8217;s done. Let&#8217;s check MySQL&#8217;s output</p>
<blockquote><p>$ mysql &#8211;version<br />
mysql  Ver 14.16 Distrib 5.1.49-MariaDB, for debian-linux-gnu (i486) using readline 5.1</p></blockquote>
<p>Just as i expected. Nothing really changed here. The whole MySQL API is till available for calling. Only the base system is now replaced by MariaDB. So let&#8217;s see what storage engines are available.</p>
<blockquote><p>
$ mysql -uroot -p</p>
<p>MariaDB [(none)]> show engines;<br />
<strong>BLACKHOLE</strong>     <em>/dev/null storage engine (anything you write to it disappears) </em><br />
<strong>MRG_MYISAM</strong>  <em>Collection of identical MyISAM tables </em><br />
<strong>FEDERATED</strong>     <em>FederatedX pluggable storage engine  </em><br />
<strong>MARIA</strong>            <em>Crash-safe tables with MyISAM heritage </em><br />
<strong>CSV </strong>              <em> CSV storage engine </em><br />
<strong>MEMORY </strong>        <em>Hash based, stored in memory, useful for temporary tables  </em><br />
<strong>ARCHIVE </strong>        <em>Archive storage engine  </em><br />
<strong>MyISAM</strong>          <em>Default engine as of MySQL 3.23 with great performance  </em><br />
<strong>InnoDB</strong>           <em>Supports transactions, row-level locking, and foreign keys </em><br />
<strong>PBXT</strong>              <em>High performance, multi-versioning transactional engine</em></p></blockquote>
<p>And because the MySQL APi is still in tact. From PHP we can keep using the mysql and mysqli interfaces. This is great stuff!</p>
]]></content:encoded>
			<wfw:commentRss>http://lenss.nl/2010/11/changing-mysql-for-mariadb/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Zend_Db connects to wrong mysql socket</title>
		<link>http://lenss.nl/2009/06/zend_db-connects-to-wrong-mysql-socket/</link>
		<comments>http://lenss.nl/2009/06/zend_db-connects-to-wrong-mysql-socket/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 09:12:19 +0000</pubDate>
		<dc:creator>Thijs Lensselink</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[PDO]]></category>
		<category><![CDATA[Socket]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[Zend_Db]]></category>

		<guid isPermaLink="false">http://lenss.nl/?p=484</guid>
		<description><![CDATA[While working on a small project today. I was confronted with a Zend_Db exception that i have seen before. But it still had me searching for a solution. So this time i will write it done for future reference. I&#8217;m working on a small ZF project which uses the MVC structure. And in the Initializer [...]]]></description>
			<content:encoded><![CDATA[<p>While working on a small project today. I was confronted with a Zend_Db exception that i have seen before. But it still had me searching for a solution. So this time i will write it done for future reference.</p>
<p>I&#8217;m working on a small ZF project which uses the MVC structure. And in the Initializer the database connection is setup like this:</p>
<pre name="code" class="php">
public function initDb()
    {
    	$pdoParams = array(
            PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true
        );

        $params = array(
            'host'     => 'localhost',
            'username' => '***********',
            'password' => '***********',
            'dbname'   => '***********',
            'driver_options' => $pdoParams,
        );

        $db = Zend_Db::factory('Pdo_Mysql', $params);
        Zend_Db_Table_Abstract::setDefaultAdapter($db);
        Zend_Registry::set('DB', $db);
    }
</pre>
<p>So when i first instantiated a connection to the database i was presented a nice error on screen. The stack trace is quiet long. But this is the most relevant part.</p>
<blockquote><p>exception &#8216;Zend_Db_Adapter_Exception&#8217; with message &#8216;SQLSTATE[HY000] [2002] Can&#8217;t connect to local MySQL server through socket &#8216;/tmp/mysql.sock&#8217; (2)&#8217;</p></blockquote>
<p>The php bug tracker revealed a nice <a href="http://bugs.php.net/bug.php?id=34988">solution</a>. For some strange reason the PDO extension can&#8217;t determine the correct socket while the mysql, mysqli extensions can. This is easily solved in the bootstrap of the project by adding an extra parameter to the config array passed when calling Zend_Db::factory();</p>
<pre name="code" class="php">
$params = array(
            'host'     => 'localhost',
            'username' => '***********',
            'password' => '***********',
            'dbname'   => '***********',
            'driver_options' => $pdoParams,
            'unix_socket' => '/var/run/mysqld/mysqld.sock'
        );

        $db = Zend_Db::factory('Pdo_Mysql', $params);
        Zend_Db_Table_Abstract::setDefaultAdapter($db);
        Zend_Registry::set('DB', $db);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://lenss.nl/2009/06/zend_db-connects-to-wrong-mysql-socket/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Postfix with Dovecot results in MySQL Access denied</title>
		<link>http://lenss.nl/2009/06/postfix_dovecot_mysql_access_denied/</link>
		<comments>http://lenss.nl/2009/06/postfix_dovecot_mysql_access_denied/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 16:57:52 +0000</pubDate>
		<dc:creator>Thijs Lensselink</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Dovecot]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://lenss.nl/?p=465</guid>
		<description><![CDATA[While installing a new mail server i ran into a problem with SMTP authentication. The mail server in question is postfix installed on a Debian lenny box. The backend for postfix is MySQL. And because SASL is always a pain to configure i used dovecot to do the SMTP authentication with the MySQL backend. This [...]]]></description>
			<content:encoded><![CDATA[<p>While installing a new mail server i ran into a problem with SMTP authentication. The mail server in question is postfix installed on a Debian lenny box. The backend for postfix is MySQL. And because <a href="http://asg.web.cmu.edu/sasl/">SASL</a> is always a pain to configure i used <a href="http://www.dovecot.org/">dovecot</a> to do the SMTP authentication with the MySQL backend. This however resulted in the following error </p>
<blockquote><p>Jun 21 17:43:02 ims1 dovecot: auth-worker(default): mysql: Connect failed to localhost (mail): Access denied for user &#8216;mail_admin&#8217;@'localhost&#8217; (using password: YES) &#8211; waiting for 1 seconds before retry</p></blockquote>
<p>It took me a while to figure this out. The settings in &#8216;dovecot-sql.conf&#8217; were correct. Logging in with the same data from a shell went without a problem. I remembered i had this problem some years ago. With a <a href="http://www.inter7.com/index.php?page=vpopmail">vpopmail</a> setup. The problem then was the encryption algorithm used by MySQL. So i tried to use the older encryption algorithm.</p>
<blockquote><p>SET PASSWORD FOR &#8216;user&#8217;@'localhost&#8217; = OLD_PASSWORD(&#8216;password&#8217;);</p></blockquote>
<p>After a restart everything was fine. </p>
<blockquote><p>Jun 21 18:41:03 ims1 dovecot: auth-worker(default): mysql: Connected to localhost (mail)</p></blockquote>
<p>Like i said it took me a while to figure out. So maybe i can safe somebody some time.</p>
]]></content:encoded>
			<wfw:commentRss>http://lenss.nl/2009/06/postfix_dovecot_mysql_access_denied/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Help a MySQL support engineer.</title>
		<link>http://lenss.nl/2008/07/help-a-mysql-support-engineer/</link>
		<comments>http://lenss.nl/2008/07/help-a-mysql-support-engineer/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 10:47:50 +0000</pubDate>
		<dc:creator>Thijs Lensselink</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[MySql]]></category>

		<guid isPermaLink="false">http://we.designandco.de/?p=20</guid>
		<description><![CDATA[Today on planet-php.net there are some posts [1] [2] about Andrii Nikitin a MySQL support engineer based in Ukraine. Andrii&#8217;s (2,5 year old) son Ivan is in need of a bone marrow transplant. The cost for this operation is somewhere bewteen $150.000 and $250.000. Which is a lot of money. So he asked the MySQL [...]]]></description>
			<content:encoded><![CDATA[<p>Today on <a href="http://www.planet-php.net/" target="_blank">planet-php.net</a> there are some posts [<a href="http://blogs.linux.ie/kenguest/2008/07/14/andrii-nikitin%e2%80%99s-son-needs-help-asap/" target="_blank">1</a>] [<a href="http://www.phpcult.com/blog/andrii-nikitis-son-needs-our-help/" target="_blank">2</a>] about <a href="http://www.mysql.com/about/help-ivan.html" target="_blank">Andrii Nikitin</a> a MySQL support engineer based in Ukraine. Andrii&#8217;s (2,5 year old) son Ivan is in need of a bone marrow transplant. The cost for this operation is somewhere bewteen $150.000 and $250.000. Which is a lot of money. So he asked the MySQL community for help. Although i don&#8217;t know the guy. I do use MySQL regularly. And i feel for him and his family. So decided to add a donation. I&#8217;m in no way rich and just bought a new house. But i think every body should pitch in and help out this guy. And offer his son a fair chance at life.</p>
<p><strong>Paypal:</strong><br />
<a href="http://tinyurl.com/6rxjsz">http://tinyurl.com/6rxjsz </a><br />
Or<br />
<strong>by check payable to: </strong></p>
<p>MySQL, Inc.<br />
Mail to: MySQL, Inc.<br />
Attn: Linda Dong<br />
20450 Stevens Creek Blvd #350<br />
Cupertino, CA 95014</p>
<p>or<br />
<strong>US wire transfer:</strong></p>
<p>MySQL Inc: 7396643001<br />
SWIFT: NDEAUS3N</p>
<p>or<br />
<strong>International wire transfer in any currency:</strong><br />
Bank: Nordea Bank<br />
Bank address: Stockholm, Sweden<br />
Bank account: 3259 17 03868<br />
IBAN: SE27 3000 0000 0325 9170 3868<br />
SWIFT: NDEASESS</p>
]]></content:encoded>
			<wfw:commentRss>http://lenss.nl/2008/07/help-a-mysql-support-engineer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 5.2.6-Win32 unable to load mysql &amp; pgsql extension</title>
		<link>http://lenss.nl/2008/06/php-526-win32-wtf-happened-to-the-mysql-extension/</link>
		<comments>http://lenss.nl/2008/06/php-526-win32-wtf-happened-to-the-mysql-extension/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 12:35:38 +0000</pubDate>
		<dc:creator>Thijs Lensselink</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[Pgsql]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://we.designandco.de/?p=12</guid>
		<description><![CDATA[Normally i have no problems installing PHP. So when i decided to upgrade 5.2.5 to 5.2.6 on my windows dev box. I was surprised to see that php_mysql.dll and php_pgsql.dll were not loading after a clean install. No matter what i tried. I kept getting the &#8220;PHP Startup: Unable to load dynamic library&#8221; error. Some [...]]]></description>
			<content:encoded><![CDATA[<p>Normally i have no problems installing PHP. So when i decided to upgrade 5.2.5 to 5.2.6 on my windows dev box. I was surprised to see that php_mysql.dll and php_pgsql.dll were not loading after a clean install. No matter what i tried. I kept getting the &#8220;PHP Startup: Unable to load dynamic library&#8221; error.</p>
<p>Some years ago this problem was obvious. The problem was always solved by copying the libmysql.dll to windows/system32. But this changed. For the last year i never had to copy this file. So i couldn&#8217;t really believe this was the problem. But after trying for some hours. I gave up. Copied the libmysql.dll file to windows/system32. And voila&#8230;. the mysql extension now loads. But i still have no solution for the pgsql extension. Which i really need by the way. WTF happened here? How is it possible that two of the most used extensions do not load after a clean install?</p>
<p>UPDATE*</p>
<p>The postgres problem is solvable by installing the postgres server. And adding the PostgreSQL\8.3\bin to the PATH variable. Weird stuff&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://lenss.nl/2008/06/php-526-win32-wtf-happened-to-the-mysql-extension/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
