Linux启动或重启mysql失败:Job for mysqld.service failed because the control process exited with error code.
·
问题描述:
1.输入命令:systemctl start mysqld 或 service mysql start 或 service mysql restart
systemctl start mysqld
2.查看mysql的状态
service mysqld status
解决方案
- 查看mysql的权限
cd /var/lib/mysql
ls -lrt
2.查看进程 #ps -aux|grep mysql
ps -aux|grep mysql
3.KILL所有的进程:kill -9 pid 即 kill -9 23368
kill -9 23368
kill -9 23555
4.启动MYSQL :service mysql start
service mysql start
5.mysql运行状态:service mysql status
service mysql status
更多推荐
已为社区贡献2条内容
所有评论(0)