Re: Not bale to connect to MySQL with PHP [message #169653 is a reply to message #169652] |
Tue, 21 September 2010 18:18 |
MikeB
Messages: 65 Registered: September 2010
Karma:
|
Member |
|
|
Jerry Stuckle wrote:
>>
>
> What happens if you use '127.0.0.1' instead of 'localhost'?
>
Great minds think alike! :)
Some searching led me to this and I found that that worked.
That led me to Windows etc/hosts and I found the mapping of 127.0.0.1 to
localhost was commented out.
While many things worked, this particular interface didn't.
I removed the comment and all is well. localhost as well as 127.0.0.1 is
now fine for connecting to MySQL.
I must say that the way I found that was to get xdebug to work, then I
got an warning message 2002 on the connect statement. That in Google
finally led me to the solution.
I guess I could have waited for you to post as well :) Would have been
less work, sweat and swearwords for me.. :)
|
|
|