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