Reply to Re: mysql_connect()

Your name:

Reply:


Posted by Wolfgang Forstmeier on 10/06/89 11:53

Hi Pankaj,

i think it would be interessting for you to have a look at your
MySQL User privileges table. You will see that your user is only
able to connect from localhost.

Have a nice day,
Wolfgang.

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

[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

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