求助:mysql启动失败
机器上装的是lnmp1.6,mysql用的是5.7,昨天reboot机器后,发现mysql重启不了请教军哥,这要咋个处理呢?谢谢了!
root@debian:~# lnmp mysql start
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
[....] Starting mysql (via systemctl): mysql.serviceJob for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -xn' for details.
failed!
root@debian:~# journalctl -xn
-- Logs begin at 一 2020-08-24 01:22:57 CST, end at 一 2020-08-24 10:05:43 CST. --
8月 24 10:05:27 debian dhclient: No DHCPOFFERS received.
8月 24 10:05:27 debian dhclient: No working leases in persistent database - sleeping.
8月 24 10:05:42 debian systemd: Starting LSB: start and stop MySQL...
-- Subject: Unit mysql.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mysql.service has begun starting up.
8月 24 10:05:42 debian mysql: Starting MySQL
8月 24 10:05:42 debian mysql: .Logging to '/var/log/mysql/error.log'.
8月 24 10:05:42 debian mysql: 2020-08-24T02:05:42.591490Z mysqld_safe Directory '/var/run/mysqld' for UNIX socket file don't exists.
8月 24 10:05:43 debian mysql: The server quit without updating PID file (/var/run/mysqld/mysqld.pid). ... failed!
8月 24 10:05:43 debian systemd: mysql.service: control process exited, code=exited status=1
8月 24 10:05:43 debian 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.
8月 24 10:05:43 debian systemd: Unit mysql.service entered failed state.
root@debian:~#
PID是 /var/run/mysqld/mysqld.pid ,有可能是你通过apt-get另外安装了一个mysql,你可以dpkg -l|grep mysql 看一下
谢谢军哥,这个问题已经处理好了
确实是军哥说的,有apt-get装过另外一个mysql
页:
[1]