title: anaconda spyder sqlite3.DatabaseError: database disk image is malformed
body: <p>I've run into a problem running Spyder that I can't seem to resolve.  Any help would be appreciated.</p>
  
  <p>I've been using Anaconda Spyder on Windows 7 without much trouble.  I had to do a hard shut down of my computer while Spyder was running.  When I turned it back on, Spyder loads with the error while starting the kernel: "sqlite3.DatabaseError: database disk image is malformed".  The first few lines of the specific error are</p>
  
  <pre><code>Traceback (most recent call last):
  File "C:\***\Anaconda3\lib\site‑packages\IPython\core\history.py", line 87, in catch_corrupt_db
  return f(self, *a, **kw)
  File "C:\***\Anaconda3\lib\site‑packages\IPython\core\history.py", line 257, in init_db
  end timestamp, num_cmds integer, remark text)""")
  sqlite3.DatabaseError: database disk image is malformed
  </code></pre>
  
  <p>Following this there is a list of other exceptions which occurred but I imagine they are related to these first lines.</p>
  
  <p>I've tried checking SQlite3 using <code>PRAGMA integrity_check</code> but it did not return any errors.</p>
  
  <p>I've uninstalled and reinstalled Anaconda but the problem persists.</p>
  
  <p>I've spent a number of hours over many days trying various fixes in online forums but can't seem to figure out the one that works for me.</p>
  
  <p>I'd really appreciate some guidance, thanks</p>