Jump to content

PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mysql.d


Recommended Posts

I keep getting the error:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mysql.dll' - The specified module could not be found. in Unknown on line 0

I was experiencing mysql_connect problems so I went to wildteen88's FAQ on how to fix it. It got rid of the "Call to Undefined Function" problem but another one came behind it. Does anyone know where I can get this php_mysql.dll file? Thanks in advance :)!
It comes with PHP. It should be located in the extension folder (ext) when you install PHP. PHP may be finding this module but cant find the libmysql.dll which it needs in able to load the module correctly. libmysql.dll should be located in the root of the PHP folder.

Could you post me information about your PHP setup.
My PHP folder is at c:/php. When I try to look for the ext folder, I can't find it. I remember it but I don't see it anymore. Do you think I should download the folder of all the php files from php.net and put the ext folder in php?
Yeah, redownload PHP (make sure you download the zipped binaries, eg [url=http://www.php.net/get/php-5.2.0-Win32.zip/from/a/mirror]PHP 5.2.0 zip package[/url])

Extract the contents to C:/php overwriting existing files/folders.

Do not move any files/folders from the PHP folder. Keep them where they are.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.