Solved

Recover Database From Mistake Dropped CentOS

Posted on 2011-02-22
6
576 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

732 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