Is there any way in MySQL to only log deletes? I tried using the mysql binary log option but unfortunately, there are too many inserts to my database and the file swells instantly. If I let it grow for more than a day or so it will take up all the room on the server. I just want to log deletes for disaster recovery purposes. Any thoughts?
Share
A log file contains all changes to a database. It can be used to roll a backup forward:
But in order to roll a database forward, the log has to contain all updates, not just deletes. So I don’t think you can change it to just log deletes.
Is it an option to make full backups more often? After a full backup, you delete the old log files. That’s a good way to keep the size of the binary log under control.