MySQL二进制日志分析-概述篇
MySQL从3.23版本开始引入了二进制日志,用于的数据复制, 二进制日志根据MySQL的版本不同,目前有4个版本: https://dev.mysql.com/doc/internals/en/binlog-version.html Version 1: supported statement based replication events. Version 2: can be ignored as it was only used in early alpha versions of MySQL 4.1.x and won't be documented here. Version 3: added the relay logs and changed the meaning of the log position. Version 4: added the FORMAT_DESCRIPTION_EVENT and made the protocol extensible. 二进制日志版本是向后兼容的, 后一个版本可以看成是对前一个版本的继承和扩展,需要注意的是,version 2是一个临时版本, 可以忽略。事实上可以只关心v4版本,因为现在跑的MySQL都应该是MySQL 5+了,就如现再讨论Oracle 8i, 9i没什么实际意义。截至当前最新的MySQL 8版本