Re: mysql_connect does not connect
| From: | Jason Davidson | Date: | Fri, 17 Sep 2004 18:45:52 +0000 |
| Subject: | Re: mysql_connect does not connect | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-197002@lists.php.net to get a copy of this message | ||
Windows likely has some sort of loopback device, but i dunno how it
works
Ive also come accross people complaining that SP2 has funked up local
connections for various server/clients. However, ive seen firewalls
cuase problems for mysql on both windows and linux, so ya.. who
knows... Sam knows.. apparently. :)
Jason
John Nichel <john@kegworks.com> wrote:
>
> Jason Davidson wrote:
> > Hey, the reason it doesnt come in to play for you in linux, is becuase
> > mysql by default will connect through a unix socket, and not over
> > tcpip. The unix socket is a connection thru the filesystem and not the
> > network. Also, in linux, there is a virtual device for lopback, and the
> > firewall i dont beleive has any effect on the loopback device. In
> > windows however, depending on what version, mysql will connect using
> > tcp/ip, unless told otherwise, in this case, Sam supplied localhost to
> > his connect function, which tells mysql explicitly to use the network
> > over a named pipe.
> >
> > Jason
>
> Windows doesn't have a loopback device? Ye Gods, what were they
> thinking????
>
> --
> John C. Nichel
> ÜberGeek
> KegWorks.com
> 716.856.9675
> john@kegworks.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>