Linux下安装mysql

engblind 2008-07-17 11:09:50
各位 我在安装mysql的时候(OS 是 RH5 )

scripts/mysql_install_db --user=mysql

总是提示:
Neither host 'localhost' 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

我 ping localhost ,解析为127.0.0.1,是没有问题的

下面是我的hosts文件到内容:
#Do not remove the following line,or various programs
#that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost

还请前辈指点迷津 我都快搞疯了……
...全文
116 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
zcmfxq 2011-04-18
  • 打赏
  • 举报
回复
哪个是什么
老哥讲数据库 2011-04-18
  • 打赏
  • 举报
回复
我也遇到了这个问题今天,我研究了半天都无果。
最后我出去买了个菠萝,花了6.4元,结果我恍然大悟了。我的RHEL是32位的,而我的安装包是64位的。。。呵呵。。
技术传播 2010-01-22
  • 打赏
  • 举报
回复
无果我也遇到同样的问题了
engblind 2008-07-22
  • 打赏
  • 举报
回复

在这个论坛,问的所有的问题,都没有一个结果,我晕…

按理来说,这里应该是高手云集的地方哦!

engblind 2008-07-17
  • 打赏
  • 举报
回复
mysql_install_db

这个是一个执行脚本
wlabing 2008-07-17
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 engblind 的回复:]
在Neither host 'localhost' nor 'localhost' could be looked up with ……这个之前还有一句

scripts/mysql_install_db:line 204:./bin/my_print_defaults:cannot execute binary file
[/Quote]
这说明scripts/mysql_install_db就不是一个可执行程序吧.
还是建议你用rpm包安装吧.
engblind 2008-07-17
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 wlabing 的回复:]
你用的是不是源码包安装?
你configure了没,编译了没?
用rpm包安装较方便.
[/Quote]

我在网上看了很多内容 ,也去书店找了资料

有些版本 是不需要 ./configure && make && make install 的

原因:我的理解应该是在于 scripts/mysql_install_db --user=mysql 这个命令吧

不过 对于你说的 我也试过了 没有这个错误 但还是有一些乱七八糟的错误 ……

engblind 2008-07-17
  • 打赏
  • 举报
回复
在Neither host 'localhost' nor 'localhost' could be looked up with ……这个之前还有一句

scripts/mysql_install_db:line 204:./bin/my_print_defaults:cannot execute binary file
wlabing 2008-07-17
  • 打赏
  • 举报
回复
你用的是不是源码包安装?
你configure了没,编译了没?
用rpm包安装较方便.

23,217

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧