LInux Mysql 启动时报错: Job for mysqld.service failed because the control process exited with err...解决方法
发布于 2022-09-07    7,803 次阅读
1、启动mysql 报错 service mysqld start Redirecting to /bin/systemctl start mysqld.service Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.serv...

1、启动mysql 报错

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

2、分析错误信息

journalctl -xe

在这里插入图片描述
3、解决方式

chown mysql:mysql -R /var/lib/mysql

4、启动mysql服务

service mysqld start

在这里插入图片描述