php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41568 PHP 5.2.3 php_mysql.dll and libmysql.dll not working?
Submitted: 2007-06-02 14:21 UTC Modified: 2007-07-03 07:03 UTC
Votes:8
Avg. Score:4.5 ± 0.7
Reproduced:8 of 8 (100.0%)
Same Version:7 (87.5%)
Same OS:7 (87.5%)
From: Sephiroth dot PZC at gmail dot com Assigned: Andrey (profile)
Status: Not a bug Package: MySQL related
PHP Version: 5.2.3 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Sephiroth dot PZC at gmail dot com
New email:
PHP Version: OS:

 

 [2007-06-02 14:21 UTC] Sephiroth dot PZC at gmail dot com
Description:
------------
When installing PHP using the MSI installer, or even the zip installer, the  mysql extension does not work off the bat, and I had to use the php_mysql.dll and libmysql.dll files from the PHP 5.2.2 zip package.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-02 14:22 UTC] Sephiroth dot PZC at gmail dot com
Forgot to add, using MySQL 4.1.7
 [2007-06-03 11:23 UTC] joacorock at gmail dot com
i have the same error in 4.4.7 version
 [2007-06-04 06:04 UTC] steponas at idamas dot net
Windows XP, Apache 2.2.
Upgraded to PHP 5.2.3 (the .zip package) - the same problem, php_mysql.dll isn't loaded (the specified *procedure* can not be found). It helped to downgrade libmysql.dll and ext/php_mysql.dll to 5.2.2 as suggested.
PS> i'm having problems with php_mhash.dll, but downgrading it dosen't help...
 [2007-06-05 06:17 UTC] info at paolotozzo dot it
Same bug with win2003. php_mysql.dll isn't loaded
 [2007-06-07 13:13 UTC] Seth at nospam dot com
Got same bug under XP and Apache 2.2
Unfortunetly downgrade dosen't work
 [2007-06-07 13:16 UTC] Seth at nospam dot com
Forgot to write that PDO MySQL driver is not working neighter
 [2007-06-07 13:29 UTC] scottmac@php.net
The libmysql.dll from 5.0.41 can't be loaded dynamically due to a bug in MySQL more detail is available at http://bugs.mysql.com/bug.php?id=28358

If you're not using 5.0.41 or a 5.1 beta then you've most likely got other libmysql.dll files on your system somewhere that need removed.
 [2007-06-09 22:42 UTC] scottmac@php.net
If this isn't the case then please re-open this report.
 [2007-06-12 11:53 UTC] jmertic@php.net
I'm not seeing this problem at all on any of my installs.

PHP 5.2.3 using the MSI installer ( updated from 5.2.2 )
MySQL 5.0.41 using the MSI installer ( installed before PHP 5.2.3 )

phpinfo() reports using MySQL client API version 5.0.37 ( which is the version bundled with PHP 5.2.3 ).

I think the problem is with the libmysql.dll from MySQL 5.0.41 being loaded instead of the one packaged with PHP.
 [2007-06-27 01:12 UTC] saenito at itelcel dot com
Same problem, was a wrong version of libmysql.dll on c:\windows, copy from php to c:\windows or delete it from c:\windows and modify path environment variable to php

make sure extensions directory is ok, f.e. ./ext or c:\php-5.2.3\ext

it worked for me
Erwin
 [2007-06-27 01:17 UTC] saenito at itelcel dot com
At least for my case the old libmysql.dll was the problem (i think), some of that was commented in previous messages
 [2007-07-03 07:03 UTC] tony2001@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Sep 27 22:01:26 2024 UTC