All the 'msgstore' in the database of Whatsapp are not being restored I recently got a new Samsung Galaxy S6 Edge and installed Whatsapp in it. I had a previous backup of Whatsapp from my Note 4 so I copied the same from the old phone to the new one. But when I installed Whatsapp and tried to restore all the old chats, it did not restore all of them. The 'database' folder has all the 'msgstore' of all those dates that I want to restore. Need help.
I had a problem almost similar to yours.Whatsapp can only read "msgstore.db.crypt8" OR "msgstore.db.crypt7".

The other databases dates should be formatted to "msgstore-YYYY-MM-DD.crypt8".These databases with dates are databases which is for backup (Every 4am).They backup only for 7 days.Do not worry,they contain the same file.It is just incase your current msgstore.db.crypt8 is corrupted,you can change the other 7 from "msgstore-YYYY-MM-DD.crypt8" to "msgstore.db.crypt8".

Read more on Whatsapp FAQ https://www.whatsapp.com/faq/?forum=android&amp;entry=20887921&amp;l=fi. (Source)

Or if you want to read directly from here

Summary

WhatsApp automatically backs up your chats every night.
You can initiate a restoration by simply uninstalling and reinstalling WhatsApp.
Click Restore when prompted to restore your message history.
Your missing chats should appear in WhatsApp!


Details

WhatsApp automatically makes backups every day at 4 AM and stores them in the WhatsApp folder of your Android phone. This folder is either located in your device's internal memory or external microSD card. To restore the most recent backup, you will need to uninstall and reinstall WhatsApp.

If you need to restore older messages, check out "Restoring older (less recent) backups".

During the installation process, you will be prompted to restore your message history. Choose Restore to restore your missing chats.

If you are not prompted to restore your messages, it could be that:

Your SD card and/or chat history is corrupted.
Your backup is too old. WhatsApp cannot restore backups that are too old.
You have a different phone number than when you backed up your chats.


In any of these cases, there is no way for us to restore the messages for you.

Restoring older (less recent) backups

Before attempting to restore messages, please note:

Current chat history will be lost upon restoration.
There are only up to 7 days worth of backup files.
Any new messages sent/received after a backup, and deleted before the next backup, cannot be restored.
If you run a manual backup, it will overwrite the most recent automatic backup file.
On newer devices, your WhatsApp/Databases folder is most likely located in your device's internal memory.
You must have the same phone number in WhatsApp that you had when you backed up your chats.


We also recommend:

Make sure you have a file manager. This will be useful for renaming the backup files.
Here are some choices: File Managers and Explorers.
If you do not want to lose your current history (newest messages), create a manual backup by going to:
WhatsApp &gt; Menu Button &gt; Settings &gt; Chat Settings &gt; Back up chats.
This manual backup file will be saved as "msgstore.db.crypt7" or "msgstore.db.crypt8" in your /sdcard/WhatsApp/Databases folder. Save this file as "msgstore.db.crypt7.current" or "msgstore.db.crypt8.current" (depending on the original file extension) so you do not get it confused with other backup files during the restoration process.


Please note: your backup files are saved in the /sdcard/WhatsApp/Databases folder. This folder may be located in either your device's internal memory or external memory.

To restore from a backup, follow these steps:

1.Uninstall WhatsApp.

2.Decide which backup file you want to restore.

3.Rename that file from "msgstore-YYYY-MM-DD.1.db.crypt7" to "msgstore.db.crypt7" or from "msgstore-YYYY-MM-DD.1.db.crypt8" to "msgstore.db.crypt8".

4.Install WhatsApp.

5.When asked to restore, tap Restore.


You will now be able to see your restored messages. If you want to revert the restoration, simply change the backup filename back to what it was, rename "msgstore.db.crypt7.current" to "msgstore.db.crypt7" or "msgstore.db.crypt8.current" to "msgstore.db.crypt8", and follow these steps again.

Cheers,
WhatsApp Support Team