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
解压后按照官网上介绍的安装步骤安装(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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28