ID: 42757 Comment by: abang_tukang_sayur at yahoo dot com Reported By: nektarin at gmail dot com Status: No Feedback Bug Type: MySQL related Operating System: Win XP PHP Version: 5.2.4 New Comment:
same problem occured when i upgrade my PHP 5.2.1 into 5.2.5 i try to use php_mysql.dll from the older PHP 5.2.1 but get this message when i tried to use mysql_connect() function: bad handshake. so is there any suggestion to my problem? it's very frustrating. thx b4. Previous Comments: ------------------------------------------------------------------------ [2007-10-04 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2007-09-27 04:32:13] raiko at akubi dot de >From your phpinfo page what does "Client API version" for MySQL show? > >The MySQL extension for PHP is compiled against 5.0.45, if you have an >older libmysql.dll in your path then it will try to use that. Thanks for the hint, you were right. Apparently, there was an old version of libmysql.dll left in the system32 directory (ver. 4.1.x). After replacing it with the an up-to-date version everything works fine with the 5.2.5 php_mysql.dll . ------------------------------------------------------------------------ [2007-09-27 00:06:26] [EMAIL PROTECTED] >From your phpinfo page what does "Client API version" for MySQL show? The MySQL extension for PHP is compiled against 5.0.45, if you have an older libmysql.dll in your path then it will try to use that. ------------------------------------------------------------------------ [2007-09-26 22:30:06] raiko at akubi dot de The same bug occured when I upgraded from 5.2.2 to 5.2.4 earlier. The error message I got in the error.log was: --- PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Server\\php\\ext\\php_mysql.dll' - Die angegebene Prozedur wurde nicht gefunden.\r\n in Unknown on line 0 --- Using the DLL from the snapshot link that was posted did not fix it. Replacing the DLL with the 5.2.2 version fixed it, the server starts normally and all MySQL functions work properly. ------------------------------------------------------------------------ [2007-09-25 21:15:43] [EMAIL PROTECTED] And you have replaced the existing dlls with the ones that come with the snapshot package? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/42757 -- Edit this bug report at http://bugs.php.net/?id=42757&edit=1