Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

unable to load dynamic library C:\php\ext\php_mysql.dll - procedure

If you get the above error when trying to install/run PHP5 using Apache
and Windows XP, I just thought i would let you know my experience.  It
took me many hours to figure this out, but it was not a problem with the
php_mysql.dll file at all.

It turns out I had an incompatible libmysql.dll file in my
C:\windows\system32 folder.  So, to make it work, i had to copy the
libmysql.dll file given in the PHP distribution into C:\windows\system32.

Well, just wanted to let you know my experience, hopefully this can help
some one.

-d

Report this thread to moderator Post Follow-up to this message
Old Post
Doug
09-08-04 08:55 AM


Re: unable to load dynamic library C:\php\ext\php_mysql.dll - procedure

Andy Hassall wrote:

>
>  Better would be to remove the DLL from the Windows system directory, and
> instead set PATH to include the path to the DLL.
>
>  Dumping DLLs into the Windows system directory tends to lead to this sort
 of
> problem - better to keep the DLLs in user directories rather than dumping 
them
> into the operating system directories.
>


I changed my path.  Unfortunately, it kept picking up the libmysql.dll
from C:\mysql\bin, even though C:\php is first in my path.

-d

Report this thread to moderator Post Follow-up to this message
Old Post
Doug
09-11-04 01:55 AM


Re: unable to load dynamic library C:\php\ext\php_mysql.dll - procedure
yes i had the same problem and the same solution solved it. thank you. apach
e 2.0/php 5/mysql 4.0.21-nt/windows xp sp2

-alex

Report this thread to moderator Post Follow-up to this message
Old Post
arshapro
09-30-04 03:40 PM


Re: unable to load dynamic library C:\php\ext\php_mysql.dll - procedure
Whatismore mySQL won't run if you don't copy this file 'libmysql.dll' bundle
d with PHP5 into your system32 directory. I understood this because I had *n
o* 'libmysql.dll' on this path.
--
Fabrice G. Boyer

Report this thread to moderator Post Follow-up to this message
Old Post
Fabruccio
10-12-04 04:45 AM


Re: Re: unable to load dynamic library C:\php\ext\php_mysql.dll - procedure
Did all that and now I have another error which is: "Cannot load mysql exten
sion" when I go to phpMyAdmin.



quote:
Originally posted by Fabruccio Whatismore mySQL won't run if you don't copy this file 'libmysql.dll' bundle d with PHP5 into your system32 directory. I understood this because I had *n o* 'libmysql.dll' on this path. -- Fabrice G. Boyer

Report this thread to moderator Post Follow-up to this message
Old Post
clem_c_rock
09-05-06 08:47 PM


Re: Re: Re: unable to load dynamic library C:\php\ext\php_mysql.dll - procedure
Ok - got it!!

Actually mysql and PHP were running fine after I changed the extension_dir t
o the correct directory.

The Problem after that was w/ phpMyAdmin and it's configuration.

Here's what I did to fix that:

code:
'host' from localhost to the machine host name 'extension' to 'mysqli' 'user ' to a user who has access to MySQL, i.e. can log onto MySQL on the server ' password' to the password of the user

Report this thread to moderator Post Follow-up to this message
Old Post
clem_c_rock
09-06-06 08:44 PM


Re: unable to load dynamic library C:\php\ext\php_mysql.dll - procedure
quote:
Originally posted by Doug If you get the above error when trying to install/run PHP5 using Apache and Windows XP, I just thought i would let you know my experience. It took me many hours to figure this out, but it was not a problem with the php_mysql.dll file at all. It turns out I had an incompatible libmysql.dll file in my C:\windows\system32 folder. So, to make it work, i had to copy the libmysql.dll file given in the PHP distribution into C:\windows\system32. Well, just wanted to let you know my experience, hopefully this can help some one. -d
Thank you so so very much lol, I was pulling my hair out on this one until I rewad your post. My current libmysql.dll was only 224k big, and the one I use tha t fixed the problem is now 1436 k big lol huge difference.

Report this thread to moderator Post Follow-up to this message
Old Post
dark_dragun
09-15-06 09:01 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Forum Jump:
All times are GMT. The time now is 04:59 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.