LinuxSir.cn,穿越时空的Linuxsir!

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

mysql不能启动

[复制链接]
发表于 2006-11-21 21:53:47 | 显示全部楼层 |阅读模式
我的系统是fc6,开始运行mysql的时候,出现如下的错误提示:
[root@localhost linux]# /etc/rc.d/init.d/mysqld start
初始化 MySQL 数据库: Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
/usr/bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option
                                                           [失败]
[root@localhost linux]# hostname
localhost.localdomain
有谁知道什么原因,如何解决这个问题?
发表于 2006-11-22 11:13:45 | 显示全部楼层
贴一下
# resolveip localhost
的结果
回复 支持 反对

使用道具 举报

发表于 2007-2-2 17:51:35 | 显示全部楼层
$ resolveip localhost
resolveip: Unable to find hostid for 'localhost': try again

大侠给解决一下
回复 支持 反对

使用道具 举报

发表于 2007-2-5 22:08:08 | 显示全部楼层
Post by cczhy
$ resolveip localhost
resolveip: Unable to find hostid for 'localhost': try again

大侠给解决一下

在/etc/resov.conf中加上localhost
回复 支持 反对

使用道具 举报

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

本版积分规则

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