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 Status Logs 在复制过程中,一个slave server 创建几个logs 持有binary log events 中继从master 到slave, 记录信息关于当前的状态和位置 在relay log里, 有3种类型的日志 如下: 1.relay log 包含events 从master的binary log 读取 通过slave I/O thread写入。 Events 在relay log 是在slave上呗执行作为SQL thread 的一部分 2. master info log 包含了状态和当前配置信息 对于slave连接到master. log 持有的信息关于master host name, login credentials, coordinates 表明slave 已经从master的binary log读取多远 在MySQL 5.6之前,这个log总是一个文件(master.info),但是在MySQL 5.6和以后版本, 这个日志可以写入到mysql.slave_master_info代替文件,通过--master-info-repository=TABLE mysql> select * from mysql.slave_master_info\G;
*************************** 1. row ***************************
Number_of_lines: 23
Master_log_name: mysql-bin.000017
Master_log_pos: 234940920
Host: 192.168.11.186
User_name: backup
User_password: kjk7787czcb
Port: 3306
Connect_retry: 60
Enabled_ssl: 0
Ssl_ca:
Ssl_capath:
Ssl_cert:
Ssl_cipher:
Ssl_key:
Ssl_verify_server_cert: 0
Heartbeat: 1800
Bind:
Ignored_server_ids: 0
Uuid: d6881046-9be4-11e6-8b6a-0050568a6b1d
Retry_count: 86400
Ssl_crl:
Ssl_crlpath:
Enabled_auto_position: 0
1 row in set (0.00 sec) ERROR:
No query specified relay log info log 持有状态信息关于在slave的relay log的执行点 在MySQL 5.6之前,日志总是一个文件(relay-log.info),但是在MySQL 5.6和以后版本, 日志可以写入到mysql.slave_relay_log_info 表带人体文件通过with --relay-log-info-repository=TABLE. mysql> select * from mysql.slave_relay_log_info\G;
*************************** 1. row ***************************
Number_of_lines: 7
Relay_log_name: ./mysqld-relay-bin.000007
Relay_log_pos: 235865893
Master_log_name: mysql-bin.000017
Master_log_pos: 235865730
Sql_delay: 0
Number_of_workers: 0
Id: 1
1 row in set (0.00 sec) ERROR:
No query specified 在MySQL 5.6中,设置relay_log_info_repository and master_info_repository to 为TABLE 可以改善意外Hash的恢复能力。 从5.6.6开始,那些表是使用InnoDB表 在MySQL 5.6.5和早期版本,slave_master_info and slave_relay_log_info tables 默认是使用MyISAM 这以为这你需要在启动复制前改变存储引擎通过执行ALTER TABLE ... ENGINE=InnoDB ALTER TABLE mysql.slave_master_info ENGINE=InnoDB;
ALTER TABLE mysql.slave_relay_log_info ENGINE=InnoDB; 注意: 不要尝试更新或者插入lave_master_info or slave_relay_log_info table 表手动的, 这么做会导致未定义的行为,是不支持的
17.2.2 Replication Relay and Status Logs 复制Relay 和状态日志;的更多相关文章
- 17.2.1 Replication Implementation Details 复制实现细节:
17.2 Replication Implementation 复制是基于master server 跟踪所有改变到他的数据库(更新,删除等等)在它的binary log. binary log 作为 ...
- 17.1.1.8?Setting Up Replication with Existing Data设置复制使用存在的数据
17.1.1.8?Setting Up Replication with Existing Data设置复制使用存在的数据 当设置复制使用存在的数据,你需要确定如何最好的从master 得到数据到sl ...
- mysqladmin processlist; show processlist/status/open tables/engine/variables/table status/columns/grants/index/privileges/innodb status/logs/warnings/////; 结果筛选
mysqladmin showprocesslist可查看完整sql需要权限. SHOW PROCESSLIST显示哪些线程正在运行.您也可以使用mysqladmin processlist语句得到此 ...
- 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.2 Replication Formats
17.1.2 Replication Formats 复制格式 17.1.2.1 Advantages and Disadvantages of Statement-Based and Row-Bas ...
- 17.1.1.3 Creating a User for Replication 创建一个用于用于复制:
17.1.1.3 Creating a User for Replication 创建一个用于用于复制: 每个slave 连接到master 使用一个MySQL 用户名和密码, 因此必须有一个用户账户 ...
- 17.1.2?Replication Formats 复制格式:
17.1.2?Replication Formats 复制格式: 17.1.2.1 Advantages and Disadvantages of Statement-Based and Row-Ba ...
- 【docker】docker部署spring boot服务,但是docker logs查看容器输出控制台日志,没有日志打印,日志未打印,docker logs不打印容器日志
如题: docker部署spring boot服务,但是docker logs查看容器输出控制台日志,没有日志打印,日志未打印,docker logs不打印容器日志 场景再现: docker部署并启动 ...
- 从show slave status 中判断mysql同步状态
slave status 中检查同步状态: 1.sql线程和io线程显示yes Slave_IO_Running: Yes Slave_SQL_Running: Yes 2. Master_Log_F ...
随机推荐
- jpGraph的应用及基本安装配置 BY 命运
1.---jpGraph其实就是一个图表类库,会让开发者们作图非常方便,只要几行代码就可以勾画出非常炫的图表. 官方下载地址是:http://jpgraph.net/download/ jpGra ...
- Mvc分页:为IQueryable定义一个扩展方法,直接反回PagedList<T>结果集
namespace Entity{ public interface IPagedList { /// <summary> /// 记录数 /// </summary> int ...
- ios Using CocoaPods to Modularize a Big iOS App->使用CocoaPods来进行模块化开发
Selecting the right architecture for your mobile app is a pretty big deal. It will shape your daily ...
- nvidia安装与卸载方式
第1种方法:.最好的方式不是手动安装官方驱动(手动安装官方驱动无法使用gpu,而且无法启用3d,同时无法生效,所以最好采用此种方法),而是使用bumblebee-nvidia安装,不过要先添加x-sw ...
- iOS zipzap读取压缩文件
最近在公司遇到一项需求,在不解压zip文件的情况下读取其中的文件,因为之前使用的ziparchive不能满足现在的需求,所以在网上一阵狂搜,终于找到了zipzap,实话说还真的难找. 之前读取本地zi ...
- O-C相关06:self和super关键字介绍——self关键字
self关键字介绍 1.self和super OC 版权声明:本文为博主原创文章,未经博主允许不得转载. posted @ 2015-08-04 12:46 王刚韧(wanghy_iOS) 阅读(.. ...
- c# 串口发送接收数据
/********************** 串口数据接收事件 *****************************/ private void SerialPort_DataReceived ...
- phaser源码解析(一) Phaser.Utils类下shuffle方法
/** * #一个 基于 费雪耶茨排列 洗牌方法 * A standard Fisher-Yates Array shuffle implementation. * @method Phaser.Ut ...
- 【制作镜像】BCEC制作镜像
如要制作的新镜像已存在标准版本镜像,即linux发行版本相同(此处指CentOS6.5 64位),可利用BCEC制作. 在BCEC创建centos6.5系统的可联外网的虚机,ssh到此虚机,用yum方 ...
- EF 存储过程(下)
本节,我们将学习如何手动添加/修改存储过程,如何使EF能够支持Output类型的参数 > 添加/修改存储过程 有时候,某个SQL语句比较复杂,但是数据库中又没有定义相应的存储过程.这个时候,我们 ...