Home >Database >Mysql Tutorial >磁盘已满造成的mysql启动失败问题分享_MySQL

磁盘已满造成的mysql启动失败问题分享_MySQL

WBOY
WBOYOriginal
2016-06-01 13:16:49931browse

突然发现mysql死活都启不起来了:

/etc/init.d/mysql restart
Stopping MySQL:                                            [FAILED]
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL:                                            [FAILED]
kill了不行,无奈之下再用

service mysqld status
mysqld (pid 21847) is running...
心中很是纳闷呀,它不是运行着吗? 四处搜查,发现线索

df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/simfs            10321208  10315872         0 100% /```
好吧,知道原因了,磁盘满了呀 找点垃圾文件出来删除吧

cd / 到根目录下看看哪个文件夹大

du -sk * | sort -n
tmp目录里东西乱多多的呀,直接删除了

最后

/etc/init.d/mysql restart
Stopping MySQL:                                            [  OK  ]
Starting MySQL:                                            [  OK  ]
哦也~~~~打完收功,别看文章这么短,查的过程相当繁琐呀,记录一下,要是再有人遇到类似问题,不要再走弯路了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn