Can mysql master-slave backup prevent the master server from being deleted from the database?

based on binlog master-slave replication, if master"s library or table is deleted, slave"s will also be deleted. I would like to ask whether the binlog read by slave from master is saved on slave, so that slave can be restored after deleting the database and deleting the table (assuming that the binlog of the main database is maliciously deleted after deleting the table)


is saved, but if you scroll forward, you can't find it without timely backup.


Open binlog on the slave library and open the log-slave-updates option, so that updates from Master Synchronize will be logged.
this ensures more security. Even if the master database is deleted and the log files are deleted, it can still be recovered from the slave!


  • if the mysql is mistakenly deleted due to delete truncate and other operations, the mysql master server can recover from the log itself.
  • if this is due to rm-rf , then the slave database does have this effect
Menu