发新话题
打印

Linux下安装mysql

Linux下安装mysql

各位 我在安装mysql的时候(OS 是 RH5 )

scripts/mysql_install_db --user=mysql

总是提示:
scripts/mysql_install_db:line 204:./bin/my_print_defaults:cannot execute binary file
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

还请前辈指点迷津  我都快搞疯了……

[ 本帖最后由 Engblind 于 2008-7-17 11:32 编辑 ]
把你的主机名写入/etc/hostname
不是localhost找不到,而是hostname命令没有结果
其实说得已经很清楚了: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
应该是RHAS5吧,RH5的话太老了。
引用:
原帖由 walkerxk 于 2008-7-17 12:17 发表
把你的主机名写入/etc/hostname
不是localhost找不到,而是hostname命令没有结果
其实说得已经很清楚了:Please configure the 'hostname' command to return a correct hostname.
If you want to solve th ...
恩对 ,是  AS5的

我的上面是  /etc/hosts 这个文件,我修改了

包括  /etc/sysconfig/network 文件  也修改了

但是还是一样的错误提示  ……
/etc/hostname和/etc/hosts不是同一个文件,RHAS5没有mysql的RPM包?我记得光盘里面有的吧,就算没有的话去mysql的网站下好了,或者你可以下那个不用安装的版本。
引用:
原帖由 walkerxk 于 2008-7-17 13:21 发表
/etc/hostname和/etc/hosts不是同一个文件,RHAS5没有mysql的RPM包?我记得光盘里面有的吧,就算没有的话去mysql的网站下好了,或者你可以下那个不用安装的版本。
我上面没有  /etc/hostnme 这个文件呢

我上面说的 就是不用安装的阿
发新话题