PHP MySql Connectivity Problume

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

PHP MySql Connectivity Problume

Postby ubaidkt » Mon Jun 27, 2005 10:44 pm

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.
ubaidkt
Lance Naik
 
Posts: 15
Joined: Sat Jan 08, 2005 8:34 am
WLM: ubaid23@hotmail.com
Yahoo Messenger: ubaidullah_khan@yahoo.com
Location: Kohat

Postby kashaziz » Mon Jun 27, 2005 11:08 pm

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

http://www.google.com/search?biw=1003&h ... server%3B+
kashaziz
Cadet
 
Posts: 14
Joined: Thu Apr 17, 2003 2:37 pm
Website: http://www.chowrangi.com
WLM: kash_aziz1@hotmail.com
Yahoo Messenger: kashaziz
Location: Karachi

Postby ubaidkt » Tue Jun 28, 2005 7:49 am

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.
ubaidkt
Lance Naik
 
Posts: 15
Joined: Sat Jan 08, 2005 8:34 am
WLM: ubaid23@hotmail.com
Yahoo Messenger: ubaidullah_khan@yahoo.com
Location: Kohat


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron