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
Share on other sites

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

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.