| 
	
 | 
 Posted by Laurent Duretz on 07/05/63 11:53 
Pankaj a écrit : 
> am trying to connect to a database. When I use the following syntax, 
> the connections works 
>  
> $server=localhost 
> $username=myusername; 
> $password=mypassword 
>  
> mysql_connect($server,$username,$password); 
>  
> However, if I change the $server="server_ip", I get an error 
> "Access Denied for user user_name@" (using password:YES) 
>  
> What could be wrong ? Is it some permission issue ? 
>  
 
If you are using tour ISP IP, it could be wrong. 
Try 127.0.0.1
 
[Back to original message] 
 |