容器技术交流

 找回密码
 立即注册
查看: 4393|回复: 1

mysql 在 debian 5.0.3 openvz中安装故障

[复制链接]
发表于 2009-12-1 17:21:23 | 显示全部楼层 |阅读模式
下午在两个虚拟机 尝试make  famp
在一个 debian 5.0.3 openvz的环境尝试 famp。
到最后没有错误提示退出了, 但是 不能访问后台, 检查端口和进程发现 mysql没有启动
于是按照 脚本中一步一步的 安装,直到 make ; make install
都没有错误
但是之后 遇到很多问题,mysql 无论如何也启动不了。
$famp_path/mysql/bin/mysql_install_db --user=famp
这一命令就从来没有通过过


vztst00:/usr/local/mysql# bin/mysql_install_db --user=famp
Neither host 'deb0.test.com' 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

这里搜索了一些帖子, 检查  /etc/hostname, /etc/hosts, ping localhost, 都没有
后来 在ubuntu尝试 直接运行resolveip 看到提示 说 这个命令属于mysql-server的包,
于是 将 /usr/local/mysql/bin/resolveip cp 到 /usr/bin/resolveip 解决这个问题;


还有 一下 .sql 文件make install 后到了  /usr/share 中,而 权限是 root,


而最终 以下的这些错误一直没法解决
尤其是 /usr/sbin/mysqld: unknown option '--skip-bdb'
看着很想是mysql 脚本之间的参数的问题 :(

l# bin/mysql_install_db --user=famp --force
Installing MySQL system tables...
091201 12:03:39 [Warning] Ignoring user change to 'famp' because the user was set to 'mysql' earlier on the command line

091201 12:03:39 [ERROR] /usr/sbin/mysqld: unknown option '--skip-bdb'
091201 12:03:39 [ERROR] Aborting

091201 12:03:39 [Note] /usr/sbin/mysqld: Shutdown complete


Installation of system tables failed!  Examine the logs in
/var/lib/mysql for more information.

You can try to start the mysqld daemon with:

    shell> /usr/sbin/mysqld --skip-grant &

and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:

    shell> /usr/bin/mysql -u root mysql
    mysql> show tables

Try 'mysqld --help' if you have problems with paths.  Using --log
gives you a log in /var/lib/mysql that may be helpful.

The latest information about MySQL is available on the web at
http://www.mysql.com/.  Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS.  Another information source are the
MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us!  And remember, if
you do mail us, you MUST use the /usr/scripts/mysqlbug script!
 楼主| 发表于 2009-12-1 17:24:12 | 显示全部楼层
本帖最后由 DongDongDong 于 2009-12-1 17:33 编辑

在 另外一个  xen dom-u   oracle enterprise 5u4 上 非常顺利
./install 后 所有组件都正常工作了
::)

这台 5u4是按照
http://www.oracle.com/technology/global/cn/obe/ovm/ovmel5pvmdb11gr1/ovmel5pvmdb11gr1.htm
这个文档安装的,选了的包与文档完全相同,
rpm 检查编译依赖 和wget 等 都已经安装了
Oracle de enterprise还是可信的,而且提供下载,随便填个mail就可以
也没有 红帽rhn那些捣乱的包, 文档也齐全

不知道是openvz的问题还是 debian的,
有时间再在openvz的CentOS上测试下
openvz明显缺乏文档(至少是中文)

虚拟化今后是必然的,
希望 BSD 大虾们能开发下 jail
至少弄点入门帖子

多谢了
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-11 07:54 , Processed in 0.026066 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表