LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-09-2012, 09:46 AM   #1
louk_88
LQ Newbie
 
Registered: Jun 2011
Posts: 13

Rep: Reputation: Disabled
Can't connect to local MySQL server through socket


Hi,

I have problem with my Mysql, when i try to access it, i get this error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

If i try to reload it (/etc/init.d/mysqld restart) i get this:
mysqld failed!

In Log file (/var/log/mysqld.log) i found this error:
Can't start server: can't create PID file: No space left on device

I have found in Google, that the problem depend on the free space of partition. when i excute the df command i get:

Sys. de fich. 1K-blocs Occupé Disponible Capacité Monté sur
/dev/mapper/VolGroup01-LogVol00
297673144 282395936 0 100% /
/dev/sda1 101086 18357 77510 20% /boot
tmpfs 4153560 0 4153560 0% /dev/shm


I know that the "/" is 100%, but when i type du -h --max-depth=1 /
0 /proc
5,7M /bin
147M /lib
120K /dev
8,0K /media
12K /home
1,7G /usr
16K /lost+found
22G /var
8,0K /srv
0 /sys
8,0K /mnt
8,0K /opt
13M /boot
47M /etc
8,0K /selinux
9,9M /root
24G /

Knowing that the Hardisk size is much larger than 24G.

Thanks in advance for your responses.
 
Old 08-09-2012, 10:06 AM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by louk_88
Code:
Sys. de fich. 1K-blocs Occupé Disponible Capacité Monté sur
/dev/mapper/VolGroup01-LogVol00
297673144 282395936 0 100% /
/dev/sda1 101086 18357 77510 20% /boot
tmpfs 4153560 0 4153560 0% /dev/shm
Please put command output in code tags, not red font tags. Especially for output where horizontal whitespace is significant, the code tags use a monospace font that makes what you're trying to communicate decipherable.

Further, this is not a "can't connect to MySQL through socket" problem. This is a filesystem space problem, as you noted.

It may be useful to see the output from:
Code:
# find / -xdev -size +100M -exec du -h {} \; 2>/dev/null
 
Old 08-10-2012, 07:25 AM   #3
louk_88
LQ Newbie
 
Registered: Jun 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Now is good, after i have launched this:

lsof -n |grep -i deleted
df -i

i have rebooted the system, and all is ok now

[root@DialerMRS1 src]# df -h
Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
/dev/mapper/VolGroup01-LogVol00
284G 24G 246G 9% /
/dev/sda1 99M 18M 76M 20% /boot
tmpfs 4,0G 0 4,0G 0% /dev/shm
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTPD: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' markseger Fedora - Installation 2 02-09-2011 11:53 PM
Frustration: Can't connect to local MySQL server through socket '/usr/local/mysql-5.0 nidala Linux - Newbie 1 09-27-2008 11:20 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 03:35 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration