国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

mysql:Can't start server: can't create PID file: No space left on device

2024-07-24 13:07:15
字體:
來源:轉載
供稿:網友
這篇文章主要介紹了mysql啟動失敗不能正常啟動并報錯Can't start server: can't create PID file: No space left on device問題解決方法,需要的朋友可以參考下
 

解決案例一:

今天公司服務器上所有的網站都出現問題,有的打開沒有數據,有的直接是空白。

我的第一反應就是數據庫掛了。打開遠程,進了系統,service mysqld stop 失敗。service mysqld start等了好大一會,提示Timeout error occurred trying to start MySQL Daemon

一開始以為是mysql用戶問題,查詢系統用戶完全沒有問題。

打開log日志一看,問題出現了Can't start server: can't create PID file: No space left on device;

df -h看了一下磁盤,500G的硬盤已經使用了100%,可用為0;

一咬牙刪光了var/log文件夾。沒想到的是log日志已經積累達到32G。

狂汗!!!而后啟動mysql一切正常了。

解決案例二:

最近在維護linux服務器時發現,網站打不開了,經過檢查發現是mysql數據庫宕掉了,死活就是啟動不起來。

然后看mysql日志文件

mysql:Can't start server: can't create PID file: No space left on device

出現Can't start server: can't create PID file: No space left on device

這個錯誤。

提示磁盤空間不足

后用df -h 命令查看

mysql:Can't start server: can't create PID file: No space left on device

竟然發現磁盤容量全部用完了,于是要查看是誰占用了
用命令:
find /tmp -size +100000000c
查找下磁盤中大于100M的文件
竟然出現:

mysql:Can't start server: can't create PID file: No space left on device

tomcat的日志文件占用了443G,真是可惡啊啊
 
 刪掉此日志文件
rm -rf catalina.out
重新啟動mysql即可。
最好重啟linux os。

解決案例三:

mysql啟動失敗,日志顯示如下: 

復制代碼代碼如下:

120321 14:23:54 InnoDB: 1.1.8 started; log sequence number 1595695
120321 14:23:54 [ERROR] /usr/libexec/mysqld: Error writing file ‘/var/run/mysqld/mysqld.pid' (Errcode: 28)
120321 14:23:54 [ERROR] Can't start server: can't create PID file: No space left on device
120321 14:23:54 mysqld_safe Number of processes running now: 0
120321 14:23:54 mysqld_safe mysqld restarted
120321 14:23:54 [Note] Plugin ‘FEDERATED' is disabled.
120321 14:23:54 InnoDB: The InnoDB memory heap is disabled
120321 14:23:54 InnoDB: Mutexes and rw_locks use InnoDB's own implementation
120321 14:23:54 InnoDB: Compressed tables use zlib 1.2.3
120321 14:23:54 InnoDB: Using Linux native AIO
120321 14:23:54 InnoDB: Initializing buffer pool, size = 128.0M
120321 14:23:54 InnoDB: Completed initialization of buffer pool
120321 14:23:54 InnoDB: highest supported file format is Barracuda.
120321 14:23:55  InnoDB: Waiting for the background threads to start

 
其實答案很簡單,
No space left on device 沒有磁盤空間了。      清理/var/log的空間!

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 孙吴县| 蒙山县| 桐柏县| 沙雅县| 太湖县| 成都市| 华容县| 阿图什市| 永宁县| 宜宾县| 增城市| 乌兰县| 泸西县| 蕲春县| 麻阳| 内江市| 田阳县| 温泉县| 都匀市| 五华县| 木兰县| 杂多县| 团风县| 中超| 正蓝旗| 承德市| 平乐县| 阜宁县| 阳信县| 阳东县| 灵武市| 峨眉山市| 娱乐| 武川县| 汉沽区| 昌都县| 牙克石市| 秀山| 高要市| 葫芦岛市| 如东县|