+ -
当前位置:首页 → 问答吧 → ubuntu9.10下安装10.2.0.1成功后打补丁升级到10.2.0.4出错???

ubuntu9.10下安装10.2.0.1成功后打补丁升级到10.2.0.4出错???

时间:2010-11-16

来源:互联网

我下载的文件是 mysql-5.1.52-linux-x86_64-glibc23.tar.gz
解压后按照官网上介绍的安装步骤安装(http://dev.mysql.com/doc/refman/5.1/zh/installing.html#installing-binary)
执行到这一步 scripts/mysql_install_db 的时候,
报错,异常信息如下:
./bin/my_print_defaults:
2:Syntax error: end of file unexpected
Neither host 'localhost' nor 'localhost' could be looked up with
./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
好象要修改/etc/hostname和/etc/hosts这两个文件,但是我不知道要添加什么内容,请各位高手指点一下如何修改,非常感谢!
/etc/hostname文件中的内容:
localhost

/etc/hosts文件中的内容:
192.168.1.102 localhost # Added by NetworkManager
127.0.0.1 localhost.localdomain localhost
hostname=localhost
::1 localhost localhost6.localdomain6 localhost6
192.168.1.102 #localhost
::1 #xianglf-HP
localhost localhost6.localdomain6 localhost6
127.0.1.1 localhost

# The following lines are desirable for IPv6 capable hosts
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

作者: xianglf   发布时间: 2010-11-16