I was forced to move to a new server recently and now I cannot get my web-based application to work anymore. (There are people getting real upset with me now.) The old application running on the new server is not able to open the old Berkley DB file (on the new server) and I also am not having any luck db_dump'ing it either. I'm not real familiar with Berkley DB's, I just use them sometimes. Please help me if you can and I will be eternally grateful!!! (I should also mention that I no longer have access to the old server, which may be a problem but I'm hoping not.)
Here are some technical details from the new server that I hope will tell you exactly what the problem is:
[kurt@amber]$ ll
total 436
-rw------- 1 kurt kurt 12288 Nov 22 22:09 new.db
-rw-r--r-- 1 kurt kurt 212992 Nov 22 21:35 old.db
[kurt@amber]$ file old.db
old.db: Berkeley DB (Hash, version 5, native byte-order)
[kurt@amber]$ file new.db
new.db: Berkeley DB (Hash, version 7, native byte-order)
[kurt@amber]$ db_dump old.db
db_dump: old.db: hash version 5 requires a version upgrade
db_dump:open:old.db:DB_OLDVERSION:Database requires a version upgrade
[kurt@amber]$ db_dump185 old.db
db_dump185: old.db: Invalid argument
[kurt@amber]$
NODE UPDATE
Thanks to diotalevi for pointing out that the db_upgrade utility was staring me right in the face! Thanks for the help! I'm up and running again!!!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.