PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #16  
Old September 29th, 2004, 05:39 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

Rather than copy the libmysql.dll into your windows folder, it is probably better to follow the recommendations on the php website, and just add C:php to your path variable. Then the libmysql.dll that came with PHP 5.0.x is automatically loaded. Make sure your extension_dir is set correctly in your php.ini file. I explicitly set mine as "c:/php/ext/" rather than the suggested "./ext/". I have loaded PHP 5.0.2 on three different OSs this way, xp-pro, xp-home, and server 2003. I did run into the above problem (Unable to load dynamic library 'c:phpextphp_mysql.dll' - The specified procedure could not be found.') once, but I discovered I had a corrupt php_mysql.dll. Once I fixed that, everything was fine...

Reply With Quote
  #17  
Old October 5th, 2004, 11:11 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

I have the same problem. unable to load extension

Reply With Quote
  #18  
Old October 5th, 2004, 11:24 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

You must install MYSQL 3.23.57 for php5 because Client API version is 3.23.57.

Reply With Quote
  #19  
Old October 19th, 2004, 02:41 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

Man ... you fixed my problem after about an hour of frustration. Thank you!!!!

Reply With Quote
  #20  
Old October 19th, 2004, 12:03 PM
tikime3 tikime3 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Cracow
Posts: 1 tikime3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to tikime3
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

blll... what? But I want to have UTF8 support for my stuff... Whats up? With PHP5 I cannot have it.

(Support for UTF8 in MySql comes with 4.1 version number...) **** "=_)

Reply With Quote
  #21  
Old October 21st, 2004, 10:46 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

check that your extension_dir is correct in the php.ini if you are using php 5.0.2 it should look like this on winXP.

extension_dir = "C:phpext"

Reply With Quote
  #22  
Old October 25th, 2004, 08:24 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

No, this is incorrect -- it is possible to use PHP 5 and MySQL 4.x together without problems. I downloaded the latest version of Apache 2, the latest version of PHP 5, and the latest version of MySQL 4 today (x86 Windows binaries) and set up Apache 2 / PHP as normal.

The problem that you are having is that you are using the LIBMYSQL.DLL library which comes with MySQL, which will not work. You must use the one which comes with PHP 5 (it is in the root directory, by default C:php). If you have added C:php to your path then you should be fine; if you have trouble regardless or if you have not, then copy C:phplibmysql.dll to the 'bin' subdirectory of your Apache 2 installation (Crogram FilesApache GroupApache2binlibmysql.dll by default).

Everything will then work fine.

Reply With Quote
  #23  
Old October 26th, 2004, 09:21 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

I copied the old libmySQL.dll from mySQL 3.x to C:WINDOWSsystem32 and it worked.
Thanks so much for the analysis.

Reply With Quote
  #24  
Old February 25th, 2005, 11:33 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

I've gone through all the messages in this post. I've tried all the solutions, still PHP5 on my machine cannot access MySQL. I've put libmysql.dll into all the directories but still it doesnt work. HELP!!! Im desperate

Reply With Quote
  #25  
Old May 13th, 2005, 06:31 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

Ok I have had this bugger of a problem more then once. From what I've read on different forums PHP5 does not support mySQL.

Ragnarok
You do know that PHP5 doesn't have MySQL installed like PHP4 right?

http://www.daniweb.com/techtalkforums/thread7226.html

HOW TO FIX!

Follow the installation instruction for PHP and mySQL. Now download php 5 http://php.mirrors.ilisys.com.au/get/php-5.0.4Win32.zip/from/a/mirror

Open the zip, do not extract the all the files to your hard drive... extract only the ext fold into C:/php/

Restart your IIS or Apache. Now you can stop pulling ya hair out and live again.

Wasabi
http://www.john-mclellan.com

Reply With Quote
  #26  
Old June 7th, 2005, 08:47 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

Thanks for the tip on copying the file to windows. Thanks a million.

Reply With Quote
  #27  
Old June 12th, 2005, 08:26 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

For people using php5 with mysql 4 or higher, this might help. Thanks to valgevali for the original post which pointed me in the right direction:

Quote:
In short: it seems that php_mysql.dll (php 5) does not work with new versions (4.x and 5.x) of libmysql.dll

At least Visual Studio DLL dependency walker shows that in '5.0.0b4 win32 zip binary' the php_mysql.dll extension supports mysql_create_db() and mysql_drop_db() functions as do the mySQL 3.x client libraries. Fine.
But these 2 functions are dropped in versions 4.x and 5.x of libmySQL.dll. So trying to use newer mysql client libraries with php5 (as suggested) results an error.

I already made a request for php.net to include both php_mysql3.dll and php_mysql45.dll in the package. But it's sure easy to self-recompile the php_mysql.dll without these 2 functions. I'm not much of a compiler-man myself. Has anybody done that already?

Please share the php_mysql.dll (4.x and 5.x) with everybody!!!

thanks in advance
Valgeväli


Following this, I decided to recompile php_mysql.dll with those two commands omitted against the latest mySQL 4 library. This worked beautifully for me. If it helps anyone, here is the file:

ftp://ftp.crystalhome.net/php_mysql.dll

Reply With Quote
  #28  
Old June 15th, 2005, 12:45 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

It's all bull****.
I wasted a week and it still does not work.

i removed all files

put php_mysql.dll into all possible folders- windous etc

put libmysql.dll everywehere.

removed all one by one etc etc.

unqutoed extension=php_mysql.dll, showed extension_dir - all possible wayes - quoted, unquoted, slash, bakslahs, no slash at the end,
low case underline
configured httpd,

put c:php5 and c:phpbin into the PATH

did this, did that, , reloaded every time

probably 500 different variations.

still f... program can not load php_mysql.dll.

I do not know what is this.

System: windows 32, windows XP home edition , PHP5 and mysql 4.02 -

All the stuff was supplied on a CD from the book : PHP, MYSQL and APche all in one.

Still all that crap does not work.

Don't know what to do.

Will probably try to remove everythinh and go with lower verstion of PHP4 and mysql, if can find good one.

For those who jsut unquoted and fixed the problem - they were lucky.



Reply With Quote
  #29  
Old June 16th, 2005, 01:37 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

Make sure you restart the computer each time you try installing or uninstalling PHP5 or mySQL. Otherwise the same error will show even if you have completed the installation correctly. Which in turn will cause you frustration and make you sound like a bit of a wanker!

Good luck!


Reply With Quote
  #30  
Old June 16th, 2005, 09:57 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll

I also encountered similar problems - "End point could not be..." + "Unable to load extphp_mysql.dll" when (re)starting Apache2. (Apache2, Win2k, PHP5, MySQL 4.x)

Tried putting CHP into the path: same errors
Tried copying libmysql.dll into c:WINNT and c:WINNTSystem32: same errors

Turns out that there is a copy of libmysql.dll in the Apache2bin directory - replaced that one with the one included in PHP5, and problem solved.

"Old" libmysql weighs in around 290 KB, "new" version is 1.01MB. Appears Apache looks to it's own bin directories for dll's before searching %path%.

iAn


Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > PHP 5 php_mysql.dll problem width mysql 4.x & 5.0 libmysql.dll


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump