Paper2 Library Sharing problem.


When you share Paper2's database folders, you may get following error message.



This is happened by accessing database file at the same time from several computers. I fixed this problem using "sqllite" to create a new database file.

Follow instructions shows how to create new paper database from the corrupted database file.



1. Download SQLLITE binary file. 
(http://www.sqlite.org/download.html)


2. Run terminal

3. Run following command in the terminal
     teminal > sqlite3 Database.papersdb
    //next command is check your database, if your database has a problem, errors occur.
    sqllite3 > pragma integrity_check;
     // If you get no error message, Paper2 running problem is not the database problem.
     //Next command is create new database.
    terminal >  echo .dump | sqlite3 Database.papersdb >  DatabaseNew.papersdb.sql 
    terminal >  sqlite3.exe -init DatabaseNew.papersdb.sql  DatabaseNew.papersdb
    //change DatabaseNew.papersdb to Database.papersdb, Before changing, backup your original Database.papersdb. Because there are possibly to loss some records.
    terminal > cp  Database.papersdb DatabaseBackup.papersdb
    terminal > cp  DatabaseNew.papersdb Database.papersdb
    


댓글

이 블로그의 인기 게시물

Install NS2.35 to Mac OS(Lion)

New power saving mode in android M.

Test DHT11 and SEN0018 raspberry