php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #24389 PHP 5 : Windows build needs a MySQL DLL
Submitted: 2003-06-29 14:36 UTC Modified: 2003-07-03 16:56 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: philip at cornado dot com Assigned: edink (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 5CVS-2003-06-29 (dev) OS: Windows
Private report: No CVE-ID: None
 [2003-06-29 14:36 UTC] philip at cornado dot com
Description:
------------
The Windows distribution of PHP 5 doesn't include a DLL for either ext/mysql or ext/mysqli support.  Users must compile their own PHP on Windows to gain this support.

This is a request to make these DLL's available.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-29 18:04 UTC] edink@php.net
Hm, anyone know where to find non-GPLed libmysql 3.x for windows?
 [2003-06-29 20:21 UTC] edink@php.net
OK. PHP 5 snaps and distro's include php_mysql.dll (php extension) and dlls\libmySQL.dll (remember to copy this to the system folder).
 [2003-06-30 16:16 UTC] ipa at assis dot lt
php_mysql.dll from snap says
PHP Warning:  Unknown(): Invalid library (maybe not a PHP library) 'php_mysql.dll'  in Unknown on line 0
 [2003-07-02 13:08 UTC] enc at omni dot lt
Well, i guess Postgre now will get more attention from PHP Windows users.
 [2003-07-02 20:55 UTC] philip@php.net
ipa, did you copy libmySQL.dll to your SYSTEMROOT?  And/or has this been fixed in the newest snap?
 [2003-07-03 16:56 UTC] edink@php.net
Philip, this bug was fixed, so leave it closed.
 [2003-07-12 07:40 UTC] rcherry at raysoft dot net
The Windows binary distribution - PHP 5.0.0b1 -  downloaded 24 hours ago, includes libmysql.dll, but does NOT include php_mysql.dll.  Where can I find a copy of pup_mysql.dll?  Thanks.
 [2003-07-13 18:17 UTC] h3 at mindkind dot org
you can get the latest stables versions of PHP5 win32 extensions at http://snaps.php.net/win32/PECL_STABLE , event with them i gived up installing php5 over my win2k machine and decided to install it on my redhat server instead (dont know if it'll work).

h3
 [2003-07-19 16:39 UTC] spooooom at hotmail dot com
You can obtain php_mysql.dll inside http://snaps.php.net/win32/php5-win32-latest.zip . :^)
 [2003-07-19 16:55 UTC] spooooom at hotmail dot com
...but it crashes upon starting with "The specified procedure could not be found".  Sorry for the double post.
 [2003-09-24 12:47 UTC] rodrigoclp at hotmail dot com
I caught the last version, Sep 24, 2003 14:30 GMT, i copied libmySql.ddl for system  and php_mysql.dll still did not function.
 [2003-11-28 09:32 UTC] valeu at pela dot ajuda
eu adoro o PHP.net....quer aprender a programar em PHP....entre no PHP.net....perfeito este site....
 [2003-11-30 20:00 UTC] ccesario at isic dot com dot br
I have php5-win32-200311302330, but Mysql isn't supported.
I copied libmySQL.dll and php_mysql.dll  to Windows\System32 ... but isn't working....

How to enable this.... ?

thanks!
 [2003-12-23 05:55 UTC] jorispeeraer at tiscali dot be
I've got php5b3, I copied libmysql.dll and php_mysql to system32, but I always get the same error: "Fatal error: Call to undefined function mysql_connect()". Is it still a bug in the beta-3 version, or do I something wrong?
 [2003-12-31 00:15 UTC] peter at kitten dot net
I got this error initially but using the extension method is easy. I didn't copy any dlls anywhere - just left the php_mysql.dll in extensions and uncommented the reference to it in the extensions section of my php.ini - voila!

The only one you'd ever copy would be the libmySQL if you decided to use that rather than the extension I guess.

using PHP 5.0.0b3 and mysql 4.0.17 - all works fine.
 [2004-01-16 20:57 UTC] swissarmygun at hotmail dot com
I can second peter's comment as it worked for many after an hour of frustration, maybe this should be added to the database issues.
 [2004-01-17 08:43 UTC] dave at puseyuk dot co dot uk
What you need to do is uncomment the mysql in the extensions section of php.ini and then copy d:\php\dlls\libmySQL.dll to d:\windows\

This works on XP Pro using PHP 5.0.0b3

Note: You may need to change d:\ to match the drive letter you are using!
 [2004-08-05 18:07 UTC] kent at ioflux dot com
I had a similar issue here; I believe the discrepancies in reports is probably due to the PATH Windows Environment Variable which is how DLLs are searched for (I think...)

Anyway: I installed ZDS 3.5.1 and received this problem... again. The fix was to:

RENAME to something benign:

C:\Program Files\Zend\php\libMySQL.dll (196KB)

COPY "new" libmysql.dll from this archive:

http://snaps.php.net/win32/php5-win32-latest.zip

I ended up *NOT* having to put this in my SYSTEM32 folder. As a precaution, I also removed all libmysql.dll references from in there (just in case).

Also, an easy way to test this is to double click on PHP5.EXE (or php.exe) depending on your installation. You'll get a better error message (unable to find procedure mysql_drop_db) than the Apache one (The specified procedure could not be found).

Ahh, the wind blows.
 [2004-09-25 03:11 UTC] admin at arkbl dot qc dot ca
Description
-----------

I got "PHP Startup: Unable to load dynamic library 'D:/root/Apache/PHP5/ext/php_mysql.dll' - The specified module is not found" (something like, I'm french)
And get "Unaviable function" statement when I open a file.

but php_mysql.dll exist

I put libmysl.dll in system32 and windows, didn't work

I installed PHP5.0.1 on XP Home SP2 with the Win32.zip the the PHP5-lastest version
I use Apache 1.3.31 and MySQL 4.0.21

Everything works exept Mysql functions, even php_pdf.dll is able to load.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 08:02:42 2024 UTC