在主服务器操作:

1.查看当前主从库是用哪个binlog日志在做组从

show master status

show  slave status

 

2.查看主库的binlog日志

show master logs

 

3.备份:

删除之前先做备份,避免删错,虽然耗费时间,但是换来的是意外发生导致的心脏承受不了的风险降低,很划算。。

 

4.删除binlog日志:

purge master logs before '2019-02-03 00:00:00'      #删除2019-02-03 00:00:00   之前的binlog日志

相关文章:

  • 2022-01-23
  • 2021-10-10
  • 2021-07-21
  • 2021-05-21
  • 2023-01-13
  • 2021-06-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2022-02-25
  • 2021-11-18
相关资源
相似解决方案