Update to php5.3 breaks connecting to mysql db
Posted
by bobbyb
on Stack Overflow
See other posts from Stack Overflow
or by bobbyb
Published on 2009-10-19T00:50:03Z
Indexed on
2010/03/28
17:53 UTC
Read the original article
Hit count: 603
I just updated php to 5.3 and can no longer connect to my remote mysql server. I get the following errors:
mysqli_connect(): OK packet 6 bytes shorter than expected
mysqli_connect(): (HY000/2000): mysqlnd cannot connect to MySQL 4.1+ using old authentication
It seems this has to do with the new mysqlnd driver. Is there a way to force it to use the old libmysql driver. Also, reverting to php5.2.11 doesn't seem to fix the issue which seems to work for most people. Anyone have any suggestions? thanks!
© Stack Overflow or respective owner