![]() |
#1 |
Enthusiast
![]() Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
|
DatabaseError: database disk image is malformed
How do I reset the database when it is confused ?
Code:
bash-3.2$ calibredb list Traceback (most recent call last): File "/Users/jb23/Applications/calibre.app/Contents/Resources/loaders/calibredb.py", line 9, in <module> main() File "/Users/jb23/Applications/calibre.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/library/cli.py", line 527, in main File "/Users/jb23/Applications/calibre.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/library/cli.py", line 204, in command_list File "/Users/jb23/Applications/calibre.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/library/cli.py", line 103, in get_db File "calibre/library/database2.pyo", line 383, in __init__ File "calibre/library/database2.pyo", line 262, in refresh File "calibre/library/sqlite.pyo", line 107, in run calibre.library.sqlite.DatabaseException: database disk image is malformed RemoteTraceback (most recent call last): File "calibre/library/sqlite.pyo", line 80, in run File "calibre/library/sqlite.pyo", line 46, in get DatabaseError: database disk image is malformed |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Wow how did you manage that?
Delete/rename the database file, it will be recreated, though you will lose any metadata stored in the database. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Enthusiast
![]() Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
|
You also need to delete the file metadata.db
I takes real ability ![]() Quote:
cd Library/Preferences rm -rf calibre net.kovidgoyal.calibre.plist Last edited by kovidgoyal; 12-13-2008 at 02:46 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Database Disk Image is malformed" when connecting to Calibre after adding new books | djorkboy | Kobo Reader | 13 | 10-07-2010 08:47 PM |
"Database Disk Image is malformed" when connecting to Calibre after adding new books | djorkboy | Calibre | 1 | 10-06-2010 08:59 PM |
DatabaseError: malformed database schema (author_insert_trg) - no such table: authors | peterdeegan | Calibre | 3 | 07-03-2010 12:44 AM |
Error: malformed database schema (books_insert_trg) | cbatalla | Calibre | 4 | 05-08-2010 01:02 PM |
database disk image is malformed | sirbruce | Calibre | 12 | 06-26-2009 09:06 PM |