mysql无法启动ERROR! MySQL is running but PID file could not be found

执行命令:service mysql status 

提示:ERROR! MySQL is running but PID file could not be found 

搜索了一下,有人说可能是硬盘满了,清理下垃圾文件。 

这才恍然明白,刚刚用vi查看日志文件提示那个错误的原因。 

在根目录/下执行命令:df -h 

 

输出如下:

 

[root@localhost /]# df -h

Filesystem                    Size  Used Avail Use% Mounted on

**/dev/mapper/VolGroup-lv_root   50G   50G   0G  100% /**

tmpfs                         1.9G     0  1.9G   0% /dev/shm

/dev/sda1                     485M   39M  421M   9% /boot

/dev/mapper/VolGroup-lv_home  534G  824M  506G   1% /home

[root@localhost /]# 

 

 

/dev/mapper/VolGroup-lv_root使用已经100%,一点空间也没有了。 

然后使用 du -m –max-depth=1 命令查看各目录的空间占用情况。


清除文件:
truncate -s 0 /logs/access.log

参考:
http://blog.csdn.net/testcs_dn/article/details/44020183
http://www.thinksaas.cn/topics/0/687/687635.html

 

修改时间 2018-04-25

声明:本站所有文章和图片,如无特殊说明,均为原创发布,转载请注明出处。
随机推荐
URLSearchParams 对象
Express 使用 cors 模块支持跨域
github Support for password authentication was removed
Wordpress 使用 tag 标签获取文章列表的方法
如何使主题支持 Woocommerce
Linux netstat 命令
WordPress 常用的路径
MySQL 批量修改时间