473,472 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

database recovery and import

Hello,
I've been given the job of recovering a database. It's mysql, version
unknown but i'd suspect probably 3 maybe 4 certainly not 5. Apparently the
host provider where this was didn't set up the backups right, because the
guy gave me the db files not database dumps and i am uncertain what to do
with them. I'd like to bring them in to a mysql installation and take a look
at the data contained. If it's valid i.e. what has been requested i'd like
to do a mysqldump on it, then import it in to the guy's database. He says he
wants the entry.db which contains three years worth of nonbacked up data. He
sent me an archive, one of which is a file entry.db so it appears the files
are good, i'm just not sure how to get at them. I've got .db, .db.loc, .idx,
and .idx.loc files so it looks like i've got a complete package. Any
suggestions?
Thanks.
Dave.
Apr 23 '07 #1
1 2767
I've been given the job of recovering a database. It's mysql, version
>unknown but i'd suspect probably 3 maybe 4 certainly not 5. Apparently the
host provider where this was didn't set up the backups right, because the
guy gave me the db files not database dumps and i am uncertain what to do
with them. I'd like to bring them in to a mysql installation and take a look
at the data contained. If it's valid i.e. what has been requested i'd like
to do a mysqldump on it, then import it in to the guy's database. He says he
wants the entry.db which contains three years worth of nonbacked up data. He
sent me an archive, one of which is a file entry.db so it appears the files
are good, i'm just not sure how to get at them. I've got .db, .db.loc, .idx,
and .idx.loc files so it looks like i've got a complete package. Any
Are you sure those are MySQL files? Those file extensions do not look like
it.
>suggestions?
My suggestions:

1. Archive the original files somewhere where they can't get clobbered.
For example, CD-ROM. You may be restoring them to your test system often.

2. Set up a test system with a guessed version of MySQL which you think
can read this data. Since MySQL generally can read older data, I'd suggest
the lastest version of MySQL 4.x.

3. Shut down the mysqld daemon, install the files in place, and start it
up again.

4. Look at the data, with things like SHOW TABLES, DESCRIBE <tablename>,
and SELECT * FROM <tablenameto see if you get sane-looking data.
If you get errors, try REPAIR TABLE or myisamchk. Be prepared to go back to
step 3, or to step 2 with a different version of MySQL, repeatedly, in case
this just destroys the files because they are not in the right format.

5. If you seem to have sensible data, run mysqldump to unload it.

Apr 24 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Edwinah63 | last post by:
Hi Gurus, i am having problems with restoring a ms sql database. i have restored the database using veritas to a different location ('g:\datafiles') in no recover mode. when i view the...
2
by: Jens Kalkbrenner | last post by:
MS SQL-Server 7.0 Bypassing recovery for database 'EfW_765' because it is marked IN LOAD. What does this mean? Our customer is backing up is maindatabase and is recovering it to this database for...
4
by: serge | last post by:
Running SQL Server 2000 Enterprise Edition SP3. The database is also used by Microsoft Project Server 2002 and also has OLAP views, so the database is being used to view/run cubes in the Analysis...
2
by: Matt | last post by:
I run SQL Server 2000 and use thier database maintenance plans to backup my databases. My questions is what happens if a change is being made to a database table while a backup is running? Should I...
1
by: pginfo | last post by:
Hi, I have had two times problem with pg database corruption. My system: Dual athlon 2.4 1 GB RAM, linux red hat 7.3 reiserFS Also on the system I have cron that every 3 h. make dump and...
7
by: Network Administrator | last post by:
Looks like for the first time in 6 years, I'm experienced some database table corruption. This was due to the space filling up on a server (you don't want to know how that happened). I have 3...
346
by: rkusenet | last post by:
http://biz.yahoo.com/rc/040526/tech_database_marketshare_1.html Interesting to see that database sales for windows is more than Unix.
9
by: Bungle | last post by:
Hi There, Does anybody know where i might be able to locate a tool/application that can determine whether a Database is corrupt?? Also, can a bad network connection cause a corruption to a...
2
by: Scott Jones | last post by:
Hello, In an attempt to save disk space, I went in and gzipped all of the log files for my database running DB2 version 7.2 . This resulted in the database being marked bad because a log file...
0
by: michael ngong | last post by:
pramod@rtimes.com (Pramod Ramachandran) wrote in message news:<6616e304.0306240122.4dd3ecd5@posting.google.com>... Permit me start with the second question. It would be easier to be more...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.