LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 482|回复: 4

配置mysql出现问题,怎么解决?谢谢!!!!

[复制链接]
发表于 2011-6-5 19:24:08 | 显示全部楼层 |阅读模式
配置mysql出现问题,提示:
localhost ~ # ebuild /var/db/pkg/dev-db/mysql-5.1.56/mysql-5.1.56.ebuild config
* ERROR: dev-db/mysql-5.1.56 failed (config phase):
*   Your machine must NOT be named localhost
*
* Call stack:
*     ebuild.sh, line   56:  Called pkg_config
*   environment, line 4050:  Called mysql_pkg_config
*   environment, line 3550:  Called die
* The specific snippet of code:
*       [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost";
*
* If you need support, post the output of 'emerge --info =dev-db/mysql-5.1.56',
* the complete build log and the output of 'emerge -pqv =dev-db/mysql-5.1.56'.
* This ebuild is from an overlay named 'gentoo': '/var/db/pkg/'
* The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.1.56/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.1.56/temp/environment'.
* S: '/var/tmp/portage/dev-db/mysql-5.1.56/work/mysql-5.1.56'

localhost ~ # hostname
localhost

怎么解决?谢谢!!!!!!!!
发表于 2011-6-5 19:59:12 | 显示全部楼层
Your machine must NOT be named localhost


sudo nano /etc/conf.d/hostname
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-6-5 21:30:16 | 显示全部楼层
Post by zhou3345;2141789
Your machine must NOT be named localhost


sudo nano /etc/conf.d/hostname



# /etc/conf.d/hostname
# Set to the hostname of this machine
HOSTNAME="localhost"

已命名localhost了,怎么回事呢?谢谢!!!!!!!!!
回复 支持 反对

使用道具 举报

发表于 2011-6-6 11:49:37 | 显示全部楼层
Post by lygxy;2141794
# /etc/conf.d/hostname
# Set to the hostname of this machine
HOSTNAME="localhost"

已命名localhost了,怎么回事呢?谢谢!!!!!!!!!

“NOT”还特地大写了的说。。。你少打几个叹号,淡定一点,就能看懂了。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-6-6 17:49:15 | 显示全部楼层
Post by timemars;2141830
“NOT”还特地大写了的说。。。你少打几个叹号,淡定一点,就能看懂了。。。


问题已解决,谢谢!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表