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 04-21-2007, 02:04 AM
Registered User
 
Join Date: Mar 2003
Posts: 574
noimad1
Mysql fails with Can't connect to local MySQL server through socket '/var/lib/mysql/m

Ok, my mysql is failing with the error:

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

I've tried all of the usual fixes, but can't seem to get anything to work.

Here is what I have tried.

1. Tried to reset the root mysql password.
2. Did a /scripts/mysqlup --force
3. Did the following:


cd /var/lib/mysql
touch mysql.sock
chown mysql:mysql mysql.sock
chmod 1777 mysql.sock

now make a sym link into /tmp

ln -s /var/lib/mysql/mysql.sock /tmp
then
chmod 1777 /tmp

now
/scripts/mysqlup --force


now just restart mysql
/etc/rc.d/init.d/mysql restart


None of which seem to work.....

Does it look like I missed anything? Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-21-2007, 02:23 AM
Registered User
 
Join Date: Mar 2003
Posts: 574
noimad1
disregard....it looks like a /scripts/upcp --force did the trick.
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



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


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