Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12850 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50429 invoked by uid 1010); 16 Sep 2004 06:06:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 50296 invoked from network); 16 Sep 2004 06:06:24 -0000 Received: from unknown (HELO miranda.org) (209.58.150.153) by pb1.pair.com with SMTP; 16 Sep 2004 06:06:24 -0000 Received: (qmail 15905 invoked by uid 546); 16 Sep 2004 06:06:23 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 16 Sep 2004 06:06:23 -0000 Date: Thu, 16 Sep 2004 02:06:23 -0400 (EDT) X-X-Sender: adam@miranda.org To: Rasmus Lerdorf cc: Sam Hobbs , internals@lists.php.net In-Reply-To: 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: adam@trachtenberg.com (Adam Maccabee Trachtenberg) On Wed, 15 Sep 2004, Rasmus Lerdorf wrote: > 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) Also, are you really using the mysql extension with MySQL 5.0.1? If so, you need to make sure you pass special flags to MySQL to make it play nice with the older client libraries. -adam -- adam@trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today!