Please, would you like tell me where to find the file php_mysql.dll, I got this error :
warning :
Unable to load dynamic library 'd:\php_mysql.dll'
The specified module could not be found.

Thanks
Sufi

    Well if you go and download php 4.0 or higher then you won't need it since it's included in the build already 🙂

    Otherwise if your stuck using ver3 then you can just go download the version 3 binaries from the php.net download page, it includes that dll in the archive.

      4 years later

      if it's included in the build then why is Apache looking for it?!!

      This is driving me round the bend :xbones:

        Try copying libmysql.dll in php root folder to system32 folder in windows

        php_mysql.dll is dependent on libmysql.dll 🙂

          That's not working that file is already in Windows32 folder!

          Apache tries to locate the php_mysql.dll file and cannot find it. It does not exist because both ZIP and EXE installs of MySQL do not come with it.

          How will php_mysql.dll have anything to do with that other lib file they aren't connected through the config files or anything.

          This is ridiculous!!!! Programs like these shouldn't have these stupid STUPID problems!!!!!!

            I just checked and PHP 5.0.1 (windows zip) does have php_mysql.dll in there.

            so download php (PHP 5.0.1 zip package)
            http://www.php.net/downloads.php.

            In the ext folder there is mysql "php_mysql.dll" file. Copy it into your ("php install directory"/ext) folder.

            Make sure that php extention directroy is setup properly in php.ini file. Your error was

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

            Even if there is no file, the proper location that should be accessed is ("php install directory"/ext);

            So find these lines and edit as follow in "c://winnt/php.ini" file:

            extension_dir = "./ext"

            extension=php_msql.dll

            Hope this might solve the problem.
            goodluck

              10 days later

              I am now getting the following error

              PHP Startup:
              Unable to load dynamic library 'C:\php5\ext\php_mysql.dll
              - a device attached to the system is not functioning.

              I made some changes to the php.ini and Apache config files, including setting the backslash instead of forward slash. The php_mysql.dll and the libmysql (whatever) file is all there it just gives me the above error.

              Ok I know this may have been asked before but Google is useless, the search in thsi forum returns a bunch of topics not aimed at this error message, the manuals of both MySQL and PHP are hard to navigate and the install.txt and readme.txt etc contain no help.

              So here I am, breaking the STFW policy pleading for help 🙁

                a month later

                This won't help but you are not alone.

                It's easier to herd cats than it is to get Apache2/PHP5/MySql to talk to each other.

                I even tried re-compiling PHP5 with the mysql switch. Having spent a day and a half downloading all the missing libraries - it still won't complete the make!

                I've copied the libmysql.dll to just about every folder on my machine and the php_mysql.dll and it makes no difference. It still says it can't find it.

                I agree with you: for "grown-up" software this just shouldn't be this difficult to get running.

                  I uninstalled everything and chose to test scripts on somebody else's server!

                  I volunteered to help work on an unpaid project. Easy work but I also get to have my own 'test site' within the server on his website so I can test my script development... 'domain.com/davy_tests/'

                  muhahahaaa :evilgrin:

                    Write a Reply...