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."
Solution
a) Stop mysql server
# /etc/init.d/mysql stop
OR
# /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
OR
# /etc/init.d/mysqld start
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop











{ 7 comments… read them below or add one }
Thank you for this! This helped save me a ‘VERY’ large headache!
Very helpful. First hit on google and saved my morning!
Thanks. It was a great help indeed.
I am saving the solution to my email.
great help cheers
Thanks!
This one thing saved my lot of time.
Excellent guide.
Worked perfectly to solve this headache!
Thanks a lot. Saved a lot of time just before an important demo…
Thank you very much for your information. it was very interesting for me to resolve my problem.