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刪除。



猜您在找 mysql—Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details. Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details. linux----------啟動network的時候報錯Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details. docker 啟動失敗 Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. 啟動Nginx服務失敗:Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.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."解決辦法 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. Restarting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details. Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details.
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM