lnmp1.2,mysql更新到5.6.23失败,试了两次,求助!!
第一次在安装时,选择5.6版本,最后安装失败。第二次,尽量按照lnmp1.2默认设置安装,成功了。然后再去升级mysql到5.6.23,失败。。
升级失败的日志传上来,军哥看下,谢谢。 groupadd: group 'mysql' already exists
useradd: user 'mysql' already exists
cp: cannot stat `/root/lnmp1.2-full/mysql-5.6.23/support-files/mysql.server': No such file or directory
chmod: cannot access `/etc/init.d/mysql': No such file or directory
Repair databases...
Warning: Using a password on the command line interface can be insecure.
Looking for 'mysql' as: /usr/local/mysql/bin/mysql
Looking for 'mysqlcheck' as: /usr/local/mysql/bin/mysqlcheck
FATAL ERROR: Upgrade failed
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| http://lnmp.org |
+-------------------------------------------+
Starting LNMP...
Starting nginx...done
/bin/lnmp: line 26: /etc/init.d/mysql: No such file or directory
Starting php-fpm Failed loading /usr/local/zend/ZendGuardLoader.so:/usr/local/zend/ZendGuardLoader.so: cannot open shared object file: No such file or directory
done 正常安装成功,应该会有mysql.server 这个文件
你cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql
chmod 755 /etc/init.d/mysql
看看,这个是否存在
而且你这个php的配置也存在问题,ZendGuardLoader也不存在 都是按照教程自动安装的,那个PHP倒不影响,可以正常,主要是升级到MYSQL5.6以后,MYSQL就没办法用了。
按照你的说法
你cp /usr/local/mysql/support-files/mysql.server /etc/init.d/mysql
chmod 755 /etc/init.d/mysql
我操做完,再重启lnmp restart,还是报错。
Stoping LNMP...
Stoping nginx...done
ERROR! MySQL server PID file could not be found!
Gracefully shutting down php-fpm . done
Starting LNMP...
Starting nginx...done
Starting MySQL. ERROR! The server quit without updating PID file (/usr/local/mysql/var/localhost.localdomain.pid).
Starting php-fpm Failed loading /usr/local/zend/ZendGuardLoader.so:/usr/local/zend/ZendGuardLoader.so: cannot open shared object file: No such file or directory
done
回复 4# 的帖子
没具体日志信息没法说
页:
[1]