Job for mysqld.service failed because the control process exited with error code(虚拟机启动mysql服务)

虚拟机上启动mysql,报如下错误

Job for mysqld.service failed because the control process exited with error code. See “systemctl status mysqld.service” and “journalctl -xe” for details.

vi /var/log/mysqld.log

编辑mysqld.log,查看日志,你会发现ERROR信息
根据你的报错信息再进行解决
例如我的


显示无法启动服务,端口号地址被占用,这时我想到之前用docker部了一个mysql服务,然后去down掉就ok了,具体解决方法依个人情况而定。

发布了39 篇原创文章 · 获赞 47 · 访问量 4905

猜你喜欢

转载自blog.csdn.net/qq_42520112/article/details/100885815