LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-12-2010, 04:41 AM   #1
drstupid
LQ Newbie
 
Registered: Dec 2009
Posts: 21

Rep: Reputation: 15
Mysql will not start ERROR 2002 (HY000):


Guys,

I have installed mysql 5.0.77 on my Centos 5.3 virtual machine but I am unable to start or connect to mysql. I am getting this error:
=
[root@localhost ~]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
=

This is what I have tried:
==
[root@localhost ~]# rpm -qa | grep mysql
mysql-5.0.77-4.el5_4.1
[root@localhost ~]# netstat -antpe | grep mysql
[root@localhost ~]# service mysqld restart
mysqld: unrecognized service
==

I am unable to find mysql.sock file any where on the entire machine.

I have tried removing and reinstalling and that didnt helped either.

Any ideas fellows???
 
Old 01-12-2010, 05:03 AM   #2
drstupid
LQ Newbie
 
Registered: Dec 2009
Posts: 21

Original Poster
Rep: Reputation: 15
Problem fixed

Hey guys as the name says it all drstupid, silly and stupid is my style.

I did not actually installed the mysql-server and only installed mysql, as soon as I installed mysql-server ; it started working :P

yum install mysql-server

I am so dumb that if you will read guinness book UPSIDE DOWN my name will be at the top.
 
  


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
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysq barbyb Linux - Software 3 08-23-2011 04:59 AM
MySQL : ERROR 2002 (HY000) Sunday03 Programming 5 05-06-2009 11:59 PM
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/my.. Goce Linux - Server 3 11-30-2008 09:57 PM
MySQL ERROR 2002 (HY000) rwhite7890 Linux - Server 2 11-10-2007 12:48 PM
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.so amee_stars Linux - Newbie 2 01-22-2007 02:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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