LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 07-14-2005, 06:51 PM   #1
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 652

Rep: Reputation: 33
mysql install fubared


I did the mistake of doing an apt-get upgrade on my server. It broke a ton of stuff including mysql.

It just won't start at all. I do /etc/init.d/mysql and nothing happends, at all, no error no nothing. It just won't start and I can't connect to it. I'm panicing because I have tons of data on there, and while I have backups, it's a PIA restoring backups that size.

Here's the exact error I get:

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /data/intranet/main/tools/phone.php on line 104

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /data/intranet/main/tools/phone.php on line 106

Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /data/intranet/main/tools/phone.php on line 108

Warning: mysql_query(): A link to the server could not be established in /data/intranet/main/tools/phone.php on line 108
SQL Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I also read something about an invalid mysqld.sock file, so if that's the case, how do I get a valid one? I really want to avoid a clean install. I can't afford seperate servers so everything is on this one, including mail, which is #1 PIA to configure on linux. So please help! Thanks.
 
Old 07-14-2005, 06:52 PM   #2
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 652

Original Poster
Rep: Reputation: 33
Oh, and I can't even find the installation directory for it, I checked everywhere. So I have a feeling the sh$#@thead "apt get upgrade" actually deleted it.
 
Old 07-14-2005, 09:00 PM   #3
Red Squirrel
Member
 
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 652

Original Poster
Rep: Reputation: 33
OMG I never figured it would of been that easy. I just did apt-get install mysql-server and everything magically worked. I only knew to try that because I was trying to setup a php/mysql/apache server at work for development and had read somewhere to install that to make it work, along with a bunch of other things. Given I was in a position to format the server, I had to try a few things first, and it just... worked. And all my data is still there. I have no clue where it's stored though...
 
  


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
Bugzilla - MySQL - perl - DBD::mysql install problem Runningonair Linux - Software 8 10-12-2007 12:42 AM
Error message in setting up wlan... could be i fubared some numbers. Jehar Linux - Wireless Networking 0 04-02-2005 05:24 PM
MySQL 4 on Fedora can't install php-mysql kennyg Linux - Software 8 09-21-2004 06:54 PM
Internet is fubared? Ne0BDP Linux - General 4 05-18-2004 06:22 PM
MBR completely FUBARed ChivalricRonin Linux - Newbie 2 04-12-2004 12:16 PM


All times are GMT -5. The time now is 11:00 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 Google+: linuxquestions
Open Source Consulting | Domain Registration