Re: mysql_connect using version 5.0.1 accesses the internet when host and client are the same system
| From: | Adam Maccabee Trachtenberg | Date: | Thu, 16 Sep 2004 06:06:23 +0000 |
| Subject: | Re: mysql_connect using version 5.0.1 accesses the internet when host and client are the same system | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12850@lists.php.net to get a copy of this message | ||
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!