November 14, 2002

Hostname issues with MySQL

“Why do I get the message
Sorry, the host ‘your_hostname_here’ could not be looked up.
Please configure the ‘hostname’ command to return a correct hostname.

There is a problem with the DNS configuration for the IP address you’re using. Often, the “forward” and “reverse” DNS entries for it do not match. This is usually a problem your network administrator or ISP has to fix.

Someone sent me this useful workaround: just type “sudo hostname 127.0.0.1”, then issue the command again.

Thanks to Marc Liyanage for finding this tip.

Post Info

Tagged As Mac

Comments are Open (0)

Posted at 12:00 PM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Search
Comments on this post
Categories
Info
Tony Stephens
Copyright © 1995-2005
Site Version:
10
Licensed:
Creative Commons
Validate:
XHTML, CSS, 508, RSS
Subscribe
Blog-Fu, Link-Fu