PHP MySql Connectivity Problume

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Post Reply
ubaidkt
Lance Naik
Posts: 15
Joined: Sat Jan 08, 2005 8:34 am
Location: Kohat
Contact:

PHP MySql Connectivity Problume

Post by ubaidkt »

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.
kashaziz
Cadet
Posts: 14
Joined: Thu Apr 17, 2003 2:37 pm
Location: Karachi
Contact:

Post by kashaziz »

Whenever I stuck in a situation, I turn to Google for support :)

http://www.google.com/search?biw=1003&h ... +server%3B+
ubaidkt
Lance Naik
Posts: 15
Joined: Sat Jan 08, 2005 8:34 am
Location: Kohat
Contact:

Post by ubaidkt »

salam.
last night I run the same code in linux, its work fine in Linux. but the problum is in Windows. I want to develop my project in Dreamweaver. so the problume is there. plz give me suggestion.
Post Reply