[Q] How to fix corrupt database?

Search This thread

Basjoo

Member
Jan 5, 2012
27
1
Hello,

When I try to recover my Whatsapp messages on my new phone after I have copied the Whatsapp folder from my old phone to the SDcard, it suddenly crashes after 10 seconds: "Whatsapp has stopped working" :eek:

I looked into the System Log to find some clues about this crash. It looks like it has something to do with SQLite and the msgstore.db (or msgstore.db.crypt) file which says that the msgstore.db file is corrupt.


  1. "E/DefaultDatabaseErrorHandler (3784): Corruption reported by sqlite on database: /data/data/com.whatsapp/databasesmsgstore.db"
  2. "E/AndroidRuntime (3784): java.lang.AssertionError: android.database.sqlite.SQLiteDatabaseCorruptExcep tion: Database disk image is malformed (code 11), SQLiteConnection.java,-2"
  3. "E/SQLiteLog (3784): (14) cannot open file at line 30191 of [00bb9c9ce4]"
  4. "E/SQLiteDatabase (3784): Failed to open database '/data/data/com.whatsapp/databases/msgstore.db' "
  5. "E/SQLiteDatabaseException: unknown error (code 14): Could not open database"
  6. "I/sqlite_db_corrupt (3784): /data/data.com.whatsapp/databases/msgstore.db"


Can somebody help me to unravel this mistery? :confused: I really want to copy my old messages to my new phone and continue using the app on my new phone.

How can I fix the corrupt msgstore file? Or see what part of the file is corrupt (the exact cause)

NOTE: I added some screenshots of the System Log file to give you more information
 

Attachments

  • Screenshot_2014-03-07-20-19-09.jpg
    Screenshot_2014-03-07-20-19-09.jpg
    208.9 KB · Views: 409
  • Screenshot_2014-03-07-20-25-53.jpg
    Screenshot_2014-03-07-20-25-53.jpg
    213.6 KB · Views: 383
  • Screenshot_2014-03-07-20-26-24.jpg
    Screenshot_2014-03-07-20-26-24.jpg
    211.5 KB · Views: 381
  • Screenshot_2014-03-07-20-27-42.jpg
    Screenshot_2014-03-07-20-27-42.jpg
    207.1 KB · Views: 331
Last edited:

Basjoo

Member
Jan 5, 2012
27
1
Many people complained about whats app is force closed since Facebook bought whats app company,you should google it,or you can try delete backup folder on whats app /sdcard/whatsapp/backup maybe it can help,sorry if im not helped you :)

Sent from my N986 using xda premium

Thanks for your reply. But If I delete the backup file, then it will not be possible for Whatsapp to recover my message history right?
 

Top Liked Posts