unable to load dynamic library C:\php5\php_mysql.dll

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
clem_c_rock
Forum Commoner
Posts: 46
Joined: Mon Jun 07, 2004 9:18 am

unable to load dynamic library C:\php5\php_mysql.dll

Post by clem_c_rock »

Hello,

I have screwed up something on my php.ini file on a windows server and now I am getting this error: "unable to load dynamic library C:\php5\php_mysql.dll". Now, my PHP installation actually resides here: C:\PHP\ so, obviously, it's pointing to the wrong address.

Where do I change this so the program is looking in the right directory?

Thanks,
Clem C
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

Open your php.ini file in the PHP directory and change the extension_dir directive.
You'll need to enable the mb_string extension as well.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

It sounds like you're loading an extension. Check your extension folder information in php.ini and make sure your extensions are in that folder.
clem_c_rock
Forum Commoner
Posts: 46
Joined: Mon Jun 07, 2004 9:18 am

Post by clem_c_rock »

Well - looked in the php.ini file and it didn't even have the line "extension_dir" in it so I added it, checked to see if the php_mysql.dll was actually in the C:\PHP\extensions\ directory (which it was) and now I get the general error of: "Cannot load mysql extension".

I also didn't see any line w/ the mb_string extension in it anywhere?


Any ideas as to what to do now?
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post by dibyendrah »

I think extension_dir will always be there in php.ini commented.
clem_c_rock
Forum Commoner
Posts: 46
Joined: Mon Jun 07, 2004 9:18 am

Post by clem_c_rock »

Well something worked since I added that line but now I have another error which is: "Cannot load mysql extension" when I go to phpMyAdmin.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

And the extension files are there and named appropriately using the correct cases?
Post Reply