mysqld启动后退出报错:Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.

问题

MySQL 启动报错:Job for mysqld.service failed because the control process exited with error code.

解决

因为/var/lib/mysql目录权限不够

chmod -R 777 /var/lib/mysql
systemctl start mysqld&

检查启动情况:

ps -ef |grep mysql

posted @ 2024-02-04 23:08  妙妙屋~  阅读(1506)  评论(0)    收藏  举报