LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-28-2004, 08:12 PM   #1
AlexW
LQ Newbie
 
Registered: Jun 2003
Location: Australia
Distribution: Redhat 9
Posts: 11

Rep: Reputation: 0
Mysql


hey we just installed mysql with redhat we boot mysql it says it works fine so

[root@server bin]# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

then

[root@server bin]# /etc/init.d/mysqld status
mysqld dead but subsys locked

any ideas on whats going on?

im running redhat 9
 
Old 02-29-2004, 05:02 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
If I can remember correctly, this error shows that the previous mysql session did not terminate correctly and left behind the lock. Mysql is not running in the first place (try ps -ef | grep mysql).

Try stopping mysql (although it is not running, just trying to get rid of the lockfile the nice way) with: /etc/init.d/mysqld stop.

Check the logfiles and check to see if there still is a lockfile. If the lockfile is still there, remove it and try starting mysql again.

Hope this put you on the right track.
 
Old 01-28-2005, 09:03 AM   #3
Apexdv
LQ Newbie
 
Registered: Dec 2004
Location: ATL-GA
Distribution: FC3
Posts: 19

Rep: Reputation: 0
Post mysqld dead but subsys locked

clicky clicky searchy searchy . . .

Problem Resolution -for some?

More resolution . . .

This worked on my system too after upgrading mysql. Seems it was something with selinux. Still, I'm a newbie so, if this resolution poses security issues...paleez let me know.

Hope this helps...

Apexdv
Professional Newbie
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-07-2008 11:48 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 - General

All times are GMT -5. The time now is 12:30 AM.

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