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.


 

 問題:輸入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.

 

在終端輸入"systemctl status mysql.service"或 "journalctl -xe" ,輸出的內容跟網上遇到上面問題的人不一樣(第二段,下面這句)

我是——

Active: inactive(dead)(Result: exit-code) since

他人是——

Active: failed

 

后來發現虛擬機里沒有/var/lib/mysql,重裝后也沒有,所以根據下面這個鏈接進行重裝

https://blog.csdn.net/weixin_41918841/article/details/82993537?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase

(到第二步就安裝完成了),終於解決


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM