I've got Win2003 w/IIS6, PHP 5 and MySQL installed. I can confirm PHP is installed correctly because I have a testMe.php that runs properly. When I run the Wordpress setup, I get informed that

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

But in my PHP.ini in the DYNAMIC EXTENSIONS section I have

extension=php_mysql.dll
extension=php_mysqli.dll

I verified that mysql.dll and libmysql.dll are both in my PHP directory. I copied my libmysql.dll to the C:\Windows\System32 directory.

When I try to run the initial setup for WordPress, I get this answer. I've Googled setting this up, and everything comes down to the above. I'm missing something, but none of the instructions that I've found online seem to cover whatever that is.

link|improve this question
Sounds like something is not configured properly. Does phpinfo() indicate that the mysql library is actually loaded? What does your testMe.php script do? – tim Apr 15 '10 at 0:21
feedback

migrated from stackoverflow.com Apr 15 '10 at 2:36

This question came from our site for professional and enthusiast programmers.

2 Answers

You should try putting the files in the PHP extension directory, which is usually something like:

c:\Program Files\PHP\ext

The best way to check of course is to do what tim said and look in the phpinfo() results for the extension directory location.

link|improve this answer
Often it is best just to run the installer again and make sure that mysql and mysqli are selected in the section where you can add extensions. – monkee Apr 15 '10 at 3:23
feedback

Create a php info file

<?php phpinfo(); ?>

and then see that file in your server, and see if really that extension is loaded

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.