5 messages in com.mysql.lists.bugsRe: Bug: Hostname not matching when u...
FromSent OnAttachments
Bernard09 Jun 2002 20:36 
Michael Widenius10 Jun 2002 03:59 
Sinisa Milivojevic10 Jun 2002 05:26 
Sinisa Milivojevic10 Jun 2002 07:07 
Gelu Gogancea10 Jun 2002 07:10 
Subject:Re: Bug: Hostname not matching when user connects from localhost
From:Sinisa Milivojevic (sin@mysql.com)
Date:06/10/2002 07:07:37 AM
List:com.mysql.lists.bugs

Gelu Gogancea writes:

Hi, My friend .... i suppose you talk about "/etc/hosts" file.In this case i wish to remember what is this file: Hosts -> table lookup for host names. In fact ("localhost" with "localhost.localdomain") have the same effect.The difference between them, is that: localhost - is the host alias localhost.localdomain - is qualified full name of the host( it should be with D(omain).N(ame).S(erver). entry) My suggestion is, to use directly IP address (127.0.0.1) in mysql.user table because you have some network configuration problem.Linux(Unix OS in general) work anyway but if you don't have a name server in your LAN network, you must configure your server like Name Server. If you don't believe me, try this from Linux terminal:

nslookup localhost.localdomain...

..nslookup will respond with : "i can't find server localhost"...,and it's normal because "localdomain"(which is responsable for "localhost") it's not configured like a domain.Why Red Hat after installing "put" this in hosts file ?... it's try to simulate a domain. So...if you do it a "ping localhost.localdomain", you can observe it's is the same like "ping localhost".

Regards, Gelu

Thank you for your contribution.

This looks like a small problem in C library.

The one that is linked in our static Linux binary does not exemplifies the above problems.