I am not sure using md5 is correct in the code below:
The error message is as follows:
Couldn't make connection: Client does not support authentication protocol requested by server; consider upgrading MySQL client.
Asfaw
Code:
<?php
$Host ="localhost";
$User = "root";
$Password =md5("secretl");
$DBName="NewDatabase";
$TableName="Feedback";
$Link = mysql_connect($Host, $User, $Password)
or die("Couldn't make connection: " . mysql_error()); //on failiure, post error message
if($db = mysql_select_db($DBName, $Link))
{
print "connected to NewDatabase";
}
else
{
die("Couldn't select database:" . mysql_error());
}
?>
The error message is as follows:
Couldn't make connection: Client does not support authentication protocol requested by server; consider upgrading MySQL client.
Asfaw