mysqld 挂了,怎么快速重启??

源码节点 发布于 2019/11/26 19:33
阅读 355
收藏 0

【DevOps必读】产品经理与程序员之间如何破局?>>>

service mysqld status
Redirecting to /bin/systemctl status mysqld.service
● mysqld.service - MySQL Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Tue 2019-11-26 19:32:09 CST; 3s ago
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
  Process: 26148 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=1/FAILURE)
  Process: 26129 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
 Main PID: 24709 (code=exited, status=2)

Nov 26 19:32:08 localhost.localdomain systemd[1]: Failed to start MySQL Server.
Nov 26 19:32:08 localhost.localdomain systemd[1]: Unit mysqld.service entered failed state.
Nov 26 19:32:08 localhost.localdomain systemd[1]: mysqld.service failed.
Nov 26 19:32:09 localhost.localdomain systemd[1]: mysqld.service holdoff time over, scheduling restart.
Nov 26 19:32:09 localhost.localdomain systemd[1]: Stopped MySQL Server.
Nov 26 19:32:09 localhost.localdomain systemd[1]: start request repeated too quickly for mysqld.service
Nov 26 19:32:09 localhost.localdomain systemd[1]: Failed to start MySQL Server.
Nov 26 19:32:09 localhost.localdomain systemd[1]: Unit mysqld.service entered failed state.
Nov 26 19:32:09 localhost.localdomain systemd[1]: mysqld.service failed.
 

加载中
0
巴拉迪维
巴拉迪维

你这是用 systemctl 启动 mysql 失败,估计是配置文件出错了,看看 `/var/log/mysqld.log` 日志什么情况吧!

0
不能告诉你我的名字
不能告诉你我的名字

```bash

Nov 26 19:32:09 localhost.localdomain systemd[1]: Failed to start MySQL Server.
Nov 26 19:32:09 localhost.localdomain systemd[1]: Unit mysqld.service entered failed state.
Nov 26 19:32:09 localhost.localdomain systemd[1]: mysqld.service failed.

```

不是告诉你启动失败了么,看看日志呢

0
S三少S
S三少S

可能是硬盘空间不足了。。。

返回顶部
顶部