VPS侦探论坛

 找回密码
 注册
查看: 3169|回复: 4

mysql不能启动了

[复制链接]
发表于 2019-8-30 15:25:50 | 显示全部楼层 |阅读模式

mysql报错,Starting mysql (via systemctl): mysql.serviceJob for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
我重新安装的lnmp1.6,然后将数据库目录指到原目录。还是报这个错误
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-8-30 15:52:39 | 显示全部楼层


如果执行systemctl status mysql.service
mysql.service - LSB: start and stop MySQL
   Loaded: loaded (/etc/init.d/mysql; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2019-08-30 15:50:16 C
     Docs: man:systemd-sysv-generator(8)
  Process: 23291 ExecStop=/etc/init.d/mysql stop (code=exited, status
  Process: 24174 ExecStart=/etc/init.d/mysql start (code=exited, stat

Aug 30 15:50:15 iZ28af1l80eZ systemd[1]: Starting LSB: start and stop
Aug 30 15:50:15 iZ28af1l80eZ mysql[24174]: Starting MySQL
Aug 30 15:50:16 iZ28af1l80eZ mysql[24174]: . * The server quit withou
Aug 30 15:50:16 iZ28af1l80eZ systemd[1]: mysql.service: Control proce
Aug 30 15:50:16 iZ28af1l80eZ systemd[1]: Failed to start LSB: start a
Aug 30 15:50:16 iZ28af1l80eZ systemd[1]: mysql.service: Unit entered
Aug 30 15:50:16 iZ28af1l80eZ systemd[1]: mysql.service: Failed with r


执行journalctl -xe
-- Subject: Unit mysql.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-dev
--
-- Unit mysql.service has failed.
--
-- The result is failed.
Aug 30 15:50:16 iZ28af1l80eZ systemd[1]: mysql.service: Unit entered
Aug 30 15:50:16 iZ28af1l80eZ systemd[1]: mysql.service: Failed with r
Aug 30 15:52:37 iZ28af1l80eZ systemd[1]: Starting Cleanup of Temporar
-- Subject: Unit systemd-tmpfiles-clean.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-dev
--
-- Unit systemd-tmpfiles-clean.service has begun starting up.
Aug 30 15:52:37 iZ28af1l80eZ systemd-tmpfiles[24735]: [/usr/lib/tmpfi
Aug 30 15:52:37 iZ28af1l80eZ systemd[1]: Started Cleanup of Temporary
-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-dev
--
-- Unit systemd-tmpfiles-clean.service has finished starting up.
--
-- The start-up result is done.
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-8-30 19:48:30 | 显示全部楼层

按反馈必读要求提供mysql日志
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-8-30 20:04:40 | 显示全部楼层



lnmp1.5的日志在哪里?是数据data文件下吗?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-8-31 09:13:18 | 显示全部楼层

guojoa 发表于 2019-8-30 20:04
lnmp1.5的日志在哪里?是数据data文件下吗?

置顶帖反馈必读里有具体说明

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-22 12:37 , Processed in 0.026440 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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