LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-22-2012, 02:52 AM   #1
rio121
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
PLEASE help: MySQL server problems through socket '/var/lib/mysql/mysql.sock' (2).


Hi all,

I am a novice hosting reseller and I woke this morning to find ALL the websites i'm hosting that require MySQL to run have suddenly gone down and showing variants of the below phrase:

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

What has happened here? All sites have been installed using auto-installer Softaculous and have been running perfectly for a few months until now, its almost as if someone has turned off MySQL over night. I obviously have some very angry customers at the moment, could somebody please advise me on (a preferably simple way) how to turn it back on? Will their data be lost?

I'm panicking a fair bit here. Any help would be greatly appreciated.
 
Old 06-22-2012, 03:02 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Hmm... should you really be reselling hosting space if you can't even google that error message, let alone fix it?? All that definitely means is that the mysql daemon is not listening. That probably means mysql is not running but why it's not running could be all manner of reasons. You sound like you just want someone to say "as root, run 'service mysql start'" which, seeing as you're atking other peoples money to know this simple stuff already... ouch...
 
Old 06-22-2012, 03:04 AM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706
Hi,

are you sure you did not change anything? There was a recent mysql security vulnerability and patch: CVE-2012-2122. Does softaculous automatically install such security updates?

Evo2.
 
Old 06-22-2012, 03:53 AM   #4
rio121
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
@ acid_kewpie - The answer is no I probably shouldnt be selling it, thing is I bought it as a package from ebay and was promised the earth but failed to deliver (as usual), and now I have a few customers and i'm not just going to leave them in limbo like others would. So theres no simple button to press and turn it back on? I'm out of my depth. :-/

@ Evo - i'll have a look at Softaculous homepage and see what they say as I definately haven't changed anything, everything was fine last night and a mess this morning.
 
Old 06-22-2012, 06:42 AM   #5
Genocide_Hoax
Member
 
Registered: Apr 2011
Distribution: OpenSuse 12.3 , Slackware 13.1 ; Centos 6.2 ; Fedora 14
Posts: 90

Rep: Reputation: 8
Did u try
service mysqld start ?
 
  


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
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 08:19 AM
HTTPD: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' markseger Fedora - Installation 2 02-10-2011 12:53 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) ajeshg Linux - Server 4 06-16-2010 05:46 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) sammy007 Linux - Networking 1 01-30-2010 07:32 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) Pode Slackware 12 11-26-2008 09:21 AM

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

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