Solved

Recover Database From Mistake Dropped CentOS

Posted on 2011-02-22
6
564 Views
Last Modified: 2013-12-15
Hello there, is there any way i can recover dropped database from CentOS Linux ?
0
Comment
Question by:DjZoC
6 Comments
 
LVL 1

Expert Comment

by:gambith
ID: 34956846
are there any backups?
0
 

Author Comment

by:DjZoC
ID: 34957504
the backup is from 3 weeks ago ... but is not all ... is anyway to i can recover the db ?
0
 
LVL 1

Accepted Solution

by:
gambith earned 250 total points
ID: 34957555
Basically, Hardly.

DROP DATABASE drops all tables in the database and deletes the database.

now for the undelete part,  it will be quite hard to undelete the files.

There's a full tutorial on how to undelete EXT3 (http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html)

if you manage to recover the files, do a recover from file to your mysql server.
0
 
LVL 24

Assisted Solution

by:Joe Woodhouse
Joe Woodhouse earned 250 total points
ID: 34967313
Adding to the above, even if you can recover the underlying files (and remember you don't have a direct relationship between files and databases - depending on your Sybase product, databases are defined on devices or dbspaces, and you have files for those)... that's still no guarantee you'll get the database back.

File system buffering may mean the underlying files are not what the database engine is looking for.

If you don't have database backups then it's pretty much gone. If your last backup is from three weeks ago then

1) that's what you can restore to, and
2) time to start running more frequent backups.
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 35510896
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now