Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

Run:

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

 
discard

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