centos7启动MySQL报 Job for mysqld.service failed because the control process exited with error code. Se

Posted Tina

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7启动MySQL报 Job for mysqld.service failed because the control process exited with error code. Se相关的知识,希望对你有一定的参考价值。

/var/run/mysqld/的属主和属组属于root,mysql并不能在其中创建文件

手动的新建目录

[root@iz2zei43l28m7vcezzzyyjz apache-tomcat-9.0.0]# mkdir -p /var/run/mysqld/
[root@iz2zei43l28m7vcezzzyyjz apache-tomcat-9.0.0]#  ls -ld /var/run/mysqld/
drwxr-xr-x 2 root root 40 May  6 17:58 /var/run/mysqld/
[root@iz2zei43l28m7vcezzzyyjz apache-tomcat-9.0.0]# chown mysql.mysql /var/run/mysqld/
[root@iz2zei43l28m7vcezzzyyjz apache-tomcat-9.0.0]# /etc/init.d/mysqld start
Starting mysqld (via systemctl):                           [  OK  ]

 

以上是关于centos7启动MySQL报 Job for mysqld.service failed because the control process exited with error code. Se的主要内容,如果未能解决你的问题,请参考以下文章

CentOS7启动SSH服务报:Job for ssh.service failed because the control process exited with error code

MySQL 启动报错:Job for mysqld.service failed because the control process exited with error code.

MySQL 启动报错:Job for mysqld.service failed because the control process exited with error code.

MySQL 启动报错:Job for mysqld.service failed because the control process exited with error code.

Centos7 网络报错Job for iptables.service failed because the control process exited with error code.

mysql启动失败:Job for mysqld.service failed because..