Re: mysql_connect does not connect
| From: | John Nichel | Date: | Fri, 17 Sep 2004 18:35:58 +0000 |
| Subject: | Re: mysql_connect does not connect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196999@lists.php.net to get a copy of this message | ||
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. JasonWindows doesn't have a loopback device? Ye Gods, what were they thinking???? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com