July 16th, 2002, 07:10 PM
|
#1 (permalink)
| | Ultimate Member
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?
|
| |
July 16th, 2002, 07:56 PM
|
#2 (permalink)
| | Ultimate Member
Join Date: Jan 2002
Posts: 1,881
|
ok i found out what was wrong. Once again my server was hacked. |
| |
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
|
| |
July 16th, 2002, 08:03 PM
|
#4 (permalink)
| | Ultimate Member
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. |
| |
July 16th, 2002, 10:37 PM
|
#5 (permalink)
| | Xtreme Ultimate Member
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-
|
| |
July 17th, 2002, 12:53 AM
|
#6 (permalink)
| | Banned
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... |
| |
August 4th, 2002, 02:32 AM
|
#7 (permalink)
| | Member
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. |
| |
August 5th, 2002, 10:05 AM
|
#8 (permalink)
| | Ultimate Member
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. |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |