版本不一致,导致如下。

MySQL [(none)]> select version();      阿里云

+------------+ 

| version()  |

+------------+

| 5.6.16-log |

+------------+

1 row in set (0.01 sec)



MariaDB [(none)]> select version();     本地

+----------------+

| version()      |

+----------------+

| 5.5.45-MariaDB |

+----------------+

1 row in set (0.00 sec)

[root@mysql-01 opt]# mysqlbinlog mysql-bin.000010 >>a.sql

ERROR: Error in Log_event::read_log_event(): 'Found invalid event in binary log', data_len: 151, event_type: 35

ERROR: Could not read entry at offset 120: Error in log format or read error.