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
- Centos httpd模組 Job for httpd.service failed because the control process exited with error code.CentOShttpdAIError
- 解決錯誤:ASP.NET Error: Failed to access IIS metabaseASP.NETErrorAI
- 記一次OPatch failed with error code 73錯誤AIError
- FreeBSD系統下zfs: failed with error 6錯誤的解決方法AIError
- Go:錯誤 could not launch process: EOF 解決Go
- 安裝Grid Control , OPMN Process Manager failed to start 問題解決AI
- Datastore error in 'dirbdb'錯誤解決ASTError
- git push出現unpack failed: error Missing tree錯誤的解決方法GitAIError
- Ping:Transmit Failed, Error Code 65問題解決MITAIError
- PHP curl error 60 錯誤解決PHPError
- IMP-00017: following statement failed with ORACLE error 957錯誤的解決方法AIOracleError
- opatch error code 73 PrereqSession failed Invalid patch location 解決ErrorSessionAI
- weblogic報錯: OPatch failed with error code 73WebAIError
- 解決 Python UnicodeEncodeError 錯誤PythonUnicodeError
- 安裝GRID CONTROL The OPMN Process Manager failed to start報錯處理AI
- 【ERROR】OPatch failed with error code 73ErrorAI
- client backup was not attempted because backup window closed 錯誤解決一例client
- HTTP 錯誤 500.19- Internal Server Error 錯誤解決方法HTTPServerError
- error on auto execute of job "SYS"."PURGE_LOG"錯誤分析Error
- INSTALL_FAILED_NO_MATCHING_ABIS錯誤解決AI
- ORA-00600: internal error code, arguments: [13310], [],錯誤解決Error
- ORA-00600: internal error code, arguments: [keltnfy-ldmInit] 錯誤解決Error
- HTTP 錯誤 500.21 - Internal Server Error 解決方案HTTPServerError
- TNS-04414 file error 錯誤解決Error
- Navicat tnt版本提示“failed to save password error code”的解決辦法AIError
- OPatch failed with error code 73AIError
- Dynamics CRM the field cannot be deleted because it is used in one or more process的解決方法delete
- Failed to run the WC DB work queue associated with 錯誤的解決AI
- Oracle Job ORA-12005 錯誤的解決Oracle
- 【已解決】報錯 NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driverAI
- [Modules/zlibmodule.o] Error 1錯誤解決IBMError
- Cargo invocation has failed: Error: exit code: 101.解決辦法CargoAIError
- Sublime Text 2報 Decode error - output not utf-8 錯誤的解決辦法Error
- Sublime Text 2報“Decode error - output not utf-8”錯誤的解決辦法Error
- IDEA啟動時報Failed to create JVM錯誤的解決IdeaAIJVM