centos7启动MySQL报 Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.


/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  ]

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



猜您在找 Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details. Jenkins报错:Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details. service mysql start ,出现错误Job for mysql.service failed because the control process exited process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details Job for mongod.service failed because the control process exited with error code. See "systemctl status mongod.service" and "journalctl -xe" for details Linux系统Docker启动问题Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" Jenkins++:Job for jenkins.service failed because the control process exited with error code. See "systemctl st Job for mysqld.service failed because the control process exited with error code CentOS7启动SSH服务报:Job for ssh.service failed because the control process exited with error code ubuntu16.04,mysql5.7重启不成功。Restarting mysql (via systemctl): mysql.serviceJob for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service"
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM