Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/38272-php-fails-to-load-mysql/
Share on other sites

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.

  • 2 weeks later...

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?

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.