InnoDB: Fatal error: cannot allocate memory for the buffer pool

這個錯誤訊息如同字面上所說的,就是沒法從buffer pool取得記憶體,google有一些解法,我是參考這篇

解決方法有幾個

1. 加實體記憶體

2. 用swap來解決

3. 降低MySQL buffer pool大小

改my.cnf

innodb_buffer_pool_size=64M

再重新啟動mysql,之後持續觀察mysql是否還會crash。

我先用3,結果仍然會crash,swap的部份因為硬碟空間用完了所以暫時沒法用XD

最後解決方法就是把站搬去另一台主機lol

Comments

comments

Leave a Reply

Your email address will not be published. Required fields are marked *