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

1. 问题描述

1.1 在Linux安装完mysql后,尝试用命令systemctl start mysqld出现错误,Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.

2. 解决方法

2.1 删除/var/lib/mysql文件夹

rm -rf /var/lib/mysql

3. 重新启动mysql,成功解决问题

posted @ 2022-05-19 21:31  递茶大户  阅读(423)  评论(0编辑  收藏  举报