Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have been trying to work with databases that were created under Berkeley Database 1.85 so that I can convert them to MySQL.

I believe the files are Berkeley DB 1.85 under CentOS 5 for the following reasons:

bash-3.2$ file comment.db
comment.db: Berkeley DB 1.85/1.86 (Btree, version 3, big-endian)

bash-3.2$ uname -r
2.6.18-128.el5

I know that there is a Berkeley DB 1.85 Compatibility Mode, but I am not sure how to put it into effect.

When I run:

bash-3.2$ yum list installed

... I get the following results, among others:

compat-db.i386                       4.2.52-5.1                        installed

db4.i386                             4.3.29-10.el5_5.2                 installed
db4-devel.i386                       4.3.29-10.el5_5.2                 installed
db4-java.i386                        4.3.29-10.el5_5.2                 installed
db4-tcl.i386                         4.3.29-10.el5_5.2                 installed
db4-utils.i386                       4.3.29-10.el5_5.2                 installed

Are these the yum modules that we need to get Berkeley DB 1.85 Compatibility Mode to work? Or are there others?

Is there some configuration that needs to be done in order for this mode to be active?

Does DB_File pickup Berkeley DB 1.85 Compatibility Mode automatically?

share|improve this question
    
In Configuring Berkeley DB it says there is an --enable-compat185 option. I suspect that, in order to access it, I will have to compile from sources. –  Dave Aiello Aug 20 '12 at 20:53

1 Answer 1

The db4_utils package contains db_dump185, which you can use to dump a DB 1.85 format database. You can send its output to db_load to load it into a current format database.

share|improve this answer
    
Yes, except that is not working in this case. What we want to do is to enable the application that created the databases to operate. It is written in Perl and based on the DB_File Perl module. –  Dave Aiello Aug 18 '12 at 0:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.