"Premature end of data" - Fehler mit PHP

Ich habe gerade angefangen mit WAMP für ein PHP-Projekt, und ich bekomme den nächsten Fehler, die im Zusammenhang mit dieser code-Zeile:

$link=mysql_connect("localhost","myuser","mypas");

Habe ich gelesen, dass ich tun musste, um das PASSWORT neu SETZEN mit meinem alten Passwort, aber es funktioniert immer noch nicht nach Neustart alle Dienste. Ich bin mit PHP 5.3.4 und MySQL 5.1.53 keine Hilfe? DANK

Warning: mysql_connect() [function.mysql-connect]: Premature end of data (mysqlnd_wireprotocol.c:554) in C:\wamp\www\CDE\includes\baseDatos.php on line 5 
Call Stack 
1 0.0002 667312 {main}( ) ..\index.php:0 
2 0.0008 682416 include( 'C:\wamp\www\CDE\includes\seguridad.php' ) ..\index.php:2 
3 0.0010 690984 include( 'C:\wamp\www\CDE\includes\baseDatos.php' ) ..\seguridad.php:2 
4 0.0014 692368 mysql_connect ( ) ..\baseDatos.php:5 

( ! ) Warning: mysql_connect() [function.mysql-connect]: OK packet 1 bytes shorter than expected in C:\wamp\www\CDE\includes\baseDatos.php on line 5 
Call Stack 
1 0.0002 667312 {main}( ) ..\index.php:0 
2 0.0008 682416 include( 'C:\wamp\www\CDE\includes\seguridad.php' ) ..\index.php:2 
3 0.0010 690984 include( 'C:\wamp\www\CDE\includes\baseDatos.php' ) ..\seguridad.php:2 
4 0.0014 692368 mysql_connect ( ) ..\baseDatos.php:5 

( ! ) 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:\wamp\www\CDE\includes\baseDatos.php on line 5 
Call Stack 
1 0.0002 667312 {main}( ) ..\index.php:0 
2 0.0008 682416 include( 'C:\wamp\www\CDE\includes\seguridad.php' ) ..\index.php:2 
3 0.0010 690984 include( 'C:\wamp\www\CDE\includes\baseDatos.php' ) ..\seguridad.php:2 
4 0.0014 692368 mysql_connect ( ) ..\baseDatos.php:5 
  • bitte fügen Sie den code von baseDatos.php auf ideone.com` und hier der link.
  • Vielleicht schauen Sie sich auch Windows 7 PHP MySQL Verbindungsprobleme.
  • baseDatos.php ist nur eine "include-Datei" mit diesen Informationen: ideone.com/pOvt9. Wenn es hilft, zu tun WÄHLEN Sie das Passwort aus der mysql.Benutzer, bekomme ich einen 16-Byte-Passwort anstelle des original - "mypas".
  • Premature end of data auch bekannt als vorzeitige Beendigung. (sorry, konnte mir nicht helfen)
InformationsquelleAutor Arturo | 2011-05-23
Schreibe einen Kommentar