17.1.2?Replication Formats 复制格式:
17.1.2?Replication Formats 复制格式: 17.1.2.1 Advantages and Disadvantages of Statement-Based and Row-Based Replication
17.1.2.2 Usage of Row-Based Logging and Replication
17.1.2.3 Determination of Safe and Unsafe Statements in Binary Logging 复制工作因为events 写到binary log 是从master读取的,然后在slave上处理。 事件时记录在binary log 按不同的格式更具事件的类型。 不同的复制格式用于相应的binary logging 格式用于当events 是记录到Master的binary log. binary logging格式和术语之间的关系是用于在复制过程中: 当使用基于语句的binary logging,master 写SQL 语句到binary log.master的复制到slaves的工作通过执行SQL语句在slave上。 这是被称为是基于语句的复制(简称SBR),相应的到标准的MySQL 基于语句的binary loging 格式。 复制功能在MySQL 版本5.1.4 和早期版本使用这个格式 当使用基于行的日志记录,master 写events 到binary log 表明单个表记录被改变。 master的复制到slave 工作通过复制events 表示改变到表的记录到slave. 这个被称为基于行的复制(简称RBR),在基于行的复制,master 写events到binary log 表明单个表的记录被改变 你也可以配置MySQL 使用一个混合基于语句的和基于行的记录日志格式, 依赖哪个是最适合的对于记录改变, 这被称为是混合格式记录。 放使用混合格式记录, 一个基于语句log是默认使用的。依赖某些语句, 和使用的存储引擎。 日志会自动的切换到row-based 在特定的例子。 复制使用混合模式是经常称为混合复制或者混合格式复制 In MySQL 5.6, statement-based format is the default. 基于语句格式是默认的: 当使用混合格式, binary logging 格式是取决于通过使用的存储引擎和执行的语句。 日志格式在一个运行的MySQL server 是通过设置binlog_format 参数控制的, 变量可以设置session级别或者全局级别。 规则控制何时和如何 新的设置生效 生效是和其他的MySQL server 系统变量一样 设置变量对于当前的session 持续只有到会话结束, 改变对于其他sessions是不可见的, 设置变量全局需要一个重启server生效。 有些情况下,你不能改变binary logging格式 在运行时或者这么做会导致复制失败 你必须有SUPER 权限来设置全局或者session binlog_fomat 值 基于语句和行复制格式有不同的问题和限制 基于语句的复制,你可能会遇到 复制存储过程或者触发器。 你可以避免那些问题通过使用 基于行的复制
17.1.2?Replication Formats 复制格式:的更多相关文章
- 17.1.2 Replication Formats
17.1.2 Replication Formats 复制格式 17.1.2.1 Advantages and Disadvantages of Statement-Based and Row-Bas ...
- 17.1 Replication Configuration 复制配置
17.1 Replication Configuration 复制配置 17.1.1 How to Set Up Replication 17.1.2 Replication Formats 17.1 ...
- 17.1 Replication Configuration 复制:
17.1 Replication Configuration 复制: 17.1.1 How to Set Up Replication 17.1.2 Replication Formats 17.1. ...
- 17.2.2 Replication Relay and Status Logs 复制Relay 和状态日志;
17.2.2 Replication Relay and Status Logs 复制Relay 和状态日志: 17.2.2.1 The Slave Relay Log 17.2.2.2 Slave ...
- 17.2.1 Replication Implementation Details 复制实现细节:
17.2 Replication Implementation 复制是基于master server 跟踪所有改变到他的数据库(更新,删除等等)在它的binary log. binary log 作为 ...
- 17.1.4 Replication and Binary Logging Options and Variables 复制和Binary logging 选项和变量
17.1.4 Replication and Binary Logging Options and Variables 复制和Binary logging 选项和变量 下面的章节包含信息关于mysql ...
- 17.1.1 How to Set Up Replication 设置复制:
17.1.1 How to Set Up Replication 设置复制: 17.1.1.1 Setting the Replication Master Configuration 17.1.1. ...
- 17.2?Replication Implementation 复制实施:
17.2?Replication Implementation 复制实施: 17.2.1 Replication Implementation Details 17.2.2 Replication R ...
- MySQL 5.7.17 Group Relication(组复制)搭建手册【转】
本博文介绍了Group Replication的两种工作模式的架构.并详细介绍了Single-Master Mode的部署过程,以及如何切换到Multi-Master Mode.当然,文末给出了Gro ...
随机推荐
- 获取和设置iframe中的元素
http://www.cnblogs.com/gao-qiang/archive/2012/09/19/2694336.html http://java-my-life.iteye.com/blog/ ...
- sql语句中特殊函数的用法
1.concat CONCAT(字串1, 字串2, 字串3, ...): 将字串1.字串2.字串3,等字串连在一起. 例如: Geography 表格 region_name store_na ...
- Convert Sorted List to Balanced Binary Search Tree (BST)
(http://leetcode.com/2010/11/convert-sorted-list-to-balanced-binary.html) Given a singly linked list ...
- Scala学习之延迟绑定
package com.swust.example object TraitDemo2 extends App{ //抽象类 abstract class Writer { def writeMess ...
- Spark学习之RDD的理解
转自:http://www.infoq.com/cn/articles/spark-core-rdd/ 感谢张逸老师的无私分享 RDD,全称为Resilient Distributed Dataset ...
- 对discuz的代码分析学习(三)mysql驱动
一. 属性分析 1.tablepre :表名称前缀 2.version : 数据库版本 3.drivertype:驱动类型 4.querynu ...
- 阿里云ECS每天一件事D6:安装nginx-1.6.2
自从接触nginx就开始喜欢上这个小东西了,似乎没什么特别的原因,就是喜欢而已. 1.安装环境的准备 yum install pcre pcre-devel openssl openssl-devel ...
- 把WinXP装进内存 性能飚升秒杀固态硬盘
现在用户新配置的电脑,内存很少有小于2GB的,配置4GB内存的朋友也有不少.容量如此大的内存,我们在使用电脑的日常操作中绝对用不完.而目前制约系统性能最大的瓶颈就是硬盘的传输速度,所以,这里教你怎么把 ...
- CodeForces 235C Cyclical Quest(后缀自动机)
[题目链接] http://codeforces.com/contest/235/problem/C [题目大意] 给出一个字符串,给出一些子串,问每个子串分别在母串中圆环匹配的次数,圆环匹配的意思是 ...
- java ssh
sshj (currently best choice) https://github.com/shikhar/sshj ssh used in jenkins-ci https://github.c ...