<p>A blkindex.dat error means that the block index has been corrupted or can't be opened. However, the block index is not part of the wallet, and can be deleted without removing the funds in your wallet.</p>

<p>With that in mind, try this:</p>

<ol>
<li>Open <code>%APPDATA%</code> in file explorer. Do this by pressing Windows + R, then typing <code>%APPDATA%</code>.</li>
<li>Open Roaming\Bitcoin.</li>
<li>Make a new folder in there called 'old block files,' or something similar.</li>
<li>Move every file in that folder except wallet.dat into the old block files folder.</li>
<li>Optionally, delete the 'old block files' folder.</li>
<li>Start Bitcoin 0.11, and your computer will redownload the block chain. This will take a few hours.</li>
</ol>

CC BY-SA 3.0
2016-04-24T01:29:33.950Z
2016-04-24T01:29:33.950Z
Nick ODell
<p>There are two ways of upgrading from such an old version: either perform the intermediate upgrade steps (0.7 -> 0.8 -> 0.9 -> 0.10 -> 0.11) or export you wallet, clear the bitcoin directory and import the wallet again.</p>

<p>The first option should be pretty straight forward. The second option requires you to use the GUI to export the wallet or the individual private keys, upgrading Bitcoin QT and then importing them.</p>

<p>The <a href="https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list" rel="nofollow">JSON-RPC</a> calls <code>dumpprivkey</code> and <code>importprivkey</code> can be performed for each address and will get your addresses into the new version. Be careful to keep a backup copy of the wallet.dat file before clearing the bitcoin directory. </p>

CC BY-SA 3.0
2016-04-23T05:15:23.350Z
can't even get into my bitcoin-qt 7 wallet to import!
kym
CC BY-SA 3.0
2016-04-24T08:13:41.253Z
No need for incremental updates. Bitcoin Core's wallet files are backward compatible down to very early versions (0.3.x at least if not older), ignoring potential BDB version compatibilities (which can be bypassed using external bdb conversion tools).
Pieter Wuille
CC BY-SA 3.0
2016-04-11T13:54:56.283Z
2016-04-11T13:54:56.283Z
cdecker
<p>I'm having trouble with Bitcoin QT 0.11 not automatically extracting address info from my Bitcoin QT 0.7. When I try to open my Bitcoin QT wallet it comes up with an error code saying it is to unsafe to continue. How can I get hold of my info from my Bitcoin QT wallet.</p>

CC BY-SA 3.0
2016-04-11T04:15:14.160Z
What's the exact error message?
Nick ODell
CC BY-SA 3.0
2016-04-23T05:02:31.537Z
Runaway exception
kym
CC BY-SA 3.0
2016-04-23T05:14:29.103Z
A fatal error occurred. Bitcoin can no longer continue safely and will quit.  EXCEPTION:ST13runtime_error    CDB() : can't open database file blkindex.dat, error22   C:\Program files (86)\Bitcoin\bitcoin -qt.exe in runaway exception  -@Nick ODell
kym
CC BY-SA 3.0
2016-04-24T08:11:06.377Z
@kym That looks like an error from 0.7, as blkindex is no longer used since 0.8. What happens if you just start the new version?
Pieter Wuille
<bitcoin-core><bitcoin-qt-setup>
How do i get info from Bitcoin QT 0.7 to Bitcoin QT 0.11?
kym
# How do i get info from Bitcoin QT 0.7 to Bitcoin QT 0.11?

(Asked by: username_0 on 2016-04-10)

I'm having trouble with Bitcoin QT 0.11 not automatically extracting address info from my Bitcoin QT 0.7. When I try to open my Bitcoin QT wallet it comes up with an error code saying it is to unsafe to continue. How can I get hold of my info from my Bitcoin QT wallet.

**Tags:** bitcoin-core, bitcoin-qt-setup

> **Comments:**
> **username_1**: What's the exact error message?  
> **username_0**: Runaway exception  
> **username_0**: A fatal error occurred. Bitcoin can no longer continue safely and will quit.  EXCEPTION:ST13runtime_error    CDB() : can't open database file blkindex.dat, error22   C:\Program files (86)\Bitcoin\bitcoin -qt.exe in runaway exception  -@username_1  
> **username_2**: @username_0 That looks like an error from 0.7, as blkindex is no longer used since 0.8. What happens if you just start the new version?  

---

## 2 answers

### Answer by username_1 on 2016-04-24. Score: 1

A blkindex.dat error means that the block index has been corrupted or can't be opened. However, the block index is not part of the wallet, and can be deleted without removing the funds in your wallet.

With that in mind, try this:

1. Open `%APPDATA%` in file explorer. Do this by pressing Windows + R, then typing `%APPDATA%`.
2. Open Roaming\Bitcoin.
3. Make a new folder in there called 'old block files,' or something similar.
4. Move every file in that folder except wallet.dat into the old block files folder.
5. Optionally, delete the 'old block files' folder.
6. Start Bitcoin 0.11, and your computer will redownload the block chain. This will take a few hours.


---

### Answer by username_3 on 2016-04-11. Score: 0

There are two ways of upgrading from such an old version: either perform the intermediate upgrade steps (0.7 -> 0.8 -> 0.9 -> 0.10 -> 0.11) or export you wallet, clear the bitcoin directory and import the wallet again.

The first option should be pretty straight forward. The second option requires you to use the GUI to export the wallet or the individual private keys, upgrading Bitcoin QT and then importing them.

The [JSON-RPC](https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list) calls `dumpprivkey` and `importprivkey` can be performed for each address and will get your addresses into the new version. Be careful to keep a backup copy of the wallet.dat file before clearing the bitcoin directory.

> **Comments:**
> **username_0**: can't even get into my bitcoin-qt 7 wallet to import!  
> **username_2**: No need for incremental updates. Bitcoin Core's wallet files are backward compatible down to very early versions (0.3.x at least if not older), ignoring potential BDB version compatibilities (which can be bypassed using external bdb conversion tools).  

---

