日期:2014-05-16  浏览次数:20654 次

求高手解决Freebsd7.0安装mysql5.0遇到的奇怪问题。
我在Freebsd下面编译安装mysql5.0之后,启动数据库,提示错误:
rm: /usr/local/mysql/var/: is a directory
eval: cannot create /usr/local/mysql/var/: Is a directory
test: /usr/local/mysql/var/: unexpected operator
tee: /usr/local/mysql/var/: Is a directory
090505 09:35:14 mysqld restarted
rm: /usr/local/mysql/var/: is a directory
eval: cannot create /usr/local/mysql/var/: Is a directory
test: /usr/local/mysql/var/: unexpected operator
tee: /usr/local/mysql/var/: Is a directory
090505 09:35:14 mysqld restarted
rm: /usr/local/mysql/var/: is a directory
eval: cannot create /usr/local/mysql/var/: Is a directory
test: /usr/local/mysql/var/: unexpected operator
tee: /usr/local/mysql/var/: Is a directory
090505 09:35:14 mysqld restarted
rm: /usr/local/mysql/var/: is a directory
eval: cannot create /usr/local/mysql/var/: Is a directory
test: /usr/local/mysql/var/: unexpected operator
tee: /usr/local/mysql/var/: Is a directory
090505 09:35:14 mysqld restarted

一直在循环执行这一段,好像是个死循环,只能kill掉这个进程,在top里面看COMMAND是sh。重新编译还是这样的情况,换了个5.0的其他版本依然这样,但是奇怪的是我的另外一台bsd7.0的机器上装同一个版本的mysql居然是正常的。大家遇到过这样的问题吗?请问该咋解决?谢谢

------解决方案--------------------


检查一下这个

ll /usr/local/mysql/var/
你的系统提示无法创建这个目录,因为已经存在了。如果已经存在,检查一下这个目录的权限。

[color=#FFFFFF][/color]
------解决方案--------------------
/usr/local/mysql/

把这个目录删除。
用root用户