Post
Topic
Board Bitcoin Technical Support
Merits 5 from 2 users
Re: Help needed recovering old wallet from bitcoin qt (around 2016)
by
nc50lc
on 12/01/2022, 03:03:08 UTC
⭐ Merited by LoyceV (4) ,ETFbitcoin (1)
and the db.log says corrupted db
-snip-
But no idea how to fix the db issues...
Try Bitcoin Core's bitcoin-wallet tool "salvage".
"bitcoin-wallet" is in the "daemon" folder inside Bitcoin Core's installation directory (where bitcoind and bitcoin-cli are located).

To use it, open Terminal, cd in the directory where bitcoin-wallet is.
Then use the command (provide the full path to the wallet.dat file):
Code:
bitcoin-wallet --wallet="E:\Folder\wallet.dat" salvage

It wont return with any response unless it failed but you will see a backup file (wallet.dat.xxxxx.bak) where the wallet.dat is located.
The new wallet.dat is the "salvaged" wallet.