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

Unable to load dynamic library '...\php_mysql.dll'

I installed MySQL yesterday, and it used to work correctly. I restarted the machine today, and now it drops this error message on every PHP page:

HP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\Includes\php_mysql.dll' - The specified module could not be found. in Unknown on line 0

Please notice that MySQL server is running and I can access the database using other software. Also, the php_mysql.dll is in its place (C:\Program Files\PHP\Includes\php_mysql.dll) and IIS user has read permission over it.

Relevant parts of Php.ini file:

extension_dir = "C:\Program Files\PHP\Includes"

Other dll's placed in the same directory are being loaded correctly.

Any idea?
1 Solution
I've seen this problem occur before when it's not actually php_mysql.dll that is having the issues.  Search for libmysql.dll (from your newest install of MySQL) and try putting it in your windows/system32 folder.

Hope that helps!

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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