1. 程式人生 > >mysql.service failed because the control process exited with error code問題

mysql.service failed because the control process exited with error code問題

騰訊雲ubuntu下配置mysql遠端訪問一開始可以啟動,但後來關掉mysql服務一直重啟失敗

錯誤如下圖所示:
mysql重啟失敗
一開始以為是因為程序結束的方式錯誤,所以就重啟了一下伺服器;後來發現重啟伺服器後也沒什麼用,還是mysql.service failed because the control process exited with error code這個錯誤,一直以為錯誤出在mysql.service:main process exit,code=exited,status=1/failure,一直找不到解決方法!

後來想了一下,我在mysql服務沒停的時候在/etc/mysql/my.cnf->/etc/alternatives/my.cnf檔案里加了一行”bind-address=10.145.154.50”,之後啟動mysql服務就一直失敗。大概猜到了原因:出現此類錯誤可能是由配置檔案錯誤造成的。

這裡寫圖片描述

把新加的bind-address=10.145.154.50刪掉就可以啟動了!

接下來說一下應該把bind-address=10.145.154.50加在什麼地方.
準確的說bind-address=10.145.154.50這樣配置也是錯的,應該配置為bind-address=0.0.0.0,並且這行應該加在/etc/mysql/mysql.conf.d/mysqld.cnf 配置檔案裡.

具體操作如下:
這裡寫圖片描述

這裡寫圖片描述

相關推薦

mysql.service failed because the control process exited with error code問題

騰訊雲ubuntu下配置mysql遠端訪問一開始可以啟動,但後來關掉mysql服務一直重啟失敗 錯誤如下圖所示: 一開始以為是因為程序結束的方式錯誤,所以就重啟了一下伺服器;後來發現重啟伺服器後

Centso7.2安裝mysql報錯Job for mysqld.service failed because the control process exited with error code.

最近安裝了好多環境,忙裡偷閒為安裝的所有環境以及安裝環境的過程中遇到的問題記錄下來。參考來源:https://www.cnblogs.com/qjoanven/p/7699382.html一、centos7.2安裝mysql1、解除安裝系統自帶Mariadb,mariadb是

centos 報錯 “Job for iptables.service failed because the control process exited with error code.”的解決辦法

cau ack res sta ble put use wal ror 原因:因為centos7默認的防火墻是firewalld防火墻,不是使用iptables,因此需要先關閉firewalld服務,或者幹脆使用默認的firewalld防火墻。 操作步驟: 關閉防火墻 1.

Job for network.service failed because the control process exited with error code問題

今天在centOS 7下更改完靜態ip後發現network服務重啟不了,翻遍了網路,嘗試了各種方法,終於解決了。      現把各種解決方法歸納整理,希望能讓後面的同學少走點歪路。。。 首先看問題:執行service network restart命令

centos7下docker啟動失敗--ob for docker.service failed because the control process exited with error code.

今天在配置openshift用docker部署映象的時候,啟動docker發現竟然啟動失敗:     之前是可以啟動的,突然不能啟動了,想到我改了配置檔案: 執行: vim /etc/sysconfig/docker 可能是家的內容有問題

Centos 7不能上網,Job for iptables.service failed because the control process exited with error code.

一、先檢查自己的網路配置資訊:路徑: vi /etc/sysconfig/network-scripts/ifcfg-eno16777736   如圖 重啟網路配置的命令:service network restart或者是systemctl restart net

解決mariadb 啟動時報錯Job for mariadb.service failed because the control process exited with error code. Se

    錯誤:[[email protected] ~]# systemctl start mariadb.service Job for mariadb.service failed because the control process exited

Job for php-fpm.service failed because the control process exited with error code. See "systemctl st

centos7.2環境下安裝php5.6.17。 啟動失敗。  Job for php-fpm.service failed because the control process exited with error code. See "systemctl stat

centos出現這個錯誤:Job for sshd.service failed because the control process exited with error code.

這是因為SElinux啟用了,關閉就好了。在/etc/selinux/config檔案中如下修改,設定SELINUX=disabled:# This file controls the state of SELinux on the system.# SELINUX= can

CentOS7啟動SSH服務報:Job for ssh.service failed because the control process exited with error code.......

CentOS7啟動SSH服務報:Job for ssh.service failed because the control process exited with error codesee systemctl status ssh.service and journalc

salt出錯Job for salt-master.service failed because the control process exited with error code.

問題 &emsap; 在虛擬機器上使用salt的時候,因為一邊看文件一邊學習,突然之前salt就用不了了,然後 ps aux | grep salt &emsap; 發現salt-maste和salt-minion都在,準備重啟一下sa

解決Job for docker.service failed because the control process exited with error code. See "systemctl s

在ubuntu16.04下安裝安裝docker docker daemon啟不起來,報如下錯誤: Job for docker.service failed because the control process exited with error code. See "s

【linux錯誤】Job for vsftpd.service failed because the control process exited with error code. See "syst

我的環境:阿里雲centos7.2搭建ftp啟動vsftpd服務,報錯:Job for vsftpd.service failed because the control process exited with error code. See "systemctl statu

centos7啟動MySQL時候突然進不去Job for mysqld.service failed because the control process exited with error cod

mysql突然進不去了,不知道什魔鬼 [[email protected] ~]# systemctl start mysqld.service Job for mysqld.service failed because the control pro

centos7啟動iptables時報Job for iptables.service failed because the control process exited with error cod

異常信息 bsp stop input emctl tro stat mct centos7 centos7啟動iptables時報Job for iptables.service failed because the control process exi

Job for iptables.service failed because the control process exit with error code 修復

Job for iptables.service failed because the control process exited with error code. See “systemctl status iptables.service” and “journalctl -xe”

mysql啟動失敗--Job for mysqld.service failed because the control process exited

1.centos7啟動報錯 Starting mysqld (via systemctl): Job for mysqld.service failed because the control process exited with error code. See "systemctl s

解決Docker啟動伺服器連結失敗-Job for docker.service failed because the control process exited error code

今天裝Docker炸了一波,老是連不上伺服器,提示: Job for docker.service failed because the control 就像這樣,使用  docker version 命令以後,只顯示了client ,提示錯誤 使用 sudo

關於Mariadb啟動報錯Job for mariadb.service failed because the control process exited...

MariaDB重啟後,執行 systemctl start mariadb 啟動報錯 Job for mariadb.service failed because the control process exited with error code. See "systemctl sta

伺服器宕機,mysql無法啟動,job for mysql.service failed because the process exited with error code,資料庫備份與恢復

[問題現象] 伺服器在執行過程中,因人為意外導致電源被拔,伺服器宕機,mysql重啟不成功,報錯如下 根據提示,輸入systemctl status mysql.service和journalctl -xe檢視日誌,經過一番百度谷歌折騰也是無果。(很多時候,不能因為突發事件就“病急亂投醫”) &nb