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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b388eb-2c12a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b388eb-2c12a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?