当前位置: 技术问答>linux和unix
Linux下安装mysql
来源: 互联网 发布时间:2016-05-10
本文导语: 各位 我在安装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...
各位 我在安装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
还请前辈指点迷津 我都快搞疯了……
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
还请前辈指点迷津 我都快搞疯了……
|
你用的是不是源码包安装?
你configure了没,编译了没?
用rpm包安装较方便.
你configure了没,编译了没?
用rpm包安装较方便.
|
这说明scripts/mysql_install_db就不是一个可执行程序吧.
还是建议你用rpm包安装吧.