LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2012, 12:37 PM   #1
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Rep: Reputation: Disabled
problem starting mysql daemon


Hi all,

I have installed mysql rpms via YUM on CentOS 5 box and trying to start mysql daemon but getting timed out error below

Code:
 /etc/init.d/mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL:                                            [FAILED]
but when i check with service commnad it shows mysqld is running

Code:
service mysqld status
mysqld (pid 24915) is running...
and when i try to access mysql via below command and also getting the error

Code:
mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Earlier this system was having mysql running but i had removed those rpms and also the /var/lib/mysql dir.

Please help me!
 
Old 04-05-2012, 12:41 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
/var/lib/mysql removed?! That contains your mysql table which MySQL needs to run. Take a look at /var/log/messages and /var/log/mysql/mysqld.log(or wherever your my.cnf file has mysql logging set to).
 
Old 04-05-2012, 12:46 PM   #3
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Original Poster
Rep: Reputation: Disabled
Hi Kustom42,

I removed it after removing old MySql rpms and not after the new install.
 
Old 04-05-2012, 01:32 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Nobody can assist you until you provide the information in your mysql log file with the error.
 
  


Reply



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
problem starting daemon remotely alenD Linux - Newbie 3 05-08-2011 01:12 AM
error in starting mysql daemon after installation possimpible Linux - Software 6 09-10-2009 01:08 AM
Starting MySQL OLD Error : imeout error occurred trying to start MySQL Daemon Fr33B5D Linux - Software 9 10-28-2006 06:23 AM
Starting mysql daemon as user rather than root arubin Slackware 8 05-10-2004 04:03 PM
Starting Up MySQL daemon tuka Linux - Software 2 08-06-2003 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:39 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