WenRou's Blog

新浪微薄腾讯微薄

最新碎语:测试图片碎语哦

您的位置:WenRou's Blog >lnamp> MySQL server PID file could not be found! ... failed!

MySQL server PID file could not be found! ... failed!

检查磁盘是否爆满df -h

结合du -sh    查看具体是哪个目录爆满了

du -sh *    显示当前目录下所有文件的大小

如果是mysql日志文件爆满,解决方法如下:

删除/usr/local/mysql/data下的mysql-bin.000001等文件

注释/etc/my.cnf文件里的log-bin和binlog_format,防止日志文件再次生成,

把log-bin = mysql-bin改为#log-bin = mysql-bin,

把binlog_format=mixed改为#binlog_format=mixed,

重启mysql

记得定时清理/usr/local/下的安装包,有时也会导致磁盘爆满

---

转载请注明本文标题和链接:《MySQL server PID file could not be found! ... failed!

发表评论

34 + 1 =
路人甲 表情
看不清楚?点图切换 Ctrl+Enter快速提交