Restoring all data from backup and old data in database?

psalm91

Verified User
Joined
Sep 20, 2015
Messages
168
I restored my whole site from a backup but it seems
I have old entries still in my database

Is this normal?

When you restore a site from back does not database simply replaced?
 
MySQL dumps contain

Code:
DROP TABLE IF EXISTS `table`;

statements. Existing in a backups tables are to be cleared. If you created tables in between of backup creation and restoration times, then they might be left intact.
 
@zEitEr answered you - yes, because it contains DROP TABLE IF EXISTS `table`;
if you somehow replace this in mysqlbackup - it will not replace data.
 
Back
Top