使用 MyCat 配置 MySQL 集群(2)—— 配置 MySQL 主从复制
一、安装环境
1、操作系统版本
[root@mysql01 scripts]# cat /etc/redhat-release
CentOS release 6.5 (Final)
[root@mysql02 ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)
2、MySQL 版本
[root@mysql02 ~]# ls /home/soft
mysql-5.6.26.tar.gz
3、主机信息
(1)主节点
## 主节点 IP:192.168.1.102 主机名:mysql01
[root@mysql01 scripts]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:91:7A:39
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe91:7a39/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:30491 errors:0 dropped:0 overruns:0 frame:0
TX packets:24737 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32584017 (31.0 MiB) TX bytes:4185132 (3.9 MiB)
[root@mysql01 scripts]# hostname
mysql01
(2)从节点
## 从节点 IP:192.168.1.103 主机名:mysql02
[root@mysql02 mysql]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:C6:9E:3C
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fec6:9e3c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:31812 errors:0 dropped:0 overruns:0 frame:0
TX packets:25903 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32703494 (31.1 MiB) TX bytes:4298959 (4.0 MiB)
[root@mysql02 scripts]# hostname
mysql01
二、MySQL 主从复制的原理
1、主节点(Master)将数据改变记录到二进制日志(binary log)中,也就是配置文件 log-bin 指定的文件,这些记录称为二进制日志事件(binary log events);
2、从节点(Slave)通过 I/O 线程读取 Master 节点中的 binary log events 并写入到中继日志(relay log);
3、Slave 节点重做中继日志中的事件,把中继日志中的事件信息一条一条的在本地执行一次,完成数据在本地的存储,从而实现将改变反映到它自己的数据。
MySQL 主从复制原理如下图所示:
三、MySQL 主从复制的配置
1、MySQL 主从复制对主机和 MySQL 的要求
(1)主从服务器操作系统版本和位数必须一致;
(2)主节点(Master)和从节点(Slave)数据库版本必须一致;
(3)主节点(Master)和从节点(Slave)数据库中的数据必须一致;
(4)主节点(Master)需要开启二进制日志;
(5)主节点(Master)和从节点(Slave)的 server_id 在局域网内必须唯一。
2、主节点(Master)的配置
(1)安装数据库;
(2)修改数据库配置文件,指定 server_id,开启二进制日志(log-bin);
(3)启动数据库,查看当前是哪个日志,position 号是多少;
(4)登录数据库,授权数据复制用户(IP 地址为从机 IP 地址);
(5)备份数据库(记得加锁和解锁);
(6)传送备份数据到 Slave;
(7)启动数据库。
3、从节点(Slave)的配置
(1)安装数据库;
(2)修改数据库配置文件,指明 server_id;
(3)启动数据库,还原备份;
(4)指定 Master 的地址、用户、密码等信息;
(5)开启同步,查看状态。
四、单向主从环境的搭建
1、在主节点和从节点安装相同版本 MySQL
(1)主节点
[root@mysql01 scripts]# mysql -uroot -p123456
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.6.26-log Source distribution
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
(2)从节点
[root@mysql02 mysql]# mysql -uroot -p123456
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.6.26-log Source distribution
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
2、修改主节点(Master)的配置文件 /etc/my.cnf
在配置文件的 [mysqld] 中增加以下配置项:
[root@mysql01 scripts]# vi /etc/my.cnf
[mysqld]
server_id = 102 ## server_id,设置为 IP 地址的最后一段
binlog-do-db = mydb ## 复制过滤:需要备份的数据库,输出 binlog
binlog-ignore-db = mysql ## 复制过滤:不需要备份的数据库,不输出(mysql 库一般不同步)
log-bin = mysql01-bin ## 开启二进制日志功能
binlog_cache_size = 1M ## 为每个 session 分配的内存,用来存储二进制日志的缓存
binlog_format = mixed ## 主从复制的格式(mixed,statement,row,默认格式是 statement)
expire_logs_days = 7 ## 二进制日志自动删除/过期的天数。默认值为 0,表示不自动删除。
slave_skip_errors = 1062 ## 跳过主从复制中遇到的所有错误或指定类型的错误,避免 slave 端复制中断。
## 如:1062 错误是指一些主键重复,1032 错误是因为主从数据库数据不一致
## 说明:二进制日志(binlog)的复制类型
## (1)基于语句的复制(statement):在 Master 上执行的 SQL 语句,在 Slave 上执行同样的语句。MySQL 默
## 认采用基于语句的复制,效率比较高。一旦发现没法精确复制时,会自动选择基于行的复制。
## (2)基于行的复制(row):把改变的内容复制到 Slave,而不是把命令在 Slave 上执行一遍。从ySQL5.0 开始支持。
## (3)混合类型的复制(mixed):默认采用基于语句的复制,一旦发现基于语句的无法精确的复制时,就会采用
## 基于行的复制。
说明:复制过滤可以让你只复制服务器中的一部分数据,有两种复制过滤:
(1)在 Master 上过滤二进制日志中的事件;
(2)在 Slave 上过滤中继日志中的事件。如下图所示:
设置完成后,重启 MySQL 服务:
[root@mysql01 scripts]# service mysql restart
Shutting down MySQL.. SUCCESS!
Starting MySQL.. SUCCESS!
3、创建数据同步用户,并授予相应的权限
mysql> grant replication slave, replication client on *.*
-> to 'repl'@'192.168.1.103'
-> identified by '123456';
Query OK, 0 rows affected (0.01 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
4、查看 position 号,记下 position 号
mysql> show master status;
+--------------------+----------+--------------+------------------+-------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set |
+--------------------+----------+--------------+------------------+-------------------+
| mysql01-bin.000001 | 429 | mydb | mysql | |
+--------------------+----------+--------------+------------------+-------------------+
1 row in set (0.00 sec)
5、在主节点中的 mydb 数据库中创建表,并插入数据
mysql> show tables;
+----------------+
| Tables_in_mydb |
+----------------+
| course |
| score |
| student |
| teacher |
+----------------+
4 rows in set (0.00 sec)
mysql> select * from student;
+-------+-----------+---------------------+-------------+-----------+
| s_id | s_name | birth | phone | addr |
+-------+-----------+---------------------+-------------+-----------+
| S2011 | 张晓刚 | 1999-12-03 00:00:00 | 13163735775 | 信阳市 |
| S2012 | 刘小青 | 1999-10-11 00:00:00 | 13603732255 | 新乡市 |
| S2013 | 曹梦德 | 1998-02-13 00:00:00 | 13853735522 | 郑州市 |
| S2014 | 刘艳 | 1998-06-24 00:00:00 | 13623735335 | 郑州市 |
| S2015 | 刘岩 | 1999-07-06 00:00:00 | 13813735225 | 信阳市 |
| S2016 | 刘若非 | 2000-08-31 00:00:00 | 13683735533 | 开封市 |
| S2021 | 董雯花 | 2000-07-30 00:00:00 | 13533735564 | 开封市 |
| S2022 | 周华建 | 1999-05-25 00:00:00 | 13243735578 | 郑州市 |
| S2023 | 特朗普 | 1999-06-21 00:00:00 | 13343735588 | 新乡市 |
| S2024 | 奥巴马 | 2000-10-17 00:00:00 | 13843735885 | 信阳市 |
| S2025 | 周健华 | 2000-08-22 00:00:00 | 13788736655 | 开封市 |
| S2026 | 张学有 | 1998-07-06 00:00:00 | 13743735566 | 郑州市 |
| S2031 | 李明博 | 1999-10-26 00:00:00 | 13643732222 | 郑州市 |
| S2032 | 达芬奇 | 1999-12-31 00:00:00 | 13043731234 | 郑州市 |
+-------+-----------+---------------------+-------------+-----------+
14 rows in set (0.00 sec)
mysql> select * from course;
+------+-----------------+-------+
| c_id | c_name | t_id |
+------+-----------------+-------+
| C101 | 古代文学 | T8001 |
| C102 | 高等数学 | T8002 |
| C103 | 线性代数 | T8002 |
| C104 | 临床医学 | T8003 |
| C105 | 传染病学 | T8003 |
| C106 | 大学物理 | T8004 |
| C107 | 诗歌欣赏 | T8005 |
| C108 | 教育学 | T8006 |
| C109 | 刑事诉讼法 | T8007 |
| C110 | 经济法 | T8007 |
+------+-----------------+-------+
10 rows in set (0.00 sec)
mysql> select * from teacher;
+-------+-----------+-----------+-------------+
| t_id | t_name | job_title | phone |
+-------+-----------+-----------+-------------+
| T8001 | 欧阳修 | 教授 | 13703735666 |
| T8002 | 华罗庚 | 教授 | 13703735888 |
| T8003 | 钟南山 | 教授 | 13703735675 |
| T8004 | 钱学森 | 教授 | 13703735638 |
| T8005 | 李白 | 副教授 | 13703735828 |
| T8006 | 孔子 | 教授 | 13703735457 |
| T8007 | 王安石 | 副教授 | 13703735369 |
+-------+-----------+-----------+-------------+
7 rows in set (0.00 sec)
mysql> select * from score;
+-------+------+-------+
| s_id | c_id | score |
+-------+------+-------+
| S2011 | C102 | 84 |
| S2011 | C105 | 90 |
| S2011 | C106 | 79 |
| S2011 | C109 | 65 |
| S2012 | C101 | 67 |
| S2012 | C102 | 52 |
| S2012 | C107 | 55 |
| S2012 | C108 | 86 |
| S2013 | C102 | 97 |
| S2013 | C103 | 68 |
| S2013 | C104 | 66 |
| S2013 | C105 | 68 |
| S2014 | C102 | 90 |
| S2014 | C103 | 85 |
| S2014 | C104 | 77 |
| S2014 | C105 | 96 |
| S2015 | C101 | 69 |
| S2015 | C102 | 66 |
| S2015 | C107 | 88 |
| S2015 | C108 | 69 |
| S2016 | C101 | 65 |
| S2016 | C102 | 69 |
| S2016 | C107 | 82 |
| S2016 | C108 | 56 |
| S2021 | C102 | 72 |
| S2021 | C103 | 90 |
| S2021 | C104 | 90 |
| S2021 | C105 | 57 |
| S2022 | C102 | 88 |
| S2022 | C103 | 93 |
| S2022 | C109 | 47 |
| S2022 | C110 | 62 |
| S2023 | C102 | 68 |
| S2023 | C103 | 86 |
| S2023 | C109 | 56 |
| S2023 | C110 | 91 |
| S2024 | C102 | 87 |
| S2024 | C103 | 97 |
| S2024 | C109 | 80 |
| S2024 | C110 | 81 |
| S2025 | C102 | 61 |
| S2025 | C105 | 62 |
| S2025 | C106 | 87 |
| S2025 | C109 | 82 |
| S2026 | C102 | 59 |
| S2026 | C105 | 48 |
| S2026 | C106 | 90 |
| S2026 | C109 | 73 |
+-------+------+-------+
48 rows in set (0.00 sec)
6、在主节点上备份 mydb 数据库
(1)锁表
mysql> flush tables with read lock;
Query OK, 0 rows affected (0.00 sec)
(2)新开一个窗口,备份 mydb 数据库中的数据
[root@mysql01 ~]# mysqldump -uroot -p --add-drop-table mydb > /tmp/mydb-bak.sql
Enter password:
[root@mysql01 ~]# ll /tmp/mydb-bak.sql
-rw-r--r-- 1 root root 6464 11月 7 22:39 /tmp/mydb-bak.sql
(3)解锁表
mysql> unlock tables;
Query OK, 0 rows affected (0.00 sec)
(4)将主节点的 mydb 备份传送到从节点
[root@mysql01 ~]# scp /tmp/mydb-bak.sql root@192.168.1.103:/tmp/
The authenticity of host '192.168.1.103 (192.168.1.103)' can't be established.
RSA key fingerprint is e0:9f:a1:95:d1:3e:f0:e3:15:21:2a:3d:34:af:24:f9.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.103' (RSA) to the list of known hosts.
root@192.168.1.103's password:
mydb-bak.sql
7、修改从节点的配置文件
在配置文件的 [mysqld] 中增加以下配置项:
[root@mysql02 mysql]# vi /etc/my.cnf
server_id = 103 ## server_id,一般设置为 IP 的最后一段
#binlog-do-db = mydb ## 复制过滤:需要备份的数据库,输出 binlog
#binlog-ignore-db = mysql ##复制过滤:不需要备份的数据库,不输出(mysql 库一般不同步)
#log-bin = mysql02-slave-bin ## 开启二进制日志,以备 Slave 作为其它 Slave 的 Master 时使用
#binlog_cache_size = 1M ## 为每个 session 分配的内存,在事务过程中用来存储二进制日志的缓存
#binlog_format = mixed ## 主从复制的格式(mixed,statement,row,默认格式是 statement)
#expire_logs_days = 7 ## 二进制日志自动删除/过期的天数。默认值为 0,表示不自动删除。
#slave_skip_errors = 1062 ## 跳过主从复制中遇到的所有错误或指定类型的错误,避免 slave 端复制中断。
## 如:1062 错误是指一些主键重复,1032 错误是因为主从数据库数据不一致
relay_log = mysql02-relay-bin ## relay_log 配置中继日志
#log_slave_updates = 1 ## 表示 slave 将复制事件写进自己的二进制日志
read_only = 1 ## 防止改变数据(除了特殊的线程)
说明:
(1)如果 Slave 为其它 Slave 的 Master 时,必须设置 bin_log;
(2)relay_log 配置中继日志;
(3)log_slave_updates 表示 slave 将复制事件写进自己的二进制日志。当设置 log_slave_updates 时,你可以让 slave 扮演其它 slave 的 master。此时,slave 把 SQL 线程执行的事件写进行自己的二进制日志(binary log),然后,它的 slave 可以获取这些事件并执行它。如下图所示:
设置完成后,重启 MySQL 服务:
[root@mysql02 mysql]# service mysql restart
Shutting down MySQL.. SUCCESS!
Starting MySQL.. SUCCESS!
8、在从库中导入主库的备份数据
mysql> create database mydb;
Query OK, 1 row affected (0.01 sec)
mysql> use mydb;
Database changed
[root@mysql02 tmp]# mysql -uroot -p mydb < /tmp/mydb-bak.sql
Enter password:
mysql> show tables;
+----------------+
| Tables_in_mydb |
+----------------+
| course |
| score |
| student |
| teacher |
+----------------+
4 rows in set (0.00 sec)
9、设置主从复制参数
mysql> change master to
-> master_host = '192.168.1.102',
-> master_user = 'repl',
-> master_password = '123456',
-> master_port = 3306,
-> master_log_file = 'mysql01-bin.000001',
-> master_log_pos = 4496,
-> master_connect_retry = 30;
Query OK, 0 rows affected, 2 warnings (0.04 sec)
参数说明:
master_host = '192.168.1.102' ## Master 的 IP 地址
master_user = 'repl' ## 用于同步数据的用户(在 Master 中授权的用户)
master_password = '123456' ## 同步数据用户的密码
master_port = 3306 ## Master 数据库服务的端口
master_log_file = 'mysql01-bin.000001' ## 指定 Slave 从哪个日志文件开始读复制数据(可在 Master 上
## 使用 show master status 查看到日志文件名)
master_log_pos = 4496 ## 从哪个 POSITION 号开始读
master_connect_retry = 30 ## 当重新建立主从连接时,如果连接建立失败,间隔多久后重试。
## 单位为秒,默认设置为 60 秒。
查看主从同步状态:
mysql> show slave status\G;
*************************** 1. row ***************************
Slave_IO_State:
Master_Host: 192.168.1.102
Master_User: repl
Master_Port: 3306
Connect_Retry: 30
Master_Log_File: mysql01-bin.000001
Read_Master_Log_Pos: 4496
Relay_Log_File: mysql02-relay-bin.000001
Relay_Log_Pos: 4
Relay_Master_Log_File: mysql01-bin.000001
Slave_IO_Running: No
Slave_SQL_Running: No
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 4496
Relay_Log_Space: 120
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 0
Master_UUID:
Master_Info_File: /home/mysql/data/master.info
SQL_Delay: 0
SQL_Remaining_Delay: NULL
Slave_SQL_Running_State:
Master_Retry_Count: 86400
Master_Bind:
Last_IO_Error_Timestamp:
Last_SQL_Error_Timestamp:
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set:
Executed_Gtid_Set:
Auto_Position: 0
1 row in set (0.01 sec)
10、开启主从同步
mysql> start slave;
Query OK, 0 rows affected (0.00 sec)
查看主从同步状态:
mysql> show slave status\G;
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 192.168.1.102
Master_User: repl
Master_Port: 3306
Connect_Retry: 30
Master_Log_File: mysql01-bin.000001
Read_Master_Log_Pos: 4496
Relay_Log_File: mysql02-relay-bin.000002
Relay_Log_Pos: 285
Relay_Master_Log_File: mysql01-bin.000001
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 4496
Relay_Log_Space: 460
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 0
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 102
Master_UUID: f96e51be-3fc4-11ec-92af-000c29917a39
Master_Info_File: /home/mysql/data/master.info
SQL_Delay: 0
SQL_Remaining_Delay: NULL
Slave_SQL_Running_State: Slave has read all relay log; waiting for the slave I/O thread to update it
Master_Retry_Count: 86400
Master_Bind:
Last_IO_Error_Timestamp:
Last_SQL_Error_Timestamp:
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set:
Executed_Gtid_Set:
Auto_Position: 0
1 row in set (0.00 sec)
ERROR:
No query specified
主要看以下两个参数,这两个参数如果是 Yes 就表示主从同步正常:
(1)Slave_IO_Running: Yes
(2)Slave_SQL_Running: Yes
11、测试
(1)在主节点上执行如下操作:
mysql> create table t1(id int primary key,name char(20));
Query OK, 0 rows affected (0.05 sec)
mysql> insert into t1 values(1,'Tom'),(2,'Jerry');
Query OK, 2 rows affected (0.00 sec)
Records: 2 Duplicates: 0 Warnings: 0
mysql> select * from t1;
+----+-------+
| id | name |
+----+-------+
| 1 | Tom |
| 2 | Jerry |
+----+-------+
2 rows in set (0.00 sec)
(2)查看从节点上的数据
mysql> use mydb;
Database changed
mysql> show tables;
+----------------+
| Tables_in_mydb |
+----------------+
| course |
| score |
| student |
| t1 |
| teacher |
+----------------+
5 rows in set (0.00 sec)
mysql> select * from t1;
+----+-------+
| id | name |
+----+-------+
| 1 | Tom |
| 2 | Jerry |
+----+-------+
2 rows in set (0.00 sec)
注意:
如果在 Slave 没做只读控制的情况下,千万不要在 Slave 中手动插入数据,那样数据就会不一致,主从就会断开,就需要重新配置。
12、重置主从复制设置
如果遇到同步出错,可在 Slave 上重置主从复制设置,步骤如下:
(1)重置主从复制设置
mysql> stop slave;
Query OK, 0 rows affected (0.02 sec)
mysql> reset slave;
Query OK, 0 rows affected (0.00 sec)
(2)重新设置主从复制参数
mysql> change master to master_host = '192.168.1.102',
-> master_user = 'repl',
-> master_password = '123456',
-> master_port = 3306,
-> master_log_file = 'mysql01-bin.000001',
-> master_log_pos = 4845;
Query OK, 0 rows affected, 2 warnings (0.01 sec)
(3)查看主从同步状态
mysql> show slave status\G
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 192.168.1.102
Master_User: repl
Master_Port: 3306
Connect_Retry: 30
Master_Log_File: mysql01-bin.000001
Read_Master_Log_Pos: 4845
Relay_Log_File: mysql02-relay-bin.000002
Relay_Log_Pos: 285
Relay_Master_Log_File: mysql01-bin.000001
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 4845
Relay_Log_Space: 460
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 0
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 102
Master_UUID: f96e51be-3fc4-11ec-92af-000c29917a39
Master_Info_File: /home/mysql/data/master.info
SQL_Delay: 0
SQL_Remaining_Delay: NULL
Slave_SQL_Running_State: Slave has read all relay log; waiting for the slave I/O thread to update it
Master_Retry_Count: 86400
Master_Bind:
Last_IO_Error_Timestamp:
Last_SQL_Error_Timestamp:
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set:
Executed_Gtid_Set:
Auto_Position: 0
1 row in set (0.00 sec)