Linux启动或重启mysql失败:Job for mysqld.service failed because the control process exited with error code.

问题描述:

1.输入命令:systemctl start mysqld 或 service mysql start 或 service mysql restart

systemctl start mysqld


2.查看mysql的状态

 service mysqld status

Linux启动或重启mysql失败:Job for mysqld.service failed because the control process exited with error code._第1张图片

解决方案

  1. 查看mysql的权限
cd /var/lib/mysql
ls -lrt

Linux启动或重启mysql失败:Job for mysqld.service failed because the control process exited with error code._第2张图片
2.查看进程 #ps -aux|grep mysql

ps -aux|grep mysql


在这里插入图片描述
3.KILL所有的进程:kill -9 pid 即 kill -9 23368

 kill -9 23368
 kill -9 23555

在这里插入图片描述
4.启动MYSQL :service mysql start

service mysql start

在这里插入图片描述
5.mysql运行状态:service mysql status

service mysql status

Linux启动或重启mysql失败:Job for mysqld.service failed because the control process exited with error code._第3张图片

你可能感兴趣的:(mysql,Linux)