在Linux上重启MySQL服务报错“Job for mysqld.service failed because the control process exited with error code“
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
异常
在Linux上执行service mysqld restart
命令重启MySQL服务卡住。我们查看mysql的日志文件,发现错误:
InnoDB: Unable to lock ./ibdata1 error: 11
原因
查看日志中的提示:Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
。说明其他的线程启动已经在运行无法再次创建相关的读文件进程的权限,即ibddata文件已经有人读取了,无法再次启动。
我们查看mysql状态如下:
解决
直接重启服务器。
重启后,再次查看MySQL状态就正常了。




A beautiful web dashboard for Linux
最近提交(Master分支:7 个月前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)