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
錯誤,將解決過程記錄如下。
前提
在啟動之前,在/etc/my.cnf
中加入了下面的內容:
server-id=slave1
解決過程
經過網上搜尋,很多解決方案都是建立/var/run/mysqld/
目錄,缺少這個目錄導致mysql啟動時沒法建立pid檔案。但是我的伺服器上是有這個目錄的。最後查詢mysql官閘道器於server-id的說明發現server-id的型別是Integer
,也就是應該是0、1、2...這樣的數字,而不應該是slave1
這樣的字串,將server-id=slave1
改成server-id=2
以後啟動成功。
相關文章
- Job for mysqld.service failed because the control process exited with error code...MySqlAIError
- Mysql啟動報錯:Job for mysqld.service failed because the control process exited with error code.MySqlAIError
- 安裝MySQL出現Job for mysqld.service failed because the control process exited with error codeMySqlAIError
- Job for docker.service failed because the control process exited with error codeDockerAIError
- Centos httpd模組 Job for httpd.service failed because the control process exited with error code.CentOShttpdAIError
- Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the processErrorExceptionAI
- weblogic報錯: OPatch failed with error code 73WebAIError
- FreeBSD系統下zfs: failed with error 6錯誤的解決方法AIError
- 【ERROR】OPatch failed with error code 73ErrorAI
- git push出現unpack failed: error Missing tree錯誤的解決方法GitAIError
- Go:錯誤 could not launch process: EOF 解決Go
- OPatch failed with error code 73AIError
- Cargo invocation has failed: Error: exit code: 101.解決辦法CargoAIError
- PHP curl error 60 錯誤解決PHPError
- Navicat tnt版本提示“failed to save password error code”的解決辦法AIError
- NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load xxxx錯誤解決方法ErrorAIXMLHTTP
- HTTP 錯誤 500.19- Internal Server Error 錯誤解決方法HTTPServerError
- 【已解決】報錯 NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driverAI
- myeclipse中提示Hot Code Replace Failed提示窗錯誤EclipseAI
- 【Jenkins】data stream error|Error cloning remote repo ‘origin‘ 錯誤解決JenkinsErrorREM
- 解決 eslint 的 Parsing error: Unexpected token 錯誤EsLintError
- HTTP 錯誤 500.21 - Internal Server Error 解決方案HTTPServerError
- Sub-process /usr/bin/dpkg returned an error codeError
- ubuntu下pig報錯ERROR 2999: Unexpected internal error. Failed to create DataStorage的解決UbuntuErrorAIAST
- 真機除錯出現 application installation failed 錯誤 解決方案除錯APPAI
- PHP報錯getimagesize(): SSL operation failed with code 1問題解決方案PHPAI
- SSL錯誤ssl connect error 35的解決方案Error
- mysqldump error1066 錯誤的解決辦法MySqlError
- Dynamics CRM the field cannot be deleted because it is used in one or more process的解決方法delete
- ORA-04030: out of process memory ...(initSubHeap:qk...)的錯誤解決
- IDEA啟動時報Failed to create JVM錯誤的解決IdeaAIJVM
- 解決 yum clean all Error rpmdb open failedErrorAI
- 織夢提示dedecms error warning錯誤的解決方法Error
- 錯誤解決:cc: Internal error: Killed (program cc1)Error
- Js錯誤Error物件詳解JSError物件
- Statistical Process Control in SAP
- WSL:Sub-process /usr/bin/dpkg returned an error code (1)Error
- 啟動idea時, 碰到"failed to load jvm DLL ..."錯誤 解決方案IdeaAIJVM