Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[mysql] Your machine must NOT be named localhost
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
m_0_r_0_n
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2006
Posts: 78
Location: Duesseldorf, Germany

PostPosted: Sat Aug 09, 2008 10:41 am    Post subject: [mysql] Your machine must NOT be named localhost Reply with quote

Why should I give my desktop system another name than localhost?

*
* ERROR: dev-db/mysql-5.0.60-r1 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* ebuild.sh, line 1244: Called mysql_pkg_setup
* mysql.eclass, line 481: Called die
* The specific snippet of code:
* [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
* The die message:
* Your machine must NOT be named localhost
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.60-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.0.60-r1/temp/die.env'.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sat Aug 09, 2008 10:58 am    Post subject: Reply with quote

Hi.

Because localhost is a reserved name associated to IP 127.0.0.1 ?
How will mysql or any other network service be able to distinguish between your IP and the loopback IP if the hostname (localhost) points to both?
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
bytenirvana
Apprentice
Apprentice


Joined: 10 Jun 2006
Posts: 218
Location: Volksstaat Hessen

PostPosted: Sat Aug 09, 2008 2:53 pm    Post subject: Reply with quote

To solve this you need to temporary change your hostname, install/update mysql and change it back to localhost then.

Up till now I never used another name then localhost. I'm not sure I understood why it needs to distinguish between my ip and loopback.

@jmbsvicetto
keep up the good work with kde! =)
_________________
Linux User #422770
Back to top
View user's profile Send private message
m_0_r_0_n
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2006
Posts: 78
Location: Duesseldorf, Germany

PostPosted: Sat Aug 09, 2008 5:17 pm    Post subject: Reply with quote

I still get the same error although I ve changed the name localhost to gentoo

localhost tbarth # . /etc/conf.d/hostname
localhost tbarth # echo $HOSTNAME
gentoo
Back to top
View user's profile Send private message
bytenirvana
Apprentice
Apprentice


Joined: 10 Jun 2006
Posts: 218
Location: Volksstaat Hessen

PostPosted: Sun Aug 10, 2008 11:10 am    Post subject: Reply with quote

did you reboot / stop mysqld after changing the hostname?
_________________
Linux User #422770
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum