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