Salam.
I want to connect Mysql Database with php using below code
<?PHP
$connid = mysql_connect("localhost","root","apc123");
if($connid == false)
{ print "Server Connection Failed";}
else
{print "Server Connected!";}
mysql_close($connid);
?>
but when i run the page its give error.
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in e:\inetpub\wwwroot\phpsite\test.php on line 4
Server Connection Failed
Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in e:\inetpub\wwwroot\phpsite\test.php on line 11
please help me to solve the problum.
PHP MySql Connectivity Problume
Whenever I stuck in a situation, I turn to Google for support
http://www.google.com/search?biw=1003&h ... +server%3B+
http://www.google.com/search?biw=1003&h ... +server%3B+