साथ त्रुटि मैं सिर्फ एक PHP परियोजना के लिए WAMP उपयोग शुरू कर दिया है और मैं कोड की इस पंक्ति के साथ संबंधित अगले त्रुटियों मिलती है:"डेटा के समय से पहले अंत" पीएचपी
$link=mysql_connect("localhost","myuser","mypas");
मैंने पढ़ा है कि मैं करना पड़ा मेरे पुराने पासवर्ड के साथ फिर से सेट पासवर्ड, लेकिन यह अभी भी सभी सेवाओं को पुनरारंभ करने के बाद काम नहीं करता है। मैं PHP 5.3.4 और MySQL 5.1.53 का उपयोग कर रहा हूँ कोई मदद? धन्यवाद
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
'http पर baseDatos.php' का कोड पेस्ट कृपया इस
प्रयास करें: // www.ideone.com' और यहाँ लिंक। – diEcho
शायद यह भी देखें [विंडोज 7 PHP MySQL कनेक्शन मुद्दे] (http://stackoverflow.com/questions/4807072/windows-7-php-mysql-connection-issues)। –
baseDatos.php इस जानकारी के साथ सिर्फ "फ़ाइल शामिल करें" है: http://www.ideone.com/pOvt9। अगर यह मदद करता है, mysql.user से चयन पासवर्ड कर रहा हूं तो मुझे मूल "mypas" के बजाय 16 बाइट्स पासवर्ड मिलता है। – Arturo