Hi,
I'm trying to get working with PHP 5.3 a legacy web site designed for PHP 4.
It's working OK on PHP 5.2.9 but gives a strange error with 5.3 on Windows
and MySQL on CentOS.
Warning: mysql_connect() [function.mysql-connect]: OK packet 6 bytes
shorter than expected in {filename} on line 18
Warning: mysql_connect() [function.mysql-connect]: mysqlnd cannot
connect to MySQL 4.1+ using old authentication in {filename} on line 18
The following is the simplest test case that can reproduce the problem on my
machine:
<?php
mysql_connect('host', 'user', 'pass');
mysql_select_db('database');
I assume this has something to do with the new mysqlnd extension, but I
cannot
find how to disable it and enable the old mysql implementation in a
Windows environment
without recompiling PHP itself.
Additional info:
- PHP is running under Windows.
- MySQL server to which I'm trying to connect is on a CentOS box
- I tried connecting to my *local database* and it worked
- MySQL protocol_version is 10 on both Linux and Windows machines.
- Linux machine MySQL version is 5.0.48
- Windows machine MySQL version is 5.0.67-community-nt
Is there any other MySQL variable that I should look for?
Any feedback appreciated.
--
Ionut G. Stan
I'm under construction |http://igstan.blogspot.com/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php