Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

hey, i have written php script and it frozen mysql and when i restarted my linux (debian) there was something written that /var/libs/mysql is too full and now when i want to run mysql there is an error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) does someone know how to fix it?

share|improve this question
up vote 2 down vote accepted

Free up some disk space and try again? You are going to need to do some investigating on your own about what you choose to delete. I don't know how you have setup your partitions. If /var/log is on the same partition as /var/lib then I would be tempted to delete/compress/move some of the older log files to get your system working again.

share|improve this answer


df -h

This will see how much free space you have available. Sounds like your /var partition filled up. You may want to look at cleaning files up, quite possibly logfiles at /var/log.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.