在很多情况下我们都有需要分析binlog的需求,对于python来说可以使用https://github.com/noplay/python-mysql-replication 来解析binlog