[gnucash-de] gnucash-de Nachrichtensammlung, Band 220, Eintrag 5

Boris Blazej boris.blazej at gmx.at
Do Aug 12 14:25:56 EDT 2021


Success!

Die Methode".recover" hat bei mir nicht funktioniert aber ".dump" schon,
also:|

sqlite3 mydata.db ".dump" | sqlite3 new.db|
||

|Anschließend lässt sich die neue Datenbank wieder problemlos mit
GnuCash öffnen :-) Vielen Dank an alle! Boris |

> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 12 Aug 2021 15:59:40 +0200
> From: Heinz Repp <heinz.repp at freenet.de>
> To: gnucash-de at gnucash.org
> Subject: Re: [gnucash-de] libdbi bug when opening existing gnucash
> 	file
> Message-ID: <ef1cf655-baf6-e0f4-6844-43cd74bd7d4b at freenet.de>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Am 11.08.21 um 21:01 schrieb Boris Blazej:
>> Wenn ich versuche, das File mit einem sqlite-Viewer zu öffnen, bekomme
>> ich übrigens je nach Tool beim öffnen oder beim ersten select-Statement
>> die Fehlermeldung "database disk image is malformed".
> Das weißt darauf hin, dass die Datenbank stark beschädigt ist.
> Stackoverflow hat dazu:
>
>> UPDATE: There is now an automatic method that is built into SQLite: .recover
>>
>> Sometimes, the corruption is only or mostly in indexes, in which case it would be possible to get some or most records by trying to dump the entire database with .dump, and use those commands to create a new database:
>>
>> $ sqlite3 mydata.db ".dump" | sqlite3 new.db
>>
>> However, this is not always possible.
>>
>> The easiest and most reliable way is to restore the database file from the backup.
> Da würde ich weiter machen, wenn die Daten wirklich wichtig sind - also
> erst im sqlite-Binary .recover und wenn das nicht hilft, dump und in
> neue Datenbank einlesen.
>
> Gruß
>
> Heinz
>
> Und BTW: das ist kein libdbi-Bug, sondern eine beschädigte Datenbank.
>
>
> ------------------------------
>
> Subject: Fusszeile der Nachrichtensammlung
>
> _______________________________________________
> gnucash-de mailing list
> gnucash-de at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-de
>
>
> ------------------------------
>
> Ende gnucash-de Nachrichtensammlung, Band 220, Eintrag 5
> ********************************************************



--
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.gnucash.org/pipermail/gnucash-de/attachments/20210812/adfd61ea/attachment.htm>


Mehr Informationen über die Mailingliste gnucash-de