View previous topic :: View next topic |
Author |
Message |
m_0_r_0_n Tux's lil' helper
Joined: 29 Aug 2006 Posts: 78 Location: Duesseldorf, Germany
|
Posted: Sat Aug 09, 2008 10:41 am Post subject: [mysql] Your machine must NOT be named localhost |
|
|
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 |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sat Aug 09, 2008 10:58 am Post subject: |
|
|
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 |
|
|
bytenirvana Apprentice
Joined: 10 Jun 2006 Posts: 218 Location: Volksstaat Hessen
|
Posted: Sat Aug 09, 2008 2:53 pm Post subject: |
|
|
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 |
|
|
m_0_r_0_n Tux's lil' helper
Joined: 29 Aug 2006 Posts: 78 Location: Duesseldorf, Germany
|
Posted: Sat Aug 09, 2008 5:17 pm Post subject: |
|
|
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 |
|
|
bytenirvana Apprentice
Joined: 10 Jun 2006 Posts: 218 Location: Volksstaat Hessen
|
Posted: Sun Aug 10, 2008 11:10 am Post subject: |
|
|
did you reboot / stop mysqld after changing the hostname? _________________ Linux User #422770 |
|
Back to top |
|
|
|