on  
Apache Lounge
Webmasters & Programmers Home

 


Forum Index Downloads Contact
Search Forum Register Log in
 RSS Feed Apache Lounge



Register.com New Year Banners


Keep Server Online

The Apachelounge is not funded by anyone other than me (Steffen).

If you find the Apache Lounge, the downloads and overall help usefull, please express your satisfaction with a donation.

A donation makes a contribution towards the costs, the time and effort that's going in to running this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well.

Available php_mysql(i).dll for PHP 5.2.9+ and MySQL 5.1.30+

 
Post new topic   Reply to topic    Apache Forum Index -> Other Software
View previous topic :: View next topic  
Author Message
Steffen
Moderator


Joined: 14 Oct 2005
Posts: 1193
Location: Hilversum, NL, EU

PostPosted: Sun 03 May '09 15:52    Post subject: Available php_mysql(i).dll for PHP 5.2.9+ and MySQL 5.1.30+ Reply with quote

As follow up from thread at http://www.apachelounge.com/viewtopic.php?t=2772 :

Tom was so kind to build php_mysql.dll and php_mysqli.dll for MySQL 5.1.30+ and PHP 5.2.9+.

Backup and replace the php_mysql.dll and php_mysqli.dll in your PHP \EXT directory with these replacements to use MySQL 5.1.30 (or higher) with PHP 5.2.9 (or higher).

Also replace the libmysql.dll in the PHP dir with the file included in your MySQL 5.1.30+ \lib\opt directory.

Download www.apachelounge.com/download/mods/PHP-5.2.9+_MySQL-5.1.30+.zip

Tom and Steffen
Back to top
View user's profile Visit poster's website
htdavis



Joined: 03 May 2009
Posts: 1
Location: Phoenix, AZ

PostPosted: Sun 03 May '09 16:58    Post subject: Reply with quote

Will these work with the x64 installs?
I just tried it with my test box and and phpinfo() doesn't report that either is available.
Back to top
View user's profile
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 586
Location: Milford, MA, USA

PostPosted: Sun 03 May '09 18:03    Post subject: Reply with quote

re: "Will these work with the x64 installs? "
No, these are 32-bit binaries.
It will require someone with a 64-bit system to build the x64 binaries.

-tom-
Back to top
View user's profile
jeffrito



Joined: 15 May 2009
Posts: 1

PostPosted: Fri 15 May '09 17:53    Post subject: One of these things is not like the other .... Reply with quote

Thanks, I installed these on a generic WAMP box with PHP 5.2.9 and MySQL 5.1.32. The correct client API is reported in phpinfo() and all works fine.

However, a problem I am becoming obsessed with was not resolved and it seems like your knowledge of the interactions of the various libraries may allow you to point me in some direction (other than jumping off a cliff).

I have a great big database that is pretty much optimized and here are two similar queries:

QUERY 1
=========
SELECT count(*)
FROM calldetail
INNER JOIN sources ON calldetail.SourceID = sources.SourceID
INNER JOIN supplier ON sources.SupplierID = supplier.SupplierID
WHERE sources.MediaType = 'LF TV'
AND supplier.SupplierID = '27264066900148'
AND calldetail.InitiatedDate
BETWEEN '2009-05-14 00:00:00'
AND '2009-05-14 23:59:59'

QUERY 2
=========
SELECT calldetail.CallID, count(*)
FROM calldetail
INNER JOIN sources ON calldetail.SourceID = sources.SourceID
INNER JOIN supplier ON sources.SupplierID = supplier.SupplierID
WHERE sources.MediaType = 'LF TV'
AND supplier.SupplierID = '27264066900148'
AND calldetail.InitiatedDate
BETWEEN '2009-05-14 00:00:00'
AND '2009-05-14 23:59:59'
GROUP BY 1

In MySQL command line client and MySQL Query Browser, both queries run pretty much instantaneously. "4" and the 4 corresponding records are the respective results, so we're not talking a lot of data here and all is good in dbadmin land.

In any PHP scripts using mysqli (for example, phpmyadmin using mysqli extension), Query 1 runs instantaneously, but Query 2 consistenly takes around 45 seconds to process! Ouch! The mysql profiler (via phpmyadmin) shows the query running instantaneously, but in reality it shows up in the process list as "sending data" for those 45 seconds. Every. Time. Yuk.

What would account for the dramatically different results when running the second query through php->mysqli vs. e.g., the mysql query browser app?

Thanks.
Back to top
View user's profile
waldbauer.com



Joined: 05 Jan 2008
Posts: 56
Location: Vienna

PostPosted: Fri 12 Jun '09 8:14    Post subject: Reply with quote

Does it work with the new 5.1.35 too ?
Back to top
View user's profile Visit poster's website
Steffen
Moderator


Joined: 14 Oct 2005
Posts: 1193
Location: Hilversum, NL, EU

PostPosted: Fri 12 Jun '09 17:37    Post subject: Reply with quote

Yeap, it runs here fine.

Steffen
Back to top
View user's profile Visit poster's website
waldbauer.com



Joined: 05 Jan 2008
Posts: 56
Location: Vienna

PostPosted: Sat 13 Jun '09 6:30    Post subject: Reply with quote

Strange - i installed the 5.1.35 and it runs but phpmyadmin reports 5.1.32 still ?!
Back to top
View user's profile Visit poster's website
Steffen
Moderator


Joined: 14 Oct 2005
Posts: 1193
Location: Hilversum, NL, EU

PostPosted: Sat 13 Jun '09 9:49    Post subject: Reply with quote

Not here, from phpadmin:

Server: 127.0.0.1 via TCP/IP
Server version: 5.1.35
Protocol version: 10
User: father@localhost
MySQL charset: UTF-8 Unicode (utf8)
Web server
Apache
MySQL client version: 5.1.35
PHP extension: mysql

Steffen
Back to top
View user's profile Visit poster's website
waldbauer.com



Joined: 05 Jan 2008
Posts: 56
Location: Vienna

PostPosted: Tue 16 Jun '09 10:45    Post subject: Reply with quote

All right; i see. There seems to be an issue with the installer on windows in 5.1.35 which rolls back for some reason and mysql would not be installed. So i downloaded the 5.1.35 NO INSTALL package and copied manually the files over the existing installation. This works for me now too.
Back to top
View user's profile Visit poster's website
Steffen
Moderator


Joined: 14 Oct 2005
Posts: 1193
Location: Hilversum, NL, EU

PostPosted: Tue 16 Jun '09 11:07    Post subject: Reply with quote

I did not use the installer either. I build a VC9 version.

Steffen
Back to top
View user's profile Visit poster's website
waldbauer.com



Joined: 05 Jan 2008
Posts: 56
Location: Vienna

PostPosted: Wed 17 Jun '09 11:58    Post subject: Reply with quote

What is the difference in a VC9 to the original from mysql ?
Back to top
View user's profile Visit poster's website
lael



Joined: 10 Nov 2009
Posts: 2

PostPosted: Thu 12 Nov '09 6:41    Post subject: Reply with quote

apache is crashing when using this mysqli library... I assume that the problem is because I am using a VC6 version of apache and php (can't find a VC9 compiled version of php).

Is there either - someplace to get a 5.2 version of php compiled with php (can then download apache from this site)

or

somewhere to download a VC6 compatible version of the mysql libraries? (mysql.dll and mysqli.dll)

Thanks!
Lael
Back to top
View user's profile
lael



Joined: 10 Nov 2009
Posts: 2

PostPosted: Thu 12 Nov '09 7:23    Post subject: Reply with quote

apologies - i had forgotten to replace the libmysql.dll from \lib\opt

works fine.
Back to top
View user's profile
waldbauer.com



Joined: 05 Jan 2008
Posts: 56
Location: Vienna

PostPosted: Mon 30 Nov '09 14:00    Post subject: Reply with quote

Hi steffen !

I use your php_mysql.dll libs for my sambar and i assume there is sometning wrong which corrupts the heap so may you can provide infos about compiling the sources for 5.1.41 ?!
Back to top
View user's profile Visit poster's website
waldbauer.com



Joined: 05 Jan 2008
Posts: 56
Location: Vienna

PostPosted: Wed 28 Jul '10 5:27    Post subject: Reply with quote

Can someone please provide the way to compile the php_mysql.dll and php_mysqli.dll for newer releases. Thank you.
Back to top
View user's profile Visit poster's website
NewEraCracker



Joined: 23 Aug 2010
Posts: 3

PostPosted: Mon 23 Aug '10 0:50    Post subject: Reply with quote

Thanks for this Smile

I am using php 5.2.14 and mysql 5.1.50 and works flawless Very Happy
Back to top
View user's profile

Post new topic   Reply to topic    Apache Forum Index -> Other Software
Page 1 of 1