To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Upgrading PHP

Upgrading PHP Issues concerning PHP version upgrades and future releases

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-18-2004, 10:21 AM   #1
fredouille
Senior Member
 
Join Date: Dec 2002
Posts: 129
mysql support on php5...can't work

Hi all

testing php5 on apache 2 (windows)

impossible to load php_mysql.dll...

any idea ?


bye
fredouille is offline   Reply With Quote
Old 07-18-2004, 10:52 AM   #2
bubblenut
Copyleft Commie
 
bubblenut's Avatar
 
Join Date: Oct 2003
Location: London
Posts: 2,370
did you copy the correct .dll file accross? There's one called php_mysql.dll and one called php_mysqli.dll, you need the first one. This caught me out at first
__________________
If at first it doesn't work, slap it with a dirty hack.

Moral of the week: Never let a moral of the week go on for more than a week, it's even sillier than feeding the admins.

My Blog
bubblenut is offline   Reply With Quote
Old 07-18-2004, 11:18 AM   #3
fredouille
Senior Member
 
Join Date: Dec 2002
Posts: 129
Quote:
Originally posted by bubblenut
did you copy the correct .dll file accross? There's one called php_mysql.dll and one called php_mysqli.dll, you need the first one. This caught me out at first

yes they are in /ext dir of php5
fredouille is offline   Reply With Quote
Old 07-18-2004, 11:23 AM   #4
Shrike
Not Yet Involved
 
Shrike's Avatar
 
Join Date: Oct 2003
Location: The Eighth, Sursamen
Posts: 2,254
They should be in %WINDIR% or %WINDIR%/system32, I think.
__________________
The Hundredth Idiot

Last edited by Shrike; 07-18-2004 at 11:25 AM.
Shrike is offline   Reply With Quote
Old 07-18-2004, 11:34 AM   #5
fredouille
Senior Member
 
Join Date: Dec 2002
Posts: 129
Quote:
Originally posted by Shrike
They should be in %WINDIR% or %WINDIR%/system32, I think.
nope..juste the php5ts.dll..
fredouille is offline   Reply With Quote
Old 07-18-2004, 11:38 AM   #6
bubblenut
Copyleft Commie
 
bubblenut's Avatar
 
Join Date: Oct 2003
Location: London
Posts: 2,370
No, you need to copy the dlls there as well, or to the directory where the php executable is (the directory in which you installed php5) although I think the second option only works if you're running php5 as a cgi, not sure though, you'll have to test.

Quote:
Some extra DLLs are required for some PHP extensions. Please copy the
bundled dlls from the 'dlls/' directory in distribution package to your
windows/system (Win9.x) or winnt/system32 (WinNT, Win2000, XP) directory.
If you already have these DLLs installed on your system,
overwrite them only if something is not working correctly.
Before overwriting them, it is a good idea to backup them or move them to
another folder - just in case something goes wrong.
__________________
If at first it doesn't work, slap it with a dirty hack.

Moral of the week: Never let a moral of the week go on for more than a week, it's even sillier than feeding the admins.

My Blog
bubblenut is offline   Reply With Quote
Old 07-18-2004, 11:55 AM   #7
fredouille
Senior Member
 
Join Date: Dec 2002
Posts: 129
Quote:
Originally posted by bubblenut
No, you need to copy the dlls there as well, or to the directory where the php executable is (the directory in which you installed php5) although I think the second option only works if you're running php5 as a cgi, not sure though, you'll have to test.
Please copy the
bundled dlls from the 'dlls/'


-> there is no dlls/ dir !!! this is the pb.. and without myql lib it works..I can load curl lib, gd...

bye
fredouille is offline   Reply With Quote
Old 07-18-2004, 12:19 PM   #8
bubblenut
Copyleft Commie
 
bubblenut's Avatar
 
Join Date: Oct 2003
Location: London
Posts: 2,370
Just try copying them into your windows system folder. What's the worst that could happen (don't let the Dr Pepper advert's affect your better judgement here )
__________________
If at first it doesn't work, slap it with a dirty hack.

Moral of the week: Never let a moral of the week go on for more than a week, it's even sillier than feeding the admins.

My Blog
bubblenut is offline   Reply With Quote
Old 07-19-2004, 02:56 PM   #9
linekin
Junior Member
 
Join Date: Jul 2004
Posts: 1
Don't forget libmysql.dll,
copy it to %WINDIR%/system32(WinXP).
linekin is offline   Reply With Quote
Old 07-19-2004, 05:15 PM   #10
devinemke
chocoholic (with alcohol)
 
devinemke's Avatar
 
Join Date: Aug 2002
Location: NYC
Posts: 5,153
no need to copy any files to C:\Windows. all i had to do was put the following in my php.ini:
Code:
extension_dir = "C:\PHP\ext\"
and then uncomment this line:
Code:
extension=php_mysql.dll
devinemke is offline   Reply With Quote
Old 08-02-2004, 05:59 AM   #11
pfchin
Junior Member
 
Join Date: Feb 2002
Posts: 22
need help

Hi all,

I did watever should be done, but when i restart my apache2 it prompt an warning box said "PHP startup: Unable to load dynamic library 'D:\php5\ext\php_mysql.dll' - The specified module could not be found". Does anyone know wat is the problem???


Thanks & Regards
pfchin is offline   Reply With Quote
Old 08-02-2004, 06:10 AM   #12
bubblenut
Copyleft Commie
 
bubblenut's Avatar
 
Join Date: Oct 2003
Location: London
Posts: 2,370
Have you checked in the folder D:\php5\ext to see if the file php_mysql.dll is there?
__________________
If at first it doesn't work, slap it with a dirty hack.

Moral of the week: Never let a moral of the week go on for more than a week, it's even sillier than feeding the admins.

My Blog
bubblenut is offline   Reply With Quote
Old 08-02-2004, 07:14 AM   #13
pfchin
Junior Member
 
Join Date: Feb 2002
Posts: 22
need help

yeah, i m very sure it is all there, if i copy the libmysql.dll into %system% it will prompt a warning says cannot initialize API bla bla bla...


Thanks & Regards
pfchin is offline   Reply With Quote
Old 08-06-2004, 04:13 PM   #14
nuying117
Junior Member
 
nuying117's Avatar
 
Join Date: Feb 2004
Location: Hangzhou,China
Posts: 22
i meet the same problem,but i have sloved that;

first , my php is installed in the directory : D:\php5\

open the php.ini and set extensions_dir = D:/php5/ext

then ,in the directory D:\php5\ ,there is a dll file called libmysql.dll,copy that file to your system directory,my OS is win2000 and i copy that file to c:\winnt\system32

restart ur apache ,it works~
__________________
http://www.x117.net
nuying117 is offline   Reply With Quote
Old 08-07-2004, 12:05 AM   #15
pfchin
Junior Member
 
Join Date: Feb 2002
Posts: 22
:)

Hi nuying117 thanks for ur reply, i solved the problem already... thanks alots
pfchin is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 11:59 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.