MySQL error: The partition with /var/lib/mysql is too full!

来源:互联网 发布:early stopping算法 编辑:程序博客网 时间:2024/06/16 19:10

启动mysql
/etc/init.d/mysql start

我遇到了这个问题:MySQL error: The partition with /var/lib/mysql is too full!
于是在网上搜索解决方法:

方法一:
sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql start

无效

方法二:
sudo service mysql stop
sudo service mysql start

有效

分析原因:查看日志 cat /var/log/mysql/error.log 得到下面信息
InnoDB: Check that you do not already have another mysqld process
InnoDB: using the same InnoDB data or log files.
可能是有mysql的服务已经开启了,无法再次开启.
所以将服务关闭再次开启有效.

1 0
原创粉丝点击