首批通过分布式安全可靠测评,为关键业务系统打造
Binlog 模式与 MySQL binlog 兼容性对比
更新时间:2024-01-19 16:56:18
本文介绍 Binlog 模式 与 MySQL binlog 兼容性对比信息。
MySQL binlog 相关命令
| 命令 | 是否支持 |
|---|---|
| show master status | 支持 |
| show binary logs | 支持 |
| show binlog events | 支持 |
| purge binary logs | 支持 |
| reset master | 不支持 |
| show binlog server | 支持 |
MySQL binlog 复制协议
| 协议 | 是否支持 |
|---|---|
| com_binlog_dump | 支持 |
| com_binlog_dump_gtid | 支持 |
| com_register_slave | 支持 |
MySQL 相关系统变量
| 系统变量 | OceanBase 支持说明 |
|---|---|
| binlog_format | row |
| binlog_row_image | full |
| binlog_checksum | crc32 |
| binlog_rows_query_log_events | off |
| log_bin | on |
| server_id | 大于 0 整数,租户创建后该值保持不变 |
| server_uuid | 租户创建后该值应保持不变 |
注意
OceanBase 的 DDL 语法与 MySQL 的 DDL 语法存在一定的差异,即 OceanBase 具有自己的一些扩展语法,因此部分 DDL 语法可能无法解析。
为了解决这种问题,OceanBase 进行了兼容性支持。我们建议在 OBProxy 中设置 init_sql 来开启_show_ddl_in_compat_mode。开启后,OceanBase 的 show create table 输出将完全兼容 MySQL 的语法。