home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 3130
Discussions: 188,375, Posts: 2,243,439, Members: 232,603
Old July 16th, 2002, 07:10 PM   Digg it!   #1 (permalink)
Ultimate Member
 
e980238's Avatar
 
Join Date: Jan 2002
Posts: 1,881
MySQL is busted, Need help backing up databases

Somehow my MySQL server got busted. None of the webpages are working that have to access it. Is there a way that I can back up the databases without having hte server working? Whenever I do anything on the command line I get this error:
Code:
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mys
ql.sock' (111)
__________________
Got root?

e980238 is offline   Reply With Quote
Old July 16th, 2002, 07:56 PM     #2 (permalink)
Ultimate Member
 
e980238's Avatar
 
Join Date: Jan 2002
Posts: 1,881
ok i found out what was wrong. Once again my server was hacked.

e980238 is offline   Reply With Quote
Old July 16th, 2002, 08:01 PM     #3 (permalink)
Ultimate Member
 
Join Date: Oct 2001
Location: Athens, GA
Posts: 1,333
lol...how did u get hacked and what did they do..
__________________
ummm

Dokeman is offline   Reply With Quote
Old July 16th, 2002, 08:03 PM     #4 (permalink)
Ultimate Member
 
e980238's Avatar
 
Join Date: Jan 2002
Posts: 1,881
well i found 2 files in my /var/tmp directory called elvis1.ses and elvis2.ses and they have some type of script in them that does something to mysql. How i got hacked is beyond me. I only have the ssh port open and a port open for apache and niether of them are the defualt port.
e980238 is offline   Reply With Quote
Old July 16th, 2002, 10:37 PM     #5 (permalink)
Xtreme Ultimate Member
 
Mntsnow's Avatar
 
Join Date: Apr 1999
Location: Sandy, Utah
Posts: 7,947
so were you able to get MySql running again? You can do a "dirty" backup of the "DATA" directory which will have directories within it that actually have the individual database files.
__________________
-Mntsnow-
Mntsnow is offline   Reply With Quote
Old July 17th, 2002, 12:53 AM     #6 (permalink)
Banned
 
qball's Avatar
 
Join Date: Oct 2001
Posts: 447
Quote:
Once again my server was hacked.
which server??? DB,Web,App???

Are you trying to back up a DB, so when it gets 'hacked', you can restore?

should look into stopping hacks.

my bad...
qball is offline   Reply With Quote
Old August 4th, 2002, 02:32 AM     #7 (permalink)
Member
 
gothic's Avatar
 
Join Date: Oct 2001
Location: Palatine, IL
Posts: 375
On a side-side note...

1.) Look into tcp_wrappers (/etc/hosts.allow, /etc/hosts.deny)

2.) tar -cvf mysql-backup.tar /var/lib/mysql/
=]

3.) You also might want to look into having MySQL only listen in localhost, and not any available interface. This can be done by adding "bind-address=127.0.0.1" (Without quotes) to your /etc/my.cnf (If you have one, since I don't know what distro you are on, etc) I do this, as a general security precaution to go along with #1

4.) Last but not least, can you paste those two Elvis session-history files? =] I'd be interested to see what they are trying to do.


*edit* I can't spell.
gothic is offline   Reply With Quote
Old August 5th, 2002, 10:05 AM     #8 (permalink)
Ultimate Member
 
e980238's Avatar
 
Join Date: Jan 2002
Posts: 1,881
Actually I reinstalled the OS so I do not have those files anymore but it was on Slackware.
e980238 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Most Active Discussions
Is It Just Me? (2881)
The United States Debt (20)
Looks like Burris will get his Sena.. (7)
Upgrading RAM (5)
I think I just killed my computer w.. (24)
Folderchat Weekday thread (436)
Antec 300 bulk purchase? (11)
Worth the upgrade?? (14)
Titan quest and Immortal Throne, an.. (17)
Recent Discussions
Help with an Ati Radeon HD 4850.. (23)
Laptop waking up itself (0)
CPU wont boot (3)
Best digital camera for under 2.. (13)
Building first computer, will t.. (2)
Folderchat Weekday thread (436)
get this error, "res://C:\.. (73)
Problem with boot and motherboa.. (0)
MS to offer free Windows 7 upgr.. (1)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 07:39 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28