如何使用 MySql 的基于行的复制处理 DDL 语句(创建、更改、删除)?
How to handle DDL statements (create,alter,drop) with row based replication for MySql?
基于行的复制 MySql 文档指出:
"For statements such as CREATE TABLE ... SELECT, a CREATE statement is generated from the table definition and replicated using statement-based format, while the row insertions are replicated using row-based format."
基于行的复制如何处理更改和删除语句?找不到任何相关文档,我是否需要将这些命令重新运行到副本上?
来自 http://dev.mysql.com/doc/refman/5.7/en/binary-log-setting.html 的文档:
With the binary log format set to ROW, many changes are written to the binary log using the row-based format. Some changes, however,
still use the statement-based format. Examples include all DDL (data
definition language) statements such as CREATE TABLE, ALTER TABLE, or
DROP TABLE.
DDL 语句使用基于语句的复制处理,而 DML(包括删除)使用基于行的复制处理。
在正常操作下,您应该不需要重新运行任何语句。
基于行的复制 MySql 文档指出:
"For statements such as CREATE TABLE ... SELECT, a CREATE statement is generated from the table definition and replicated using statement-based format, while the row insertions are replicated using row-based format."
基于行的复制如何处理更改和删除语句?找不到任何相关文档,我是否需要将这些命令重新运行到副本上?
来自 http://dev.mysql.com/doc/refman/5.7/en/binary-log-setting.html 的文档:
With the binary log format set to ROW, many changes are written to the binary log using the row-based format. Some changes, however, still use the statement-based format. Examples include all DDL (data definition language) statements such as CREATE TABLE, ALTER TABLE, or DROP TABLE.
DDL 语句使用基于语句的复制处理,而 DML(包括删除)使用基于行的复制处理。
在正常操作下,您应该不需要重新运行任何语句。