Linux下安装mysql
各位 我在安装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
还请前辈指点迷津 我都快搞疯了……