svn cleanup: sqlite: database disk image is malformed

前端 未结 17 1527
谎友^
谎友^ 2020-12-02 06:31

I was trying to do a svn cleanup because I can\'t commit the changes in my working copy, and I got the following error:

sqllite: databas

17条回答
  •  佛祖请我去吃肉
    2020-12-02 07:10

    Integrity check

    sqlite3 .svn/wc.db "pragma integrity_check"
    

    Clean up

    sqlite3 .svn/wc.db "reindex nodes"
    sqlite3 .svn/wc.db "reindex pristine"
    

    Alternatively

    You may be able to dump the contents of the database that can be read to a backup file, then slurp it back into an new database file:

    sqlite3 .svn/wc.db
    
    sqlite> .mode insert
    sqlite> .output dump_all.sql
    sqlite> .dump
    sqlite> .exit
    
    mv .svn/wc.db .svn/wc-corrupt.db
    sqlite3 .svn/wc.db
    
    sqlite> .read dump_all.sql
    sqlite> .exit
    

提交回复
热议问题