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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.