<p>The levelDB gets corrupted if bitcoind stops abruptly, like during an outage.</p>

<p>I'm not that familiar with running bitcoin core on Windows, but this fixes the issue on Linux. It isn't the quickest or best solution, but if manually transferring wallet.dat isn't an option (and you can't dump the private key as another person suggested because bitcoind won't run) this may work for you: </p>

<p>Go into your bitcoin data folder and delete the 'blocks' and 'chainstate' directories and restart bitcoind. It will of course have to re-download the blockchain and re-index which will take a long time, maybe even a week, but it will eventually catch up and you can use bitcoin core again.</p>

CC BY-SA 3.0
2015-04-27T04:03:29.400Z
2015-04-27T04:03:29.400Z
Robert McCone
<p>Run bitcoind and on the command-line use this command:</p>

<pre><code>dumpprivkey &lt;your bitcoin address here&gt;
</code></pre>

<p>This will dump your private key which can then be imported to any number of other bitcoin wallets like Mycelium, Electrum, Armory, etc. You will be able to access your funds in the other bitcoin wallet software once this key is imported.</p>

CC BY-SA 3.0
2015-02-23T18:09:39.490Z
2015-02-23T18:09:39.490Z
Jimmy Song
<p>Bitcoin Core has a built-in RPC command to reload custom wallets, if custom wallets stop showing after node restart, disk full issue or moved wallet from another node.</p>
<p>Loads a wallet from a wallet file or directory.</p>
<pre><code>bitcoin-cli loadwallet &quot;wallet name&quot;
</code></pre>
<p>Note that all wallet command-line options used when starting bitcoind will be applied to the new wallet (eg -zapwallettxes, upgradewallet, rescan, etc)</p>
<p>Note: inside double quotes mention wallet <code>folder name</code> for custom wallets or use <code>wallet.dat</code> file name</p>
<p><a href="https://developer.bitcoin.org/reference/rpc/loadwallet.html" rel="nofollow noreferrer">Loadwallet Reference</a></p>

CC BY-SA 4.0
2021-01-14T07:14:15.767Z
2021-01-14T23:31:18.810Z
2021-01-14T23:31:18.810Z
Antier Solutions
<p>I downloaded Bitcoin core wallet a few days ago. It was all going well, it synced just to about 25 weeks ago or something. One day the power went down and it shutdown the computer.</p>

<p>When I started bitcoin core again it loaded up to "loading wallet" and is stuck there. Unfortunately I already send a few BTC's to the wallet. Since I could not access my wallet, I figured that my BTC's are lost but then I start reading about accessing my wallet using Bitcoind, however when I create the bitcoin.conf file with the </p>

<pre><code>rpcuser=bitcoinrpc
rpcpassword=xxxxxxxxxxxx 
</code></pre>

<p>It wont recognize it and still give me the same error and crash as before I created the file. </p>

<p>I am currently running on Windows XP. So since I can't access my wallet, and since the manual way does not seem to work either, is there any other way to withdraw the coins from the wallet? If not can anyone help me with the bitcoind problem. Thanks a lot.</p>

CC BY-SA 3.0
2015-02-23T20:27:09.233Z
You backed up your wallet.dat before the crash, right? Right?
Nate Eldredge
<wallet><bitcoind>
After power hit, wallet won't load
Jan
# After power hit, wallet won't load

(Asked by: username_0 on 2015-02-23)

I downloaded Bitcoin core wallet a few days ago. It was all going well, it synced just to about 25 weeks ago or something. One day the power went down and it shutdown the computer.

When I started bitcoin core again it loaded up to "loading wallet" and is stuck there. Unfortunately I already send a few BTC's to the wallet. Since I could not access my wallet, I figured that my BTC's are lost but then I start reading about accessing my wallet using Bitcoind, however when I create the bitcoin.conf file with the

```
rpcuser=bitcoinrpc
rpcpassword=xxxxxxxxxxxx 

```

It wont recognize it and still give me the same error and crash as before I created the file.

I am currently running on Windows XP. So since I can't access my wallet, and since the manual way does not seem to work either, is there any other way to withdraw the coins from the wallet? If not can anyone help me with the bitcoind problem. Thanks a lot.

**Tags:** wallet, bitcoind

> **Comments:**
> **username_1**: You backed up your wallet.dat before the crash, right? Right?  

---

## 3 answers

### Answer by username_2 on 2015-04-27. Score: 1

The levelDB gets corrupted if bitcoind stops abruptly, like during an outage.

I'm not that familiar with running bitcoin core on Windows, but this fixes the issue on Linux. It isn't the quickest or best solution, but if manually transferring wallet.dat isn't an option (and you can't dump the private key as another person suggested because bitcoind won't run) this may work for you:

Go into your bitcoin data folder and delete the 'blocks' and 'chainstate' directories and restart bitcoind. It will of course have to re-download the blockchain and re-index which will take a long time, maybe even a week, but it will eventually catch up and you can use bitcoin core again.


---

### Answer by username_3 on 2015-02-23. Score: 0

Run bitcoind and on the command-line use this command:

```
dumpprivkey <your bitcoin address here>

```

This will dump your private key which can then be imported to any number of other bitcoin wallets like Mycelium, Electrum, Armory, etc. You will be able to access your funds in the other bitcoin wallet software once this key is imported.


---

### Answer by username_4 on 2021-01-14. Score: 0

Bitcoin Core has a built-in RPC command to reload custom wallets, if custom wallets stop showing after node restart, disk full issue or moved wallet from another node.

Loads a wallet from a wallet file or directory.

```
bitcoin-cli loadwallet "wallet name"

```

Note that all wallet command-line options used when starting bitcoind will be applied to the new wallet (eg -zapwallettxes, upgradewallet, rescan, etc)

Note: inside double quotes mention wallet `folder name` for custom wallets or use `wallet.dat` file name

[Loadwallet Reference](https://developer.bitcoin.org/reference/rpc/loadwallet.html)


---

