Re: Connecting PHP to MySQL on Windows

From: Date: Fri, 07 Jan 2011 02:25:12 +0000
Subject: Re: Connecting PHP to MySQL on Windows
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-47610@lists.php.net to get a copy of this message
On Thu, Jan 6, 2011 at 21:12, michael manning <michaelgmanning@gmail.com> wrote: > Hi Daniel, > When testing with the CLI, netstat shows: [snip!] What happens when you swap out 'localhost' for '127.0.0.1' in the connection routine? If that works, check to make sure your hosts file properly designates 127.0.0.1 as 'localhost' (by editing c:\windows\system32\drivers\etc\hosts I believe.... been a while since I've done it on Windows). -- </Daniel P. Brown> Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/

« previous php.db (#47610) next »