logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

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

or

Bitcoin

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

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Available php_mysql(i).dll for PHP 5.2.9+ and MySQL 5.1.30+
Author
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sun 03 May '09 17: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/ The file PHP-5.2.9+_MySQL-5.1.30+.zip

Tom and Steffen
Back to top
htdavis



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

PostPosted: Sun 03 May '09 18: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
tdonovan
Moderator


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

PostPosted: Sun 03 May '09 20: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
jeffrito



Joined: 15 May 2009
Posts: 1

PostPosted: Fri 15 May '09 19: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
waldbauer.com



Joined: 05 Jan 2008
Posts: 49
Location: Vienna

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

Does it work with the new 5.1.35 too ?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

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

Yeap, it runs here fine.

Steffen
Back to top
waldbauer.com



Joined: 05 Jan 2008
Posts: 49
Location: Vienna

PostPosted: Sat 13 Jun '09 8: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
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sat 13 Jun '09 11: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
waldbauer.com



Joined: 05 Jan 2008
Posts: 49
Location: Vienna

PostPosted: Tue 16 Jun '09 12: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
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

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

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

Steffen
Back to top
waldbauer.com



Joined: 05 Jan 2008
Posts: 49
Location: Vienna

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

What is the difference in a VC9 to the original from mysql ?
Back to top
lael



Joined: 10 Nov 2009
Posts: 4

PostPosted: Thu 12 Nov '09 8: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
lael



Joined: 10 Nov 2009
Posts: 4

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

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

works fine.
Back to top
waldbauer.com



Joined: 05 Jan 2008
Posts: 49
Location: Vienna

PostPosted: Mon 30 Nov '09 16: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
waldbauer.com



Joined: 05 Jan 2008
Posts: 49
Location: Vienna

PostPosted: Wed 28 Jul '10 7: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
NewEraCracker



Joined: 23 Aug 2010
Posts: 36

PostPosted: Mon 23 Aug '10 2: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
NewEraCracker



Joined: 23 Aug 2010
Posts: 36

PostPosted: Mon 13 Dec '10 18:00    Post subject: Reply with quote

Time for someone to compile this with MySQL 5.1.53 and PHP 5.2.15

From PHP 5.2.15 ChangeLog:
Quote:
- Fixed bug #52390 (mysqli_report() should be per-request setting). (Kalle)
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 14 Dec '10 12:06    Post subject: Reply with quote

I guess it is a nice to have for PHP 5.2. However this is the last release for PHP 5.2. Within PHP 5.3 there is mysqlnd, so no need to compile against a specific mysql version.
It is recommend to upgrade to 5.3
Back to top
Smitty



Joined: 03 Jan 2008
Posts: 197

PostPosted: Tue 08 Feb '11 18:56    Post subject: Reply with quote

Has anybody built these DLLs for MySQL 5.5? Some of us are still running PHP 5.2.17.
Back to top
NewEraCracker



Joined: 23 Aug 2010
Posts: 36

PostPosted: Wed 16 Feb '11 22:06    Post subject: Reply with quote

Hello,

Can anyone post a topic with a tutorial that explains how I can build this DLLs from source?

I currently got a development environment with windows xp, visual studio 6 service pack 6, visual c++ 6 processor pack and windows 2003 sdk (feb 2003)

Thank you.

---

Edit:

I've read this http://www.php.net/manual/en/install.windows.building.php and used the knowledge I gathered to build a more updated mysql(i) extension:
http://www.apachelounge.com/viewtopic.php?t=3890

For those wishing an extension compatible with mysql 5.5. I wasn't capable of building it so people wishing to use it will have to upgrade to php 5.3.
Back to top


Reply to topic   Topic: Available php_mysql(i).dll for PHP 5.2.9+ and MySQL 5.1.30+ View previous topic :: View next topic
Post new topic   Forum Index -> Other Software