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 “PHP Startup: Unable to load dynamic library” error.
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’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…. 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?
UPDATE*
The postgres problem is solvable by installing the postgres server. And adding the PostgreSQL\8.3\bin to the PATH variable. Weird stuff…



Thijs Lensselink is a PHP developer, consultant and all out open source enthusiast.
He has over 12+ years of experience in building and maintaining web applications mostly
on linux/Unix/BSD platforms. Besides a full time job he does freelance work with his ...
I have the same problem and I had posted it to:
http://bugs.php.net/45512
jianglinchun
14 Jul 08 at 11:31
After fixing my broken install i didn’t think about it anymore. On the php.net site is a post about missing XSL and IMAP extensions. Maybe they missed out on MySQL also.
Thijs Lensselink
14 Jul 08 at 13:28
Very useful information. A lot of thanks for your help
FrantiC
22 Oct 08 at 07:48
emm.. bookmarked
currice
12 Apr 09 at 11:08