mysql的binlog日志操作

1.查看日志开启状态

show variables like 'log_%';

 2.查看所有binlog日志列表

show master logs;

 3.查看最新一个binlog日志的编号名称,以及最后一个操作事件结束点

show master status;

 4.刷新log日志,立刻产生一个新编号的binlog日志文件

flush logs;

5.清空所有binlog日志

reset master;

原文地址:https://www.cnblogs.com/zxh06820/p/12654100.html