Jump to content

[SOLVED] new database old tricks


11sven

Recommended Posts

<?php
//$sql=mysql_connect('MySQLHost', 'u70011861', '380c4d');
$sql=mysql_connect('localhost', 'drunkard', 'm952sa');
mysql_select_db('d60010322', $sql) or die(mysql_error());
?>

this is my dbcon and i get this

Warning: mysql_connect() [function.mysql-connect]: OK packet 6 bytes shorter than expected in C:\wamp\www\drunken\conn\dbcon.php on line 3

Warning: mysql_connect() [function.mysql-connect]: mysqlnd cannot connect to MySQL 4.1+ using old authentication in C:\wamp\www\drunken\conn\dbcon.php on line 3

Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in C:\wamp\www\drunken\conn\dbcon.php on line 4
mysqlnd cannot connect to MySQL 4.1+ using old authentication

 

i used old password on this database i don't know how to change it back.

Link to comment
https://forums.phpfreaks.com/topic/169464-solved-new-database-old-tricks/
Share on other sites

what version of php and mysql are you using? have you recently upgraded one of them?

 

php 5.x and mysql 5.x i recently upgraded to wamp 5 from wamp4 or maybe wamp3. i had an illness and couldn't program. anyway one website that i programmed in 4 works fine. this other one doesn't want to cooperate.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.