php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45859 Missing libmysql.dll
Submitted: 2008-08-19 08:14 UTC Modified: 2010-07-12 17:19 UTC
From: dagdamor at simps dot ru Assigned: mysql (profile)
Status: Not a bug Package: MySQL related
PHP Version: 5.3.0alpha1 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dagdamor at simps dot ru
New email:
PHP Version: OS:

 

 [2008-08-19 08:14 UTC] dagdamor at simps dot ru
Description:
------------
There is no libmysql.dll in the php-5.3.0alpha2-dev-win32.zip archive.
I tried to use one from php-5.2.6-win32.zip (the last stable release), but apparently it doesn't work.

P.S. If there is a more suitable place where I can post feedback about testing PHP 5.3 on Windows, please tell :)

Reproduce code:
---------------
<?php

mysql_connect("localhost","root","12345") or die(mysql_error());

?>

Expected result:
----------------
No errors

Actual result:
--------------
Warning: mysql_connect() [function.mysql-connect]: OK packet 6 bytes shorter than expected. PID=-387523 in W:\www\test53.php on line 3

Warning: mysql_connect() [function.mysql-connect]: mysqlnd cannot connect to MySQL 4.1+ using old authentication in W:\www\test53.php on line 3

Warning: mysql_connect() [function.mysql-connect]: in W:\www\test53.php on line 3

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-19 09:03 UTC] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

libmysql.dll isn't needed anymore with 5.3 as mysqlnd was introduced as client library.

"mysqlnd cannot connect to MySQL 4.1+ using old authentication" tells you what the error is, please don't use the --old-passwords MySQL option!
 [2009-07-06 05:42 UTC] clockwerx@php.net
This is currently not documented in http://www.php.net/manual/en/mysql.installation.php
 [2009-07-06 05:44 UTC] clockwerx@php.net
Specifically, it still says:

PHP 5+

(snip) Also, PHP needs access to the MySQL client library. A file named libmysql.dll is included in the Windows PHP distribution and in order for PHP to talk to MySQL this file needs to be available to the Windows systems PATH. (/snip).

The windows builds install.txt also document this, but are out dated
 [2009-07-06 08:01 UTC] pajoye@php.net
About the last comment, it is unrelated to this bug. Also I cannot find "libmysql" references in INSTALL (install.txt), in 5.3+.
 [2010-07-12 16:39 UTC] xandend at yahoo dot com
this link states it all concisely:

http://www.artfulsoftware.com/php_mysql_win.html

It seems to be the best and only coherent answer to the problem.

Had the same problem with PHP 5.3.2

After wasting Days, ended up going with 5.2.13

Now have everything working!
 [2010-07-12 16:39 UTC] xandend at yahoo dot com
this link states it all concisely:

http://www.artfulsoftware.com/php_mysql_win.html

It seems to be the best and only coherent answer to the problem.

Had the same problem with PHP 5.3.2

After wasting Days, ended up going with 5.2.13

Now have everything working!
 [2010-07-12 17:19 UTC] pajoye@php.net
There is no libmysql.dll in 5.3 as we don't use it anymore.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 06:01:35 2024 UTC