问题:输入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
(到第二步就安装完成了),终于解决