You are here: Re: mysql_connect error « PHP Programming Language « IT news, forums, messages
Re: mysql_connect error

Posted by Anonymous on 03/19/06 22:51

"avenpace@gmail.com" wrote:
>
> > > I got error when using mysql_connect function in my php script.
> > > If i set the db host to localhost, it give me that error altough all
> > > the user and password that I wrote is true(I can login using that
> > > username/passwd using mysql console), but when I change the db host
> > > into 127.0.0.1 mysql_connect will work.
> > What were you using before?
> before I use mysql_connect("localhost","root","password") this not
> working but when I use mysql_connect("127.0.0.1","root","password")
> will work

Have you checked if 'localhost' resolves?

Bye!

 

Navigation:

[Reply to this 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

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