[求助]安装完LNMP后MySQL出错
安装完LNMP后MySQL出错,重启LNMP显示:Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
Nginx program is reloding!
MySQL manager or server PID file could not be found! ... failed!
Starting MySQL
.Manager of pid-file quit without updating file. ... failed!
Shutting down php_fpmdone
Starting php_fpmdone
用find / -iname *.err查找,只查到这个文件是.err的
/root/lnmp0.6-full/nginx-0.7.67/objs/autoconf.err
/usr/local/mysql# ls 显示的文件目录只有这些:
bindocsincludeliblibexecmysql-testsharesql-bench
在debian下安装了两遍LNMP还是同样的错误,本人小白一个,不知道靠这些信息各位大侠能不能提供解决方案? 发/usr/local/mysql/var/主机名.err 日志 原帖由 licess 于 2011-4-9 10:53 发表 https://bbs.vpser.net/images/common/back.gif
发/usr/local/mysql/var/主机名.err 日志
我不是说了吗,/usr/local/mysql/下没有var文件夹,更没有什么以err为后缀的日志文件。
回复 1# 的帖子
看日志像是resolveip的问题,执行下面再安装试试cp /usr/local/mysql/bin/resolveip /usr/bin/resolveip 原帖由 licess 于 2011-4-9 12:34 发表 https://bbs.vpser.net/images/common/back.gif
看日志像是resolveip的问题,执行下面再安装试试
cp /usr/local/mysql/bin/resolveip /usr/bin/resolveip
试了,还是一样出错,不过我手动新建文件夹/usr/local/mysql/var,并且在my.cnf中添加
datadir=/usr/local/mysql/var,重启LNMP后有/usr/local/mysql/var/主机名.err的日志文件,内容如下:
110409 16:34:20 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
^G/usr/local/mysql/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
110409 16:34:21 Aborting
110409 16:34:21 /usr/local/mysql/libexec/mysqld: Shutdown complete
110409 16:34:21 mysqld_safe mysqld from pid file /usr/local/mysql/var/BTplugTiny.pid ended
110409 16:38:57 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
^G/usr/local/mysql/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
110409 16:38:57 Aborting
110409 16:38:57 /usr/local/mysql/libexec/mysqld: Shutdown complete
110409 16:38:57 mysqld_safe mysqld from pid file /usr/local/mysql/var/BTplugTiny.pid ended
网上查了一下,说是权限问题,于是我运行了一下,但还是不行。
chgrp -R mysql ./var && chown -R mysql ./var
页:
[1]