PHP Startup: Unable to load dynamic library 'C:"\php\php_mysql.dll' - The specified module could not be loaded

Posted by Tiny on Super User See other posts from Super User or by Tiny
Published on 2013-05-06T06:50:04Z Indexed on 2014/08/24 4:24 UTC
Read the original article Hit count: 507

Filed under:
|

I'm trying to upgrade php 5.4.14 from php 5.4.3 in wamp server 2.2e.

  • I have downloaded php-5.4.14-Win32-VC9-x86 (thread safe).
  • Extracted it under C:\wamp\bin\php.
  • Copied wampserver.conf from C:\wamp\bin\php\php5.4.3 to C:\wamp\bin\php\php5.4.14.
  • Renamed php.ini-development to phpForApache.ini. -The port number the wamp server has been changed in the http.conf file to 8087 from its default 80.

This is mentioned here though it is about upgrading from php 5.3.5 to php 5.4.0.

After this, Restarting of the wamp server and services all over again has all been done and those two versions appeared in the menu php->versions (which is opened when the icon of the server is clicked).

But when I attempt to enable a library like php_mysql or php_mysqli, a warning message box appears.

PHP Startup: Unable to load dynamic library 'C:"\php\php_mysql.dll' - The specified module could not be loaded.

I have also tried to removing the semicolon before them in the php.ini file but to no avail.

I'm running Microsoft Windows XP Professional Version 2002, service pack 3.

Where might be the problem?


EDIT:

I have changed extension_dir from C:\php to c:\wamp\bin\php\php5.4.14\ext\ in php.ini as the answer below indicates and the library is now loaded correctly but it says,

1045 - Access denied for user 'root'@'localhost' (using password: YES)

though the user name and the password are the same as they are in MySQL in the config.inc.php file under phpmyadmin. I have also tried to restart MySQL56 service from Control Panel->Services(Local) but it keeps giving the same error. Does someone know why this happens?

© Super User or respective owner

Related posts about php

Related posts about wamp