|
下午在两个虚拟机 尝试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! |
|