Jump to content

Why can't it load php_mysql.dll?


Recommended Posts

PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_mysql.dll' - The specified procedure could not be found.

 

Why an I getting this error if I have the file in the right spot.  I looked through the documentation and I checked that I have libmySQL.dll in my path.

 

Windows XP

PHP 5.2.5

MySQL 5.0.51a

Apache 2.0.59

 

(Note: I'm upgrading my system.  I uninstalled PHP 4 and MySQL 3)

 

File "httpd.conf" has:

PHPIniDir "C:/Program Files/PHP/"

LoadModule php5_module "C:/Program Files/PHP/php5apache2.dll"

 

File "php.ini" has:

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

extension=php_mysql.dll

 

Never had problems like this before.  Totally confused.

Thanks for help.

~Ross

Link to comment
https://forums.phpfreaks.com/topic/91203-why-cant-it-load-php_mysqldll/
Share on other sites

I would recommend you to add PHP to the PATH Environment Variable

 

Once added to the PATH PHP should be able to load the mysql extension. The mysql extensions requires an external library called libmysql.dll (located in the root of PHPs folder).

Search your computer for any files called libmysql.dll

 

Rename/remove any found files. Making sure you keep libmysql.dll in PHP and MySQL's folders. As you had php3 installed previously there maybe old php extension left behind by uninstallation process.

I uninstalled PHP, reset Apache back to defaults.  Have MySQL working from the command line.  Installed PHP.  Configured Apache and PHP to get it running.

 

Tried PHP from the command line and got this error:

Error in my_thread_global_end(): 1 threads didn't exit

Found this article and replaced my libmysql.dll file with 5.2.1

https://support.kayako.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=236

 

Restarted Apache and PHP now works with MySQL!!!

I didn't get the error yesterday.  So maybe the reinstall cleaned something up.  Still had to go back to 5.2.1 for the libmysql.dll...

 

Thanks for your replies.

~Ross

 

 

 

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.