Re: mysql_connect error
- From: Anonymous <anonymous@xxxxxxxxxxxxxxx>
- Date: Sun, 19 Mar 2006 21:51:55 +0100
"avenpace@xxxxxxxxx" wrote:
before I use mysql_connect("localhost","root","password") this notI got error when using mysql_connect function in my php script.What were you using before?
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.
working but when I use mysql_connect("127.0.0.1","root","password")
will work
Have you checked if 'localhost' resolves?
Bye!
.
- Follow-Ups:
- Re: mysql_connect error
- From: avenpace@xxxxxxxxx
- Re: mysql_connect error
- References:
- mysql_connect error
- From: avenpace@xxxxxxxxx
- Re: mysql_connect error
- From: Ian Collins
- Re: mysql_connect error
- From: avenpace@xxxxxxxxx
- mysql_connect error
- Prev by Date: Re: Hosting Referral
- Next by Date: phpexcelreader, help needed
- Previous by thread: Re: mysql_connect error
- Next by thread: Re: mysql_connect error
- Index(es):
Relevant Pages
|