Question [Q] [WHATSAPP] Unable to recover message history: Corrupt Database

Hello,

Whatsapp problem! I want to copy my chat history from my Samsung Galaxy S1 (2.3.6) to my new Nexus 5 (4.4.2).

I copied my entire Whatsapp folder to my Nexus 5 (/sdcard/Whatsapp/) and then installed Whatsapp. It asked me if I would like to recover my history chat messages. After clicking yes it started recovering but after 10-20 seconds it shuts down and an error message comes forward saying that Whatsapp had stopped working. I tried it multiple times.

When looking in my System Log file it says that it has something to do with SQLite. These are some lines in the Log file concerning Whatsapp:
  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 someone tell me how to fix this problem or how to find what the error causes in my database file?

NOTE: I added screenshots of System Log
Attached Files
File Type: zip sqlitecorrupt.zip - [Click for QR Code] (2.60 MB, 25 views)
Google Nexus 5
Firmware: 4.4.2
Kernel: 3.4.0-gabd2201
Build: KOT49H

Samsung Galaxy S1
Firmware: 2.3.6 Value Pack
Baseband: I9000XXJW4
Kernel: 2.6.35.7-I9000XXJW4-CL1043937 se.infra@SEP-62 #2
Build: Gingerbread.XWJW5