安装后mysql一直无法启动,会是什么原因?
重启动报错root@ubuntu:/etc# /root/lnmp restart
=========================================================================
Manager for LNMP V1.1,Written by Licess
Stoping LNMP...
Stoping nginx...done
Shutting down php_fpm . done
* MySQL manager or server PID file could not be found!
Starting LNMP...
Starting nginx...done
Starting php_fpmdone
Starting MySQL
. * Manager of pid-file quit without updating file.
=========================================================================
查看/usr/local/mysql/var下面的err文件,有这个错误
=========================================================================
150329 07:06:57 mysqld_safe mysqld from pid file /usr/local/mysql/var/ubuntu.pid ended
150329 07:18:10 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
1503297:18:10 Fatal error: Can't change to run as user 'mysql' ;Please check that the user exists!
========================================================================= 查看/etc/passwd文件,里面有mysql这个用户啊。
执行adduser mysql也说该用户已经存在了呀。 你执行dpkg -l|grep mysql看一下系统内是否存在其他mysql
或找一下是否存在其他my.cnf 执行了dpkg -l那句,没有结果出来,貌似没安装MySQL?
不过我执行mysql -uroot,告诉我
===================================
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
这到底是安装了还是没安装?
小白一个,抱歉哈,多指教~ 没其他错误没法说,建议换其他系统试试看 哪里有卸载指南?我想卸载了重装一下试试看。。。
谢谢了 卸载 ./uninstall.sh
页:
[1]