LinuxSir.cn,穿越时空的Linuxsir!

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

FC6的mysqld无法启动!

[复制链接]
发表于 2006-11-10 20:28:23 | 显示全部楼层 |阅读模式
启动的时候提示:
/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
                                                           [失败]
google了一下,没有找到合理的解答,不知道这里有没有人遇到类似的问题。
发表于 2006-11-10 22:08:53 | 显示全部楼层
看看你的网络配置-->主机-->的IP地址,如图中的192.168.2.14是不是类似于:0等,改一下就应该行。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-10 23:19:02 | 显示全部楼层
我按照你说的方法修改了 ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:50:8D:5F:3F:A1  
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::250:8dff:fe5f:3fa1/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:532 errors:0 dropped:0 overruns:0 frame:0
          TX packets:587 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:44048 (43.0 KiB)  TX bytes:46848 (45.7 KiB)
          Interrupt:185 Base address:0xb400

但是启动mysqld的时候还是出现同样的错误信息。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-10 23:28:38 | 显示全部楼层
谢谢你,我重新配置了一下正常了。
回复 支持 反对

使用道具 举报

发表于 2006-11-23 17:52:07 | 显示全部楼层
Post by koffman
谢谢你,我重新配置了一下正常了。
能不能把你怎样搞定的贴出来,我也有这个问题。
回复 支持 反对

使用道具 举报

发表于 2006-11-23 17:53:10 | 显示全部楼层
Post by koffman
谢谢你,我重新配置了一下正常了。
能不能把你怎样搞定的贴出来,我也有这个问题。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-23 19:09:41 | 显示全部楼层
Post by everydaystudy
能不能把你怎样搞定的贴出来,我也有这个问题。

真抱歉,我这几天没有上坛子,我就是按照上面朋友介绍的方法,把那个::1删除,然后/etc/rc.d/init.d/network restart了一下就好了.
回复 支持 反对

使用道具 举报

发表于 2006-12-3 20:52:22 | 显示全部楼层
Post by koffman
真抱歉,我这几天没有上坛子,我就是按照上面朋友介绍的方法,把那个::1删除,然后/etc/rc.d/init.d/network restart了一下就好了.
我改了,但还是显示同样的错误,你能讲讲吗。

[root@localhost local]# /etc/rc.d/init.d/mysqld start --user=mysql --host=localhost.localdomain
初始化 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
回复 支持 反对

使用道具 举报

发表于 2006-12-5 15:49:18 | 显示全部楼层
搞定了,按koffman的指导,把::1删除,又随便写了一个地址12.12.122,然后/etc/rc.d/init.d/network restart,再启动/etc/rc.d/init.d/mysqld start ,正常!
谢谢各位!
回复 支持 反对

使用道具 举报

发表于 2006-12-5 16:10:08 | 显示全部楼层
配置eth0如此的话,大家上的应该是校园网啦
回复 支持 反对

使用道具 举报

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

本版积分规则

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