LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-02-2005, 05:49 PM   #1
I_AM
Member
 
Registered: Mar 2005
Posts: 103

Rep: Reputation: 15
mysql down...can't find a fix after several hours :(


I spent way too long trying to fix this and search the cpanel forums, tried just about every possible method and nothing worked.

i followed this and reinstalled mysql
devside.net/web/server/linux/mysql

Restarted in WHM and still get the same error:


/usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists! mysql has failed, please contact the sysadmin (result was "Warning, no valid mysql.sock file found.mysql has failed").

Nothing wants to work

root [/]# cd /var/lib/mysql
root [/var/lib/mysql]# chmod 771 *
root [/var/lib/mysql]# chmod 777 mysql.sock
chmod: failed to get attributes of `mysql.sock': No such file or directory
root [/var/lib/mysql]# chmod 660 <hostname>.pid
chmod: failed to get attributes of `server.myactualhostname.pid': No such file or directory

I've tried everything and I can't believe nothing is working

I rebooted the server as well and retried so many methods. I reset MySQL password and no luck. I don't know what else to do honestly.

I'm on a cPanel server

Last edited by I_AM; 03-02-2005 at 06:00 PM.
 
Old 03-02-2005, 08:34 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Did you verify (via ps) that mysqld is actually running? If not, what does the .err log file say (I think it's in /var/lib/mysql/var/<hostname>.err or maybe just /var/lib/mysql/<hostname>.err -- not sure on default configs)?
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting Files Older Than 2 Hours using Find? LinuxGeek Linux - Software 1 06-29-2005 06:10 AM
kppp problem, need to fix it or find kppp alternative trisha Linux - Networking 0 08-08-2004 03:04 PM
Can't find graphics card because greater than 64 PCI busses... how to fix? nirajpatel Linux - Hardware 1 07-26-2004 09:43 AM
installed Intel's "fix," now it can't find the screen BrokenUSMC2003 Linux - Laptop and Netbook 3 02-19-2004 02:57 PM
trashed my system, please help me find out why or how to fix it dwyatte Slackware 3 10-10-2003 09:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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