[MySQL] SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine

PHP(symfony1.4) + Apache2 + MySQL で動かしているWebサービスのデータ更新作業をしたら、下記のようなエラーが発生しました。

500 | Internal Server Error | Doctrine_Connection_Mysql_Exception
SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine

MySQL

Error 28 の原因

Error 28 は MySQL のための充分なディスク容量の空きスペースがないため発生したようでした。

df コマンドでディスク使用量を確認してみると、見事に 100% 使ってました。

# df -h
Filesystem          サイズ  使用  残り 使用% マウント位置
/dev/mapper/VolGroup00-LogVol00
                      9.1G  8.9G     0 100% /
/dev/xvda1             99M   21M   73M  23% /boot
tmpfs                 129M     0  129M   0% /dev/shm

Error 28 の解決方法

ファイルサイズの大きいログファイルや、不要なファイルを削除することで解決しました。

SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine”;

Error 28 occurs when there is not enough disk space left for MySQL install to run properly. Then you start receiving error 28 messages.

“Error 28” often occurs on

・Filesystem full. Hard drive full.
・Host oversold their shared hosting.
・Host misconfigured their shared MySQL install.

To fix this you must increase the space of your filesystem or make room by deleting files. In other words your hard drive is full and MySQL needs more space.

引用元:Magento – Help! SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine – HTML, XHTML, CSS, Design Questions – eCommerce Software for Growth

以上、SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine エラーを解決した、現場からお送りしました。