<p><a href="https://github.com/joric/pywallet" rel="nofollow">Joric's fork of pywallet</a> can read a wallet.dat, decrypt it with your pass phrase and then you can export the keys.  But if it is corrupted and Bitcoin-Qt can't read it then pywallet may fare no better.</p>

<p>Doesn't hurt to give it a try.</p>

CC BY-SA 3.0
2013-03-16T05:43:44.603Z
Thanks for the suggestion. What I did in the end was import the wallet into blockchain.info/wallet. That worked very well, even with the encrypted wallet.
pete smith
CC BY-SA 3.0
2013-03-16T13:00:50.097Z
@petesmith please post it as an answer, for future reference
o0'.
CC BY-SA 3.0
2013-03-16T05:29:40.613Z
2013-03-16T05:29:40.613Z
Stephen Gornick
<p>I had the same issue. What i did is:</p>

<ul>
<li>goto <code>/library/application support/bitcoin/blocks</code></li>
<li>renamed the <code>index</code> folder to <code>index1</code> </li>
<li>started bitcoin-qt again</li>
</ul>

<p>The application started reindexing again but my wallet keys are still there.</p>

CC BY-SA 3.0
2013-04-15T06:57:43.493Z
2013-04-15T09:51:55.563Z
2013-04-15T09:51:55.563Z
Sat
<p>You can safely delete any Bitcoin-qt files as long as you let the <code>wallet.dat</code> file stay.</p>

CC BY-SA 3.0
2013-04-15T11:48:15.773Z
2013-04-15T11:48:15.773Z
Tom van der Woerdt
<p>I can't run Bitcoin-Qt 0.80 on Mac OS X 10.8 any more.</p>

<p>It starts up then says "System Error: Database Corrupted". I then click OK, and the program "quits unexpectedly"</p>

<p>How do I  start again without losing my wallet. Is it just the wallet.dat file that I need to keep, or others as well if I reinstall? I have encrypted the wallet if that makes any difference  to the files I need to keep.</p>

<p>There are lots of BC in the wallet. I can't afford to lose them!!</p>

<p>Is there another program I can use just to open the wallet? </p>

CC BY-SA 3.0
2013-03-16T05:07:47.113Z
What files do I need to delete to get the program working again? I tried deleting everything in "chainstate" directory, it ran for a while then crashed again. There are also "blocks" and a "database" directory. I just don't want to delete anything which is going to make my bitcoins disappear. But I need access to the wallet again obviously.
pete smith
CC BY-SA 3.0
2013-03-16T05:26:50.337Z
Do you have a recent backup of your wallet.dat?   Any backup within the past 100 transactions would have all your private keys.
Stephen Gornick
CC BY-SA 3.0
2013-03-16T12:56:04.703Z
Were you running 0.7 and upgraded to 0.8? https://github.com/bitcoin/bitcoin/issues/2305
o0'.
<bitcoin-core><mac>
Mac 0.80b beta - says "database corrupted" and then Bitcoin-Qt quit unexpectedly
pete smith
# Mac 0.80b beta - says "database corrupted" and then Bitcoin-Qt quit unexpectedly

(Asked by: username_0 on 2013-03-16)

I can't run Bitcoin-Qt 0.80 on Mac OS X 10.8 any more.

It starts up then says "System Error: Database Corrupted". I then click OK, and the program "quits unexpectedly"

How do I start again without losing my wallet. Is it just the wallet.dat file that I need to keep, or others as well if I reinstall? I have encrypted the wallet if that makes any difference to the files I need to keep.

There are lots of BC in the wallet. I can't afford to lose them!!

Is there another program I can use just to open the wallet?

**Tags:** bitcoin-core, mac

> **Comments:**
> **username_0**: What files do I need to delete to get the program working again? I tried deleting everything in "chainstate" directory, it ran for a while then crashed again. There are also "blocks" and a "database" directory. I just don't want to delete anything which is going to make my bitcoins disappear. But I need access to the wallet again obviously.  
> **username_1**: Do you have a recent backup of your wallet.dat?   Any backup within the past 100 transactions would have all your private keys.  
> **username_2**: Were you running 0.7 and upgraded to 0.8? https://github.com/bitcoin/bitcoin/issues/2305  

---

## 3 answers

### Answer by username_1 on 2013-03-16. Score: 2

[Joric's fork of pywallet](https://github.com/joric/pywallet) can read a wallet.dat, decrypt it with your pass phrase and then you can export the keys. But if it is corrupted and Bitcoin-Qt can't read it then pywallet may fare no better.

Doesn't hurt to give it a try.

> **Comments:**
> **username_0**: Thanks for the suggestion. What I did in the end was import the wallet into blockchain.info/wallet. That worked very well, even with the encrypted wallet.  
> **username_2**: @petesmith please post it as an answer, for future reference  

---

### Answer by username_3 on 2013-04-15. Score: 1

I had the same issue. What i did is:

* goto `/library/application support/bitcoin/blocks`
* renamed the `index` folder to `index1`
* started bitcoin-qt again

The application started reindexing again but my wallet keys are still there.


---

### Answer by username_4 on 2013-04-15. Score: 1

You can safely delete any Bitcoin-qt files as long as you let the `wallet.dat` file stay.


---

