MySQL error 28 and solution

by on May 25, 2006 · 9 comments· LAST UPDATED December 17, 2007

in , ,

Q. I am getting an error that read as follows:

MySQL: got error 28 from server handler

How do I fix this problem?

A. This error means no space left on hard disk. According to official MySQL docs, "If you get his error, you need to check all filesystems where MySQL operates. It may be single filesystem or as we recommend you can have datadir, tmpdir and log files split into dedicated filesystems."


a) Stop mysql server
# /etc/init.d/mysql stop
# /etc/init.d/mysqld stop
b) Check filesystem and /tmp directories:
$ df -h
$ cd /tmp
$ df -h /tmp

c) Remove files from /tmp to free up space:
# cd /tmp
# rm -rf *

d) Look into /var/log directory and remove or compress logs file.

e) Use myisamchk command to check and repair of ISAM table:
# cd /var/lib/mysql
# myisamchk

f) Increase disk space (add new hard disk or remove unwanted software(s) )

g) Start the mysql server:
# /etc/init.d/mysql start
# /etc/init.d/mysqld start

Tweet itFacebook itG+ itDownload PDF versionFound an error/typo on this page?

{ 9 comments… read them below or add one }

1 Peter February 2, 2010 at 8:28 am

Thank you for this! This helped save me a ‘VERY’ large headache!


2 tom July 21, 2010 at 6:33 am

Very helpful. First hit on google and saved my morning!


3 Juniefer February 21, 2011 at 5:39 am

Thanks. It was a great help indeed.

I am saving the solution to my email.

great help cheers


4 Stan April 18, 2011 at 7:25 am


This one thing saved my lot of time.


5 Anton July 1, 2011 at 2:24 am

Excellent guide.
Worked perfectly to solve this headache!


6 Vaibhav Agarwal July 13, 2011 at 11:58 am

Thanks a lot. Saved a lot of time just before an important demo…


7 jose luis March 10, 2012 at 6:08 pm

Thank you very much for your information. it was very interesting for me to resolve my problem.


8 sanjay June 4, 2014 at 6:11 am

found this problem can you give a any solution
#1030 – Got error 28 from storage engine


9 radouane December 20, 2014 at 12:03 pm

Merci :)


Leave a Comment

Tagged as: , , , , , , ,

Previous Faq:

Next Faq: