数据库启动不了,求救。
[ ok ] Stopping mysql (via systemctl): mysql.service.Gracefully shutting down php-fpm . done
Starting LNMP...
Starting nginx...done
[....] Starting mysql (via systemctl): mysql.serviceJob for mysql.service failed . See 'systemctl status mysql.service' and 'journalctl -xn' for details.
failed!
Starting php-fpmdone
root@Peng:~# 'systemctl status mysql.service'
-bash: systemctl status mysql.service: command not found
root@Peng:~# systemctl status mysql.service
● mysql.service - LSB: start and stop MySQL
Loaded: loaded (/etc/init.d/mysql)
Active: failed (Result: exit-code) since Tue 2015-07-28 16:26:12 CST; 21s ago
Process: 22207 ExecStop=/etc/init.d/mysql stop (code=exited, status=0/SUCCESS)
Process: 29700 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)
Jul 28 16:26:11 Peng mysql: Starting MySQL
Jul 28 16:26:12 Peng mysql: .The server quit without updating PID file (/var/run/mysqld/mysqld.pid). ... failed!
Jul 28 16:26:12 Peng systemd: mysql.service: control process exited, code=exited status=1
Jul 28 16:26:12 Peng systemd: Failed to start LSB: start and stop MySQL.
Jul 28 16:26:12 Peng systemd: Unit mysql.service entered failed state.
root@Peng:~# journalctl -xn
-- Logs begin at Tue 2015-07-28 11:52:28 CST, end at Tue 2015-07-28 16:26:12 CST. --
Jul 28 16:17:01 Peng CRON: pam_unix(cron:session): session opened for user root by (uid=0)
Jul 28 16:17:01 Peng CRON: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jul 28 16:17:01 Peng CRON: pam_unix(cron:session): session closed for user root
Jul 28 16:22:48 Peng sshd: Accepted password for root from 113.97.110.85 port 52737 ssh2
Jul 28 16:22:48 Peng sshd: pam_unix(sshd:session): session opened for user root by (uid=0)
Jul 28 16:26:11 Peng mysql: Starting MySQL
Jul 28 16:26:12 Peng mysql: .The server quit without updating PID file (/var/run/mysqld/mysqld.pid). ... failed!
Jul 28 16:26:12 Peng systemd: mysql.service: control process exited, code=exited status=1
Jul 28 16:26:12 Peng systemd: Failed to start LSB: start and stop MySQL.
-- Subject: Unit mysql.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mysql.service has failed.
--
-- The result is failed.
Jul 28 16:26:12 Peng systemd: Unit mysql.service entered failed state.
root@Peng:~#
系统使用的是 Debian8 :lol dpkg --list|grep mysql看一下
可能安装了mysql-client造成的,如果存在的话删除就行了
或有其他的如/etc/mysql/my.cnf的配置文件存在影响的 要删掉 libmysqlclient18:amd64???如何删除?
回复 5# 的帖子
apt-get purge mysql-common
页:
[1]