• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 447
  • Last Modified:

Restarting IIS: Unable to load dynamic library 'C:\PHP\ext\php_mysql.dll'

Get the following message when restarting IIS:
PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mysql.dll' - The specified procedure could not be found.

Am using MySQL Server 4.1 and PHP 5.0.4

How do I fix this problem?

Thanks
0
lydx137
Asked:
lydx137
  • 2
1 Solution
 
ldbkuttyCommented:
PHP5 (unlike PHP4) does not have MySql extension enabled by default in windows. Edit php.ini file and uncomment the "extension" line by removing the semi-colon. So it should look like:

extension = php_mysql.dll

Make sure the .dll file exists in the defined "extension_dir" line of your php.ini. If you dont find the file, get it from the zipped version of PHP5 (I think the file is not available in the installer version).
0
 
ldbkuttyCommented:
Make sure you've restarted IIS after editing php.ini.

If that doesn't works for you, copy the libmySQL.dll file from mysql\bin directory into windows\system and windows\system32 directories.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now