問題:輸入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
(到第二步就安裝完成了),終於解決