# Gavin Andresen
# 2012-03-01 21:46:49
# https://bitcointalk.org/index.php?topic=66887.msg777872#msg777872

@s{quotedtext}
@s{quotedtext}
The dreaded DB_RUNRECOVERY...  that's usually caused by running an older version of BDB (0.6 is compiled against BDB 4.8) on a datadir written with a newer version of BDB. @p{par}

Recovery isn't hard; just delete the .bitcoin/database/log.000* file(s) and any .bitcoin/__db*.log files.  Were you previously running a self-compiled version of Bitcoin? @p{par}

From @p{(link}@s{(link)}#divining-bdb-version@p{link)}  : @p{brk}

Code:
cd ~/.bitcoin/database @p{brk}
od -j12 -N8 -tx4 log.000*
 @p{brk}
... will show what version of BDB the log files were written with.