首页 » 数据库技术 » Premature end of data (mysqlnd_wireprotocol.c:554) in ... mysql

Premature end of data (mysqlnd_wireprotocol.c:554) in ... mysql

 

最近碰到的Mysql问题特别多

最近又碰到一个,关于老密码的故障

系统报错

Warning: mysql_connect() [function.mysql-connect]: Premature end of data (mysqlnd_wireprotocol.c:554) in path

Warning: mysql_connect() [function.mysql-connect]: OK packet 1 bytes shorter than expected in path

Warning: mysql_connect() [function.mysql-connect]: mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file in path

这段错误引起是因为old_password的原因,可以搜索 “mysql old_password来查看相关的资料”

解决方案:

原文链接:Premature end of data (mysqlnd_wireprotocol.c:554) in ... mysql,转载请注明来源!

0