Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12849 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67389 invoked by uid 1010); 16 Sep 2004 04:43:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 67312 invoked from network); 16 Sep 2004 04:43:07 -0000 Received: from unknown (HELO colo.lerdorf.com) (66.198.51.121) by pb1.pair.com with SMTP; 16 Sep 2004 04:43:07 -0000 Received: from [192.168.1.105] (c-24-6-200-247.client.comcast.net [24.6.200.247]) by colo.lerdorf.com (8.13.1/8.13.1/Debian-13) with ESMTP id i8G4h5g0013283; Wed, 15 Sep 2004 21:43:05 -0700 Date: Wed, 15 Sep 2004 21:43:03 -0700 (PDT) X-X-Sender: rasmus@t42p.lerdorf.com To: Sam Hobbs cc: internals@lists.php.net In-Reply-To: <20040916040105.25425.qmail@pb1.pair.com> Message-ID: References: <20040916040105.25425.qmail@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] mysql_connect using version 5.0.1 accesses the internet when host and client are the same system From: rasmus@php.net (Rasmus Lerdorf) On Wed, 15 Sep 2004, Sam Hobbs wrote: > I am using PHP Version 5.0.1, MySQL 5.0.1-alpha-nt, and Apache/2.0.48 with > Windows XP with SP2. When I use mysql_connect in a php page in Apache to > connect to the "localhost" I get: > > Warning: mysql_connect() [function.mysql-connect.chm]: Can't connect to > MySQL server on 'localhost' (10061) > > I get that when the firewall does not allow Apache and MySQL to access the > internet. When I do allow Apache to access the internet, mysql_connect with > the same parameters works. Is that waht is supposed to happen? > > I assume this is a PHP problem but I can't be sure it is, so I apologize if > it is not. I am not sure why you assume this to be a PHP problem. Sounds like your firewall is blocking both local and external connections. Can you telnet to port 10061 on localhost with the firewall enabled? -Rasmus