![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jun 2020
Device: kobo clara
|
Import Sqlite
Hi everybody,
I have just bought a kobo clara hd and I am trying to import my annotations from my old kobo glo. I have successfully copied and pasted my old library, but when I paste the koboreader.sqlite something goes wrong. I get an error message (something like "critical error" and your annotations will be deleted) and the reader won't work properly (it won't go to standby, but only off). Morover, when I turn it off I have to reset the account. I've already tried to find the solution in the forum, but didn't manage ![]() |
![]() |
![]() |
![]() |
#2 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,586
Karma: 168431235
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
As for the critical error, that will trigger a factory reset. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
If you just want annotations, I suggest you copy your books into the exact same structure on your new Kobo, let them import, copy just the bookmark table to the new database. Note that I've only tested this with kepub books, so I don't know how this will interact with other formats.
If you want reading stats, you can also copy rows from the event table with type 46 from the old DB, and they should work fine (the checksum doesn't include other data except for the row itself). If you want collections, the best way to do so is to log in to your Kobo account (this will restore them as empty collections), then copy rows from the ShelfContent table with a ContentId starting with file:/// (this also depends on the directory structure remaining the same). If you want read/unread states, copy the ReadStatus column where set for rows of the content table with a NULL BookId and a ContentId starting with file://. If you want reading settings (font, last dictionary, search history, etc), copy rows from the content_settings table with a ContentId starting with file://. If you want My Words, copy the wordlist table. This covers most of the possible things you can copy from the DB (even between versions) without causing issues. Last edited by geek1011; 06-11-2020 at 12:06 PM. |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jun 2020
Device: kobo clara
|
|
![]() |
![]() |
![]() |
#5 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,586
Karma: 168431235
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jun 2020
Device: kobo clara
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,801
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
The other way would be to use the ATTACH command to attach the other database, then copy between them using an INSERT and SELECT in the same statement. If you're using a GUI, you might be able to copy the rows as-is. |
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jun 2020
Device: kobo clara
|
Solved!
I have found a workaround with DB Browser for SQLite. First I copied all my books of my old Kobo in the same directory of my new one. Then I opened the bookmarks from the old KoboReader.Sqlite files, exported them in cvs and then imported them in the bookmarks of the new KoboReader.Sqlite. Apparently it works! I am so thrilled because the database thing was really puzzling me. Thanks geek1011 and DNSB for the hints!
|
![]() |
![]() |
![]() |
Tags |
kobo clara hd |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Import Author And Title From Filename & Import Other Tags And Cover From File | DazJWood | Library Management | 25 | 10-06-2021 10:18 AM |
Import on Filename changes mid import due to book error | Vortex | Calibre | 3 | 12-05-2014 11:49 AM |
how to import db sqlite in this project | alim2006 | Android Developer's Corner | 0 | 05-29-2013 10:59 PM |
Import failed Error:404 when attempting to import from Calibre to Stanza | dvond | Apple Devices | 0 | 05-13-2011 03:00 PM |