VPS侦探论坛

 找回密码
 注册
查看: 421|回复: 2

求助:mysql启动失败

[复制链接]
发表于 2020-8-24 10:28:06 | 显示全部楼层 |阅读模式



机器上装的是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[735]: No DHCPOFFERS received.
8月 24 10:05:27 debian dhclient[735]: No working leases in persistent database - sleeping.
8月 24 10:05:42 debian systemd[1]: 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[32386]: Starting MySQL
8月 24 10:05:42 debian mysql[32386]: .Logging to '/var/log/mysql/error.log'.
8月 24 10:05:42 debian mysql[32386]: 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[32386]: The server quit without updating PID file (/var/run/mysqld/mysqld.pid). ... failed!
8月 24 10:05:43 debian systemd[1]: mysql.service: control process exited, code=exited status=1
8月 24 10:05:43 debian systemd[1]: 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[1]: Unit mysql.service entered failed state.
root@debian:~#


美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-8-25 11:03:15 | 显示全部楼层


PID是 /var/run/mysqld/mysqld.pid ,有可能是你通过apt-get另外安装了一个mysql,你可以dpkg -l|grep mysql 看一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-9-14 09:49:33 | 显示全部楼层



谢谢军哥,这个问题已经处理好了

确实是军哥说的,有apt-get装过另外一个mysql
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2020-11-30 03:15 , Processed in 0.099123 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表