LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 04-25-2012, 02:45 PM   #16
emir.cortes
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled

I had the same problem on a virtual machine running Ubuntu. After reading allenhighnote message, I realized my silly mistake.
I had changed the file: /etc/mysql/my.cnf to set bind-address to the IP that at that moment the virtual machine had, but when the DHCP assigned another IP the my.cnf was no longer valid.

Solution: I changed the bind-address.
 
Old 08-26-2012, 06:35 PM   #17
jeffpeck
LQ Newbie
 
Registered: Oct 2007
Posts: 14

Rep: Reputation: 0
You need to make sure MySQL is running:

sudo /etc/init.d/mysqld start
 
Old 05-06-2013, 01:40 PM   #18
codymham
LQ Newbie
 
Registered: May 2013
Posts: 1

Rep: Reputation: Disabled
Smile Worked

Running /etc/init.d/mysqld start worked for me.
I guess mysql had stopped.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 16 12-10-2012 02:34 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
Buzilla issue: "Can't connect to local MySQL server through socket '/tmp/mysql.sock'" vitopn Linux - General 3 05-21-2007 10:13 AM
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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration