raksmart活动促销

分享

写回答

发帖

[提问] 远程访问ixwebhosting的mysql报错

国外虚拟主机 国外虚拟主机 2348 人阅读 | 3 人回复

发表于 2011-11-15 14:59:03 | 显示全部楼层 |阅读模式

Warning: mysql_connect() [function.mysql-connect]: Premature end of data (mysqlnd_wireprotocol.c:554) in C:\xampp\blog\wp-includes\wp-db.php on line 1017

Warning: mysql_connect() [function.mysql-connect]: OK packet 1 bytes shorter than expected in C:\xampp\blog\wp-includes\wp-db.php on line 1017

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 C:\xampp\blog\wp-includes\wp-db.php on line 1017

但我用客户端访问是正常的,请问是怎么回事,有了解的吗

回答|共 3 个

微微百科

发表于 2011-11-15 15:12:23 | 显示全部楼层

估计是你的数据库密码太过简单了,你尝试重新设置一个复杂一点的。
回复 支持 反对

使用道具 举报

kingsx

发表于 2011-11-16 13:27:01 | 显示全部楼层

我本地的php版本是5.3,访问mysql用的是增强型加密方式;而ixwebhosting的php是5.2,我本地用php5.2访问成功了

评分

参与人数 1威望 +5 金币 +3 银币 +5 收起 理由
微微百科 + 5 + 3 + 5 我很赞同

查看全部评分

RAKSmart
回复 支持 反对

使用道具 举报

微微百科

发表于 2011-11-17 09:13:54 | 显示全部楼层

原来是PHP版本问题,感谢分享!!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则