Jump to content

libmysql.dll in wrong place???


Recommended Posts

I recently installed MySQL 5 and PHP 5 on my laptop so that I can use it as a development machine.  Everything went smoothly (or so I thought) until I checked phpinfo() and saw that the mysql extension didn't load.  GD2 and other extensions loaded fine though!?!?!?!  I eventually narrowed the issue down to the MySQL library (libmysql.dll).  It was initially residing in c:\php (as it should).  When I moved it to c:\windows the mysql extension loaded correctly.

 

This is odd to me because everything else is readable in my c:\php directory (php.ini, \ext, etc.).  While MySQL is now working, I really didn't want to have libmysql.dll (or any other PHP files) outside of the PHP directory.  Anyone have any ideas???

 

These have already been done during the initial install:

 

- Added c:\php to the system path

- Added PHPRC in system variables (value = c:\php)

- Set permissions of the PHP folder (c:\php) as readable for the IIS user

- Set the correct extension directory in php.ini

- Uncommented php_mysql.dll in php.ini

 

Environment:

 

- Windows XP Professional SP2

- IIS 5.1

- MySQL 5.0.41

- PHP 5.2.3

Link to comment
Share on other sites

  • 2 weeks later...

I put this file in the windows/system32 folder.

It took me several hours to do this and I finally got PHP, mysql and IIS6 to act like one big happy family.

 

here are my steps:

http://www.atksolutions.com/articles/install_php_mysql_iis.html

 

 

I was trying to avoid moving any of the files from c:\php to anywhere else in the file system, mainly for upgrade purposes later on...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.