手动切换:flush logs 或者flush binary logs

被动触发:

达到1G,自动切换,但是并不是准确的1G,要保证每个事务在一个日志中,要等到最后一个事务做完再Rotate。