Post
Topic
Board Development & Technical Discussion
Merits 1 from 1 user
Re: m keys, c keys and private keys.
by
BitMaxz
on 24/08/2022, 16:14:31 UTC
⭐ Merited by ETFbitcoin (1)
2022-08-24T13:13:21Z : Error opening block database.
Please restart with -reindex or -reindex-chainstate to recover.

The debug.log already tells you what you need to do use the -reindex while opening Bitcoin core or edit the Bitcoin core shortcut under target add -reindex then apply and then open the Bitcoin core again it should start with -reindex. Look at the image below as a reference where you can put the -reindex.


Image source: https://bitcointalk.org/index.php?topic=5375014.msg58603997#msg58603997

Or if your purpose is to recover only your BTC you can just use pywallet to make your wallet.dat into the wallet.text in a readable format and get the private key there and import it to another wallet like Electrum then transfer the BTC. Since you already have the password you can decrypt the wallet.dat use the command below with pywallet.

Code:
python pywallet.py --dumpwallet --passphrase=PASSPHRASE > wallet.txt