用于数据恢复的binlog

前提条件

1、定时mysqldumps全备数据库

2、开启binlog增量备份

 

情景:手滑误操作删表操作

立刻

mysql>flush logs;  #开启一个新的binlog日志

mysql>show master logs; #查看binlog日志

1)找到最新的binlog文件

2)找到误操作的pos位置 #例如:452

进入mysqlbinlog目录

mysqlbinlog --stop-position=452 --database=binlog_test #binlog日志文件位置#| mysql -uroot -ppwd -v binlog_test

相关文章:

  • 2022-12-23
  • 2021-04-23
  • 2021-08-20
猜你喜欢
  • 2021-10-12
  • 2022-01-18
  • 2021-11-17
  • 2022-01-07
  • 2021-11-12
  • 2022-01-29
相关资源
相似解决方案