Reply to Re: mysql_connect()

Your name:

Reply:


Posted by Dima Vidmich on 09/28/47 11:53

Pankaj wrote:
> 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 ?

Probably your mysql login was created with restrict on connection
address.
Try grant also username@server_ip as was granted username@localhost
or update your login entry in mysql.user with Host='%' to allow any
connection ip

WBR, Dima Vidmich

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация