免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2413 | 回复: 2
打印 上一主题 下一主题

大家好 我有个关于 sql启动的问题想求教一下 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-30 17:32 |只看该作者 |倒序浏览
我刚刚学用linux(fc6)在启动mysql时碰到一个问题
如下

[root@U117 ~]# /etc/init.d/mysqld start
初始化 MySQL 数据库: Neither host 'U113' 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
                                                           [失败]

不知道怎么才能正常启动  原先(出问题时)hostname是U117  后来该了U113还是有问题

论坛徽章:
0
2 [报告]
发表于 2007-01-30 18:24 |只看该作者
我改了

/etc/sysconfig/network 中的 hostname 为U113

可是/etc/hosts  不知道怎么改  如下::
# Do not remove the following line, or various programs
# that require network functionality will fail.
::1        localhost.localdomain        localhost   
该如何改呢 !!


相关信息
[root@U113 ~]# resolveip localhost
resolveip: Unable to find hostid for 'localhost': host not found

[ 本帖最后由 david_zlm 于 2007-1-30 18:36 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2007-01-30 19:16 |只看该作者

问题自己解决了

用了一下google. 看了一下/etc/hosts  怎么设定  原来回路地址没设

原来系统自设的是
# Do not remove the following line, or various programs
# that require network functionality will fail.
::1 localhost.localdomain localhost
改成 就能正常启动了
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost


不知道/etc/hosts 还有什么其他用途  和 与那些程序有关
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP