Re: Not bale to connect to MySQL with PHP [message #169659 is a reply to message #169656] |
Tue, 21 September 2010 23:21 |
Denis McMahon
Messages: 634 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 21/09/10 23:26, MikeB wrote:
> Denis McMahon wrote:
>> On 21/09/10 19:18, MikeB wrote:
>>
>>> That led me to Windows etc/hosts and I found the mapping of 127.0.0.1 to
>>> localhost was commented out.
>>
>> Hmm, some malware has been known to hamper with the hosts file.
>>
>> I'm pretty sure that the localhost definition isn't normally commented
>> out on the default file that comes with windows.
>>
>> Might be a symptom of a bigger underlying problem.
>>
>
> Actually, no. It is documented in Microsoft Technet that this has been
> done in Windows releases from Vista on. Unfortunately I don't have a
> reference handy right now, but I read up on it this morning.
>
> Seems Microsoft expects DNS service to resolve localhost and that they
> are moving away from the hosts file.
Well, I'd suggest that quite obviously the ms dns resolver isn't
resolving localhost without the help of the hosts file.
Where in the dns resolution are they expecting this to take place? In
the local host, or in some upstream dns server?
It seems a bit dim to have to ask my router / isp to resolve localhost
for me if I can do it locally, and if I take that out of the hosts file,
then it still seems that I should have some mechanism on the local
machine to do it instead of the hosts file, which should thus be
enabled, which presumably needs some configuration somewhere - do we add
a registry key?
Rgds
Denis McMahon
|
|
|