walletpassphrase yourwalletpassword 600
And then after that use this command below to dump the private key
dumpprivkey yourBTCaddress
I tried this before without success.
BT core throws this error
15:44:53
BerkeleyDatabase: Error -30974, can't open database wallet.dat (code -1)
and the db.log says corrupted db
B_ENV->log_flush: LSN of 1/116917 past current end-of-log of 1/38105
Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
wallet.dat: unable to flush page: 24
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
PANIC: fatal region error detected; run recovery
...
I am working always with a copy of my backed up wallet, so I can't break anything.
But no idea how to fix the db issues...
If I need to extract the keys manually, is there a step by step guide somewhere?
Best regards and thanks for the help.
cc