RES: How to use mysql.

Hugo Osvaldo Barrera hugo at osvaldobarrera.com.ar
Wed Feb 1 00:25:05 EST 2012


Hi

On 2012-01-31 13:25, Derek Atkins wrote:
> GOODSYSTEMS <goodsystems at gs11011.com> writes:
> 
>> Just for reference, and to resolve the issue for the curious.
>>
>> "127.0.0.1" IS "localhost". "localhost" is just an alias for
>> it. "127.0.0.1" is also known as a 'loopback address'. The loopback
>> concept means that something can be seen as a not-immediately-local
>> object over a network, where the network facilities are part of the
>> access chain. As used here, it's a way to standardize a reference,
>> instead of worrying over having to code up things to deal with truly
>> local' objects *and* not-local ones.

I know this. That's why the fact that one works and the other doesn't
amazes me. I connect to lots of services using just "localhost" and they
work fine.

At first I though that that maybe MySQL listens on IPv4, and "localhost"
defaults to "::1" (IPv6 loopback address) instead of "127.0.0.1", but it
turns out IPv6 is disabled.


>>
>> Why it would be necessary to use the formal notation instead of the
>> alias will remain a mystery.
> 
> It could be a Unix-domain v. IP domain socket issue?  Perhaps SELinux
> was blocking access to the Unix Domain socket?

Nope. I'm not running SELinux. :)

It shouldn't use unix-domains anyway, since I'm filling this in in a
field called "host", one would asume a connection is made through the
network to said host (I belive MySQL doesn't listen to a unix domain
socket, though I might be wrong).

> 
>> jhc
> 
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
> 
> -derek
> 


-- 
Hugo Osvaldo Barrera


More information about the gnucash-user mailing list