Daedelus Posted February 13, 2007 Share Posted February 13, 2007 Hey all, im running PHP 5.2.1 and just installed MySQL 5.0.27, I installed the mysql extension for php, restarted the apache (2.2.4) service and tried to run phpMyAdmin, only to get "Cannot load mysql extension. Please check your PHP configuration". I checked in my php.ini file and removed the comments for the mysql extension, restarted the service, still no luck. Any ideas guys? I'm running this all on Windows XP MCE 05 Quote Link to comment https://forums.phpfreaks.com/topic/38272-php-fails-to-load-mysql/ Share on other sites More sharing options...
Daedelus Posted February 13, 2007 Author Share Posted February 13, 2007 also, just to note, mysql doesnt show up in phpinfo() either, but 2 other extensions I installed, but didnt remove the comment for in php.ini are loaded (mbyte string, sqlite) Quote Link to comment https://forums.phpfreaks.com/topic/38272-php-fails-to-load-mysql/#findComment-183372 Share on other sites More sharing options...
worldworld Posted February 13, 2007 Share Posted February 13, 2007 I think you can get the solution here... Quote Link to comment https://forums.phpfreaks.com/topic/38272-php-fails-to-load-mysql/#findComment-183732 Share on other sites More sharing options...
wildteen88 Posted February 13, 2007 Share Posted February 13, 2007 Hey all, im running PHP 5.2.1 and just installed MySQL 5.0.27, I installed the mysql extension for php, restarted the apache (2.2.4) service and tried to run phpMyAdmin, only to get "Cannot load mysql extension. Please check your PHP configuration". I checked in my php.ini file and removed the comments for the mysql extension, restarted the service, still no luck. Any ideas guys? I'm running this all on Windows XP MCE 05 Just uncommenting the mysql extension in the php.ini doesnt mean the extension will load. You need to also setup the extension_dir directive in the php.ini. This should point to PHP's extension directory (C:/PHP/ext if you installed PHP in C:/PHP). Also copy a file called libmysql.dll to C:/WINDOWS too. Save the php.ini and restart the server. Also this FAQ thread will be able to help you too. Quote Link to comment https://forums.phpfreaks.com/topic/38272-php-fails-to-load-mysql/#findComment-183739 Share on other sites More sharing options...
Evoix_mr2006 Posted February 22, 2007 Share Posted February 22, 2007 I am having the same trouble. Any insight? Here is my test script: www.cicenet.net/php_test.php PHP 5.2.1 MySQL 5.0.27 (I think thats the right numbers, latest stable release) Any help is appreciated. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/38272-php-fails-to-load-mysql/#findComment-191004 Share on other sites More sharing options...
wildteen88 Posted February 22, 2007 Share Posted February 22, 2007 I am having the same trouble. Any insight? Here is my test script: www.cicenet.net/php_test.php PHP 5.2.1 MySQL 5.0.27 (I think thats the right numbers, latest stable release) Any help is appreciated. Thanks The phpinfo you linked to shows MySQL is loaded. So what problem are you having? Quote Link to comment https://forums.phpfreaks.com/topic/38272-php-fails-to-load-mysql/#findComment-191541 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.