Ross4PHP Posted February 15, 2008 Share Posted February 15, 2008 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 Quote Link to comment Share on other sites More sharing options...
timmah1 Posted February 15, 2008 Share Posted February 15, 2008 Wouldn't this be your problem extension_dir ="C:\Program Files\PHP\ext" Change to this extension_dir ="C:/Program Files/PHP/ext" Quote Link to comment Share on other sites More sharing options...
Ross4PHP Posted February 15, 2008 Author Share Posted February 15, 2008 I did try that, and no luck... Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 15, 2008 Share Posted February 15, 2008 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). Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted February 15, 2008 Share Posted February 15, 2008 And then you'll have the benefit of being able to run PHP from the command line by just typing php. Quote Link to comment Share on other sites More sharing options...
Ross4PHP Posted February 16, 2008 Author Share Posted February 16, 2008 Yep. Both C:\Program Files\PHP\ and C:\Program Files\PHP\php.exe are in my path. No luck... I also have the MySQL dir in my path. libmySQL.dll is located in both directories... What else could I be missing? Thanks for your help. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 16, 2008 Share Posted February 16, 2008 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. Quote Link to comment Share on other sites More sharing options...
Ross4PHP Posted February 16, 2008 Author Share Posted February 16, 2008 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.