FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Not bale to connect to MySQL with PHP
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Not bale to connect to MySQL with PHP [message #169653 is a reply to message #169652] Tue, 21 September 2010 18:18 Go to previous messageGo to previous message
MikeB is currently offline  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.. :)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Php Include bug in firefox
Next Topic: Feed RSS and accented and other special chars
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 18:44:50 GMT 2024

Total time taken to generate the page: 0.04718 seconds