List:General Discussion« Previous MessageNext Message »
From:Whil Hentzen Date:August 8 2004 12:53am
Subject:Re: SSH connection from a client machine - localhost works but not 127.0.0.1
View as plain text  
On Monday 02 August 2004 22:34, James Weisensee wrote:
> What does your '/etc/hosts' file contain?  Sounds like
> it may have the following entry:
>
> 127.0.0.1   localhost.localdomain
>
> change it to:
>
> 127.0.01    localhost

Actually, it has 

127.0.0.1      localhost.localdomain     localhost

(two entries)

> Yes, add 'localhost.localdomain' to mysql.user

Got it.

> another option, Why not just SSH to 'daisy' and issue:
>
> shell> mysql -u root -p
>
> and let it default to localhost.

Well, I did get that to work, but I'm trying to understand why...

Michael's explanation of the difference between 127... and localhost with the 
sockets vs TCP made a lot of sense.


-- 
Whil

Moving to Linux: Freedom, Choice, Security, Opportunity
http://www.hentzenwerke.com

Thread
SSH connection from a client machine - localhost works but not 127.0.0.1Whil Hentzen3 Aug
  • Re: SSH connection from a client machine - localhost works but not 127.0.0.1James Weisensee3 Aug
    • Re: SSH connection from a client machine - localhost works but not 127.0.0.1Whil Hentzen8 Aug
  • Re: SSH connection from a client machine - localhost works but not127.0.0.1Michael Stassen3 Aug