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

Posted on 2006-03-26
Last Modified: 2013-12-12
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?
Question by:huji
    1 Comment
    LVL 15

    Accepted 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

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    The viewer will learn how to dynamically set the form action using jQuery.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now