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 07-02-2004, 02:32 AM
Registered User
 
Join Date: Nov 2003
Posts: 26
gopederick
Can't connect to local MySQL server through socket '/tmp/mysql.sock'

Hello, my mysql suddonly stopped working. It was compltely random.

mySQL error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
mySQL error code:

I get that error.

I tried to copy it into tmp folder from /var/db/mysql/ but it says it exists... but it does not.

cp1# cp -rf /var/db/mysql/mysql.sock ../../tmp/
cp: symlink: /tmp/mysql.sock: File exists

Please help.

thx.

If all else fail what would be the best way to copy the databases reinstall mysql and put the databases back?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-02-2004, 03:36 AM
linux-image's Avatar
Registered User
 
Join Date: Jun 2004
Location: India
Posts: 1,179
linux-image is on a distinguished road
cd /tmp

rm -rf mysql.sock

ln -s /var/lib/mysql/mysql.sock mysql.sock

that will do.
__________________
linux-image
AIM: "tux image"
Msn: "tux_image@hotmail.com"
Yahoo: "masternikx"

http://admin-ahead.com
Open Tickets: https://www.ticketforge.com
FAQ's: http://scriptmantra.info/

Tips: http://tips.admin-ahead.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-02-2004, 03:42 AM
Registered User
 
Join Date: Nov 2003
Posts: 26
gopederick
That doesn't work :\

cp1# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (62)

Btw I am on freebsd 4.8 with mysql (4.0.10-gamma)

Maybe I can just uninstall mysql and make cpanel reinstall it with a cpanel update? How would i uninstall cpanel without deleting/remove the current databases.

thx.

Last edited by gopederick; 07-02-2004 at 03:45 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-02-2004, 03:44 AM
linux-image's Avatar
Registered User
 
Join Date: Jun 2004
Location: India
Posts: 1,179
linux-image is on a distinguished road
freebsd am not sure the..

also you can try a restart for the mysql that will create the socket the natural way.
__________________
linux-image
AIM: "tux image"
Msn: "tux_image@hotmail.com"
Yahoo: "masternikx"

http://admin-ahead.com
Open Tickets: https://www.ticketforge.com
FAQ's: http://scriptmantra.info/

Tips: http://tips.admin-ahead.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-15-2004, 11:08 PM
Registered User
 
Join Date: Feb 2003
Posts: 128
eger
i am having this problem also on my freebsd 4.10 box. was there ever a solution for this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 09-17-2004, 03:06 PM
Registered User
 
Join Date: Nov 2003
Posts: 148
AlexF
Try this:

/usr/local/bin/mysqld &
__________________
ProficientHost
http://www.proficienthost.com
Delivering Quality Hosting & Design Services
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 04:52 AM.


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