Hi all 
Iam new to php and iam learning that from scratch.I
came across a problem in connecting mysql from php
script.I run php in windows2000 under IIS configured
to personal web server.I have installed mysql 
with server and client and both are running in the
same machine(ofcourse, i can you use the ipaddress of
localhost).I didn't set any username or password with
mysql. 

This is my php script: 
$link=mysql_connect("localhost"); 
if($link) 
die("Couldn't connect to mysql".mysql_error() ); 
print "Successfully connected to server"; 

when i execute this program iam getting the following
message: 
Couldn't connect to mysql 

Anyone please help me as this is very urgent. 

thanks in advance 

Regards 
shahjahan 
 

 
 




__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to