Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > cPanel and WHM Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-2009, 03:20 AM
Registered User
 
Join Date: Apr 2009
Posts: 34
liang3391 is on a distinguished road
Database ERROR:Can't connect to local MySQL server through socket '/var/lib/mysql/mys

cpanel/whm


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

I tried several ways to repair, can be a while, the results of the point of death. All good ideas to the point.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-22-2009, 03:52 AM
JPC-Martin's Avatar
Registered User
 
Join Date: May 2008
Posts: 37
JPC-Martin is on a distinguished road
Quote:
Originally Posted by liang3391 View Post
cpanel/whm


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

I tried several ways to repair, can be a while, the results of the point of death. All good ideas to the point.
Please make sure that symbolic link for mysql.sock is not missing in /tmp partition.

Try this
---
stop mysql

run

# cd /tmp
# n -s /var/lib/mysql/mysql.sock mysql.sock

and start mysql service
---
__________________
Martin.K | JaguarPC.com
JaguarPC High Class Hosting since 1998*
Unmanaged VPS Hosting | Managed VPS Hosting | Fail Over Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-22-2009, 09:30 AM
Registered User
 
Join Date: Jul 2005
Location: New Jersey, USA
Posts: 385
PlatinumServerM is on a distinguished road
This can be a number of things. Check the disk space to make sure it is not full, check the tmp directory contents and permissions, etc. You can also check the logs for any other possible clues.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
usr/sbin/mysqld--basedir=/--datadir=/var/lib/mysql--user=mysql--pid-file=/var/lib/mys toma1708 cPanel and WHM Discussions 1 07-07-2009 03:08 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) neomas cPanel and WHM Discussions 12 06-21-2008 01:30 PM
Mysql fails with Can't connect to local MySQL server through socket '/var/lib/mysql/m noimad1 cPanel and WHM Discussions 1 04-21-2007 02:23 AM
Can't connect to local MySQL server through socket '/tmp/mysql.sock' gopederick cPanel and WHM Discussions 5 09-17-2004 03:06 PM
Fix: Can't connect to local MySQL server through socket'/var/lib/mysql/mysql.sock'(2) Outofmymindyo cPanel and WHM Discussions 0 06-27-2004 03:53 AM


All times are GMT -5. The time now is 02:55 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc