免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 15722 | 回复: 10
打印 上一主题 下一主题

[数据库]安装 mysql5 出现 cannot execute binary 问题 , 大家帮帮忙呀!搞了一晚了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-06 01:55 |只看该作者 |倒序浏览
http://dev.mysql.com/get/Downloa ... 21.tar.gz/from/pick
在这里下的包


# ./mysqld_safe --user=mysql&
[1] 5933
# ./mysqld_safe: line 1: /usr/local/mysql/bin/my_print_defaults: cannot execute binary file
./mysqld_safe: line 1: /usr/local/mysql/bin/my_print_defaults: cannot execute binary file
Starting mysqld daemon with databases from /usr/local/mysql/data
STOPPING server from pid file /usr/local/mysql/data/yz-1778.pid
051106 01:54:04  mysqld ended

不知是怎么回事?

[ 本帖最后由 HonestQiao 于 2005-11-6 13:49 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2005-11-06 04:59 |只看该作者

有没有编译

你下的源码包是不是编译了
make install
因为mysql_safe 是脚本所以可以执行!

论坛徽章:
0
3 [报告]
发表于 2005-11-06 13:52 |只看该作者
是的, 是已经编译好的

这是怎么回事呢?

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
4 [报告]
发表于 2005-11-06 14:03 |只看该作者
原帖由 MayerCN 于 2005-11-6 01:55 发表
http://dev.mysql.com/get/Downloa ... 21.tar.gz/from/pick
在这里下的包


# ./mysqld_safe --user=mysql&
[1] 5933
# ./mysqld_safe: lin ...



重新下载,这个文件可能出问题了。

论坛徽章:
0
5 [报告]
发表于 2005-11-06 14:17 |只看该作者
重新下载了, 还是这样呀

# scripts/mysql_install_db --user=mysql
scripts/mysql_install_db: line 1: ./bin/my_print_defaults: cannot execute binary file
Neither host 'yz-1778' 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

论坛徽章:
0
6 [报告]
发表于 2005-11-06 14:21 |只看该作者
有点奇怪的是
执行 bin/my_print_defaults 为出现这种错误

可是我在其它服务器(mysql4.0版)的直接执行 bin/my_print_defaults 是可以执行的

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
7 [报告]
发表于 2005-11-06 14:52 |只看该作者
什么操作系统?

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
8 [报告]
发表于 2005-11-06 14:53 |只看该作者
还有,我是说,在其他地方下载。

论坛徽章:
0
9 [报告]
发表于 2005-11-06 15:03 |只看该作者
应该是Linux系统版本不对, 所以无法执行

操作系统是 Linux yz-1778 2.4.21-27.ELsmp

下载的是
Linux (IA64, Red Hat AS 2.1, static, gcc) 版的

我另外下载
Linux (x86, glibc-2.2, static (Standard only), gcc) 版的mysql5 就可以用了

论坛徽章:
0
10 [报告]
发表于 2005-11-06 15:07 |只看该作者
服务器的系统应该是 Red Hat Linux Enterprise Edition 3

下面这些mysql版本是指什么, 我不太清楚, 看到 redhat 比较接近, 就下这个了, 谁知不能用

Linux (x86, glibc-2.2, static (Standard only), gcc)

Linux (x86, glibc-2.3, dynamic, gcc)

Linux (S/390X, glibc-2.3, dynamic, gcc)

Linux (IA64, Red Hat AS 2.1, static, gcc)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP