473,800 Members | 2,385 Online
Bytes | Software Development & Data Engineering Community
+ 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 2783
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
9618
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 database through the Enterprise Manager, it shows the database as silver icon (loading).
2
11179
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 testing. Our custumer tries it serveral times and then the recovery works and the data are corrupt. I have written a little programm which does some selects to this database. The program is stopped during recovery but our customer beleves that...
4
11613
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 Manager. What is the best way of shrinking the database size and its log file too? Is there an automatic way to do this with a maintenance plan or i have to manually run a SQL statement periodically? What are the best practices?
2
2113
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 be locking the databases before the backup begins? Scenario: 1) Database Plan begins backup at 7:00 PM. 2) At 7:01 PM a web user updates their password while the backup is taking place.
1
2343
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 every 24 h.
7
7911
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 tables corrupt and the others are fine (which I dumped to be safe). I have a backup which I could use but then I realized that maybe there might be some "surgery" I could perform to get the table "repaired". Note that the normal recovery that the...
346
16649
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
2487
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 database? Thanks in advance for any help, Bungle
2
5422
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 was no longer found (I think). Here is an excerpt from db2diag.log: String Title:sqleMarkDBad: PID:7980 Node:000
0
1415
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 precise if it were pinned down to a specific situation.Anyway ......... User errors vary widely ,It may not be feasible to pinpoint all the different user errors.Depending on the rights a user has ,user errors may span from deleting a the contents...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10275
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10253
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9085
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7576
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3764
muto222
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.