[提问]
远程访问ixwebhosting的mysql报错
|
|
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
但我用客户端访问是正常的,请问是怎么回事,有了解的吗 |
|
|
|
|
|
|
|
|
|
|
微微百科
发表于 2011-11-15 15:12:23
|
显示全部楼层
|
估计是你的数据库密码太过简单了,你尝试重新设置一个复杂一点的。 |
|
|
|
|
|
|
|
|
|
|
kingsx
发表于 2011-11-16 13:27:01
|
显示全部楼层
|
我本地的php版本是5.3,访问mysql用的是增强型加密方式;而ixwebhosting的php是5.2,我本地用php5.2访问成功了 |
评分
-
查看全部评分
|
|
|
|
|
|
|
|
|
|
微微百科
发表于 2011-11-17 09:13:54
|
显示全部楼层
原来是PHP版本问题,感谢分享!!! |
|
|
|
|
|
|
|
|