引言

最近加入了一个MySQL的开源组织,旨在将MySQL的英文官网文档翻译成中文,下面的内容为我负责的部分,因水平有限,在翻译过程中难免有纰漏,还请读者多多指教。

原文

17.1 Replication Configuration

17.1.1 How to Set Up Replication

17.1.2 Replication Formats

17.1.3 Replication with Global Transaction Identifiers

17.1.4 Replication and Binary Logging Options and Variables

17.1.5 Common Replication Administration Tasks

Replication between servers in MySQL is based on the binary logging mechanism. The MySQL instance operating as the master (the source of the database changes) writes updates and changes as “events” to the binary log. The information in the binary log is stored in different logging formats according to the database changes being recorded. Slaves are configured to read the binary log from the master and to execute the events in the binary log on the slave’s local database.Important

You cannot configure the master to log only certain events.

The master is “dumb” in this scenario. Once binary logging has been enabled, all statements are recorded in the binary log. Each slave receives a copy of the entire contents of the binary log. It is the responsibility of the slave to decide which statements in the binary log should be executed; you cannot configure the master to log only certain events. If you do not specify otherwise, all events in the master binary log are executed on the slave. If required, you can configure the slave to process only events that apply to particular databases or tables.

Each slave keeps a record of the binary log coordinates: The file name and position within the file that it has read and processed from the master. This means that multiple slaves can be connected to the master and executing different parts of the same binary log. Because the slaves control this process, individual slaves can be connected and disconnected from the server without affecting the master’s operation. Also, because each slave records the current position within the binary log, it is possible for slaves to be disconnected, reconnect and then resume processing.

The master and each slave must be configured with a unique ID (using the server-id option). In addition, each slave must be configured with information about the master host name, log file name, and position within that file. These details can be controlled from within a MySQL session using the CHANGE MASTER TO statement on the slave. The details are stored within the slave’s master info repository, which can be either a file or a table (see Section 17.2.2, “Replication Relay and Status Logs”).

This section describes the setup and configuration required for a replication environment, including step-by-step instructions for creating a new replication environment. The major components of this section are:

For a guide to setting up two or more servers for replication, Section 17.1.1, “How to Set Up Replication”, deals with the configuration of the systems and provides methods for copying data between the master and slaves.

Events in the binary log are recorded using a number of formats. These are referred to as statement-based replication (SBR) or row-based replication (RBR). A third type, mixed-format replication (MIXED), uses SBR or RBR replication automatically to take advantage of the benefits of both SBR and RBR formats when appropriate. The different formats are discussed in Section 17.1.2, “Replication Formats”.

Detailed information on the different configuration options and variables that apply to replication is provided in Section 17.1.4, “Replication and Binary Logging Options and Variables”.

Once started, the replication process should require little administration or monitoring. However, for advice on common tasks that you may want to execute, see Section 17.1.5, “Common Replication Administration Tasks”.

译文

16.1.1如何建立复制

16.1.2复制格式

16.1.3使用全局事务标识符进行复制

16.1.4复制和二进制日志记录选项和变量

16.1.5常见复制管理任务

MySQL服务器之间的复制是基于二进制日志机制,MySQL主实例节点(数据库的变化源)将更新和变化作为“事件”写入二进制日志。不同的事件类型格式化成不同的二进制日志,从库读取主库二进制日志并在本地数据库上执行二进制日志中的事件。重要

您不能将主数据库配置为仅记录特定事件。

在这种情况下,主库是“哑的”。 一旦启用二进制日志记录,所有语句都记录在二进制日志中。 每个从库接收二进制日志的全部内容的副本。 决定在二进制日志中执行哪些语句是从库的责任; 您不能将主机配置为仅记录特定事件。 如果没有指定,则在从库上执行主库二进制日志中的所有事件。 如果需要,可以将从库配置为仅处理特定数据库或表的事件。

每个从库保存二进制日志的坐标:从主库读取和处理的文件中的文件名和位置。 这意味着多个从库可以连接到主站并执行相同二进制日志的不同部分。 由于从库控制此过程,因此可以在不影响主站操作的情况下将各个从站连接和断开与服务器的连接。 此外,由于每个从库记录二进制日志中的当前位置信息,因此可以断开重连然后恢复处理。

主库和每个从库必须配置唯一的ID(使用server-id选项)。此外,每个从库必须配置有关主库主机名,日志文件名和该文件中位置的信息。 这些细节可以在MySQL会话中使用从设备上的CHANGE MASTER TO语句来控制。 详细信息存储在从属主信息库中,可以是文件或表(请参见第16.2.2节“复制中继和状态日志”)。

本节介绍复制环境所需的体系和配置,包括创建新复制环境的分步说明。 本节的主要组成部分是:有关设置两个或多个复制服务器的指南,请参见第16.1.1节“如何设置复制”,介绍系统的配置,并提供在主站和从站之间复制数据的方法。

二进制日志中的事件使用多种格式记录。 这些称为基于语句的复制(SBR)或基于行的复制(RBR)。 第三种类型的混合格式复制(MIXED)在适当时自动使用SBR或RBR复制来利用SBR和RBR格式的优点。 第16.1.2节“复制格式”中讨论了不同的格式。

有关适用于复制的不同配置选项和变量的详细信息,请参见第16.1.4节“复制和二进制日志记录选项和变量”。

mysql数据库英文句子翻译_【数据库知识】MySQL英文文档翻译相关推荐

  1. 老人与海好词100英文带翻译_老人与海英文读后感100字

    老人与海英文读后感 100 字 篇一 recently,i read a famous novel"the old man and the sea",i learn many th ...

  2. 计算机 前台英文翻译,前台接待最常用的英文句子有哪些?前台接待英文怎么说?...

    前台接待最常用的英文句子有哪些?前台接待英文怎么说? 在前台接待所使用的英语会话,基本上是属于商业英语,与日常生活会话中所使用的英语略有不同,较注重礼节.正式英语通常会让人误解为极艰深的英语,其实,只 ...

  3. 英文pdf翻译中文,试试这个在线文档翻译平台

    英文pdf翻译中文,机翻是第一选择,不可否认,人工翻译的精准度以及语言表达都要比机翻优秀,然而高昂的人工翻译成本并不是所有企业和个人可以承担的,这时候类似我们唐帕翻译这种以行业术语语料为翻译逻辑的将成 ...

  4. mysql数据库英文句子翻译_MySQL文档翻译(八)附英文原文---性能优化概览

    优化概述 数据库性能表现依赖于数据库级别的几个因素,比如表,查询和配置设置.这些软件在硬件级别通过CPU和IO操作构筑结果,你需要尽可能的使用最少的资源达到最大的效果.当你专注于数据库的性能表现时,你 ...

  5. mysql实验四数据库查询和视图_数据库-第四次实验报告-视图-t-sql语句

    实验十报告 创建视图 实验目的 1.掌握创建视图的SQL语句的用法. 2.掌握使用企业管管理器创建视图的方法. 3.掌握使用创建视图向导创建视图的方法. 4.掌握查看视图的系统存储过程的用法. 5.掌 ...

  6. mysql中日期相减_如何使用MySQL数据库

    如何使用MySQL数据库 前言:前面我们已经了解了如何搭建MySQL数据库,那么接下来我们就一起来了解一下,如何使用MySQL数据库. MySQL数据库系统也是一个典型的C/S(客户端/服务器)架构应 ...

  7. mysql 删除多余帐号_安装完mysql数据库后的优化(删除多余用户和数据库)

    安装完mysql数据库后的优化(删除多余用户和数据库) 发布时间:2020-06-27 19:09:35 来源:51CTO 阅读:2761 作者:冰冻vs西瓜 栏目:数据库 1.查看数据库的版本信息: ...

  8. mysql中ak替换键_数据库:唯一性约束_alternate key(替换键) mySQL Oracle 数据库 ak 唯一性约束...

    数据库:唯一性约束_alternate key(替换键) mySQL Oracle 数据库 ak 唯一性约束 数据库:唯一性约束 所谓唯一性约束(unique constraint)不过是数据表内替代 ...

  9. mysql视图改造实体表_数据库视图改了对基表

    数据库必知词汇:数据库视图 视图是从一个或几个基本表(或视图)中导出的虚拟的表.在系统的数据字典中仅存放了视图的定义,不存放视图对应的数据.视图与表(有时为与视图区别,也称表为基本表--Base Ta ...

最新文章

  1. 空间里相片批量导入u盘_国民好物:aigo手机U盘 开启存储新时代
  2. switch case 判断是否为按钮、设置属性 Load Foreach 绑定事件
  3. 最短公共子序列_最短公共超序列
  4. com词根词缀_背单词想过目不忘?看这篇文章学会用“词缀”记单词
  5. 1012.log4cplus项目应用
  6. php状态机,有限状态机FSM的原理与GO的实现
  7. python类takes no arguments_Python构造函数报错:TypeError: People() takes no arguments
  8. 浏览器从输入到输出的过程与原理一
  9. python检查超过两个条件_python-基于多个条件检查,将值从另一个数据...
  10. c语言实现简单俄罗斯方块
  11. 【UE4】特效之 Particle System 详解(一)—— 综述
  12. python代码表达失恋_利用python程序浪漫安慰失恋妹纸
  13. NVIDIA GeForce Experience报错:“验证程序加载失败,请检查您的浏览器设置,例如广告拦截程序”的解决方法
  14. position: relative相对定位 ; absolute绝对定位 子绝父相 盒子居中 堆叠顺序z-index cursor光标 hover悬停 轮播图 固定定位fixed
  15. 使用python绘制标准心形线
  16. php-ews发送邮件,使用php-ews回复电子邮件
  17. 数学复习全程规划及方法指导(武忠祥笔记)
  18. tabIndex的用途
  19. MGD 调试 Lives2d 文字破碎问题 (MX2)
  20. Hyperledger Fabric 入门必读书籍

热门文章

  1. 抖音账号哪几个阶段必须要养号?
  2. 2023年,“价格杀手”——AI得贤招聘官直接击穿底价,打响招聘管理系统领域价格战的第一枪!
  3. 3.遥感图像模型和特征
  4. 1.韩语入门基本发音
  5. HDU 6917 Shorten the array
  6. 头像的裁剪修改(可使用摄像头)与上传服务器(SSM实现)
  7. php 合并多个ppt,怎样合并两个ppt,怎么将两个ppt合并起来
  8. 6AV6381-2BD07-5AV0西门子WinCCV7.5(RT 512)
  9. LD(Local descriptor)
  10. 数据加密的类型、算法、技术以及方法