MySQL更改relay-bin名称导致同步停止的解决办法
今天在优化io的时候,移动了从库relay-bin的位置,并将hostname部分去掉了,启动后,从库slave状态如下:
mysql> show slave status\G;
*************************** 1. row ***************************
Slave_IO_State:
Master_Host: 127.0.0.1
Master_User: root
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000226
Read_Master_Log_Pos: 175251675
Relay_Log_File: iZ23nn1p4mjZ-relay-bin.000464
Relay_Log_Pos: 175251629
Relay_Master_Log_File: mysql-bin.000226
Slave_IO_Running: No
Slave_SQL_Running: No
Replicate_Do_DB: db_rsk,db_sys
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table: db_rsk.tb_act_unitequitiesposition,db_rsk.tb_act_productposition,db_rsk.tb_act_productunitasset,db_rsk.tb_act_productaccount,db_rsk.tb_act_unitaccount,db_rsk.tb_act_operationconfig,db_rsk.tb_rsk_assetvaluecompliance,db_rsk.tb_rsk_stockcostcompliance,db_rsk.tb_rsk_stockpoolcompliance,db_rsk.tb_rsk_stockquantitycompliance,db_rsk.tb_rsk_stockvaluecompalince,db_rsk.tb_rsk_tradelimitcompliance,db_rsk.tb_rsk_reversetradecompliance,db_rsk.tb_rsk_navcompliance,db_rsk.tb_rsk_rulescompliancecode,db_rsk.tb_rsk_usernavsection,db_rsk.tb_rsk_complianceset,db_rsk.tb_rsk_customdimensionstock,db_rsk.tb_rsk_customdimensiontype,db_rsk.tb_rsk_indexstock,db_rsk.tb_rsk_indextype,db_rsk.tb_rsk_industryclassification,db_rsk.tb_rsk_industrystock,db_rsk.tb_rsk_industrytype,db_rsk.tb_rsk_userdimensionstock,db_rsk.tb_rsk_userdimensiontype,db_rsk.tb_rsk_productmonitorset,db_rsk.tb_rsk_stockmonitorset,db_sys.tb_sys_bond_info,db_sys.tb_sys_code_map,db_sys.tb_sys_company,db_sys.tb_sys_dictionary,db_sys.tb_sys_exchange_info,db_sys.tb_sys_function_info,db_sys.tb_sys_menu,db_sys.tb_sys_menu_function,db_sys.tb_sys_operator,db_sys.tb_sys_operator_company,db_sys.tb_sys_operator_menu,db_sys.tb_sys_operator_parameter,db_sys.tb_sys_operator_role,db_sys.tb_sys_operator_unit,db_sys.tb_sys_order_direction,db_sys.tb_sys_parameter,db_sys.tb_sys_role,db_sys.tb_sys_role_menu,db_sys.tb_sys_stock_type,db_sys.tb_sys_system_info,db_sys.tb_sys_trade_date,db_sys.tb_sys_trade_time,db_sys.tb_sys_task_ex
Replicate_Wild_Ignore_Table:
Last_Errno: 1872
Last_Error: Slave failed to initialize relay log info structure from the repository
Skip_Counter: 0
Exec_Master_Log_Pos: 175251424
Relay_Log_Space: 0
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: 1872
Last_SQL_Error: Slave failed to initialize relay log info structure from the repository
Replicate_Ignore_Server_Ids:
Master_Server_Id: 0
Master_UUID: 96b464e1-b68f-11e6-8321-00163f00368a
Master_Info_File: /usr/local/Percona-Server-5.7.16-10-Linux.x86_64.ssl101/data2/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: 170314 19:34:56
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set:
Executed_Gtid_Set:
Auto_Position: 0
Replicate_Rewrite_DB: (db_act,db_rsk)
Channel_Name:
Master_TLS_Version:
1 row in set (0.00 sec) ERROR:
No query specified
使用start slave命令开启失败:
mysql> start slave;
ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository
使用reset slave命令解决:
mysql> reset slave;
Query OK, 0 rows affected (0.01 sec)
mysql> start slave;
Query OK, 0 rows affected (0.03 sec)
mysql> show slave status\G;
*************************** 1. row ***************************
Slave_IO_State: Queueing master event to the relay log
Master_Host: 127.0.0.1
Master_User: root
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000223
Read_Master_Log_Pos: 62998
Relay_Log_File: relay-bin.000003
Relay_Log_Pos: 11565
Relay_Master_Log_File: mysql-bin.000223
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB: db_rsk,db_sys
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table: db_rsk.tb_act_unitequitiesposition,db_rsk.tb_act_productposition,db_rsk.tb_act_productunitasset,db_rsk.tb_act_productaccount,db_rsk.tb_act_unitaccount,db_rsk.tb_act_operationconfig,db_rsk.tb_rsk_assetvaluecompliance,db_rsk.tb_rsk_stockcostcompliance,db_rsk.tb_rsk_stockpoolcompliance,db_rsk.tb_rsk_stockquantitycompliance,db_rsk.tb_rsk_stockvaluecompalince,db_rsk.tb_rsk_tradelimitcompliance,db_rsk.tb_rsk_reversetradecompliance,db_rsk.tb_rsk_navcompliance,db_rsk.tb_rsk_rulescompliancecode,db_rsk.tb_rsk_usernavsection,db_rsk.tb_rsk_complianceset,db_rsk.tb_rsk_customdimensionstock,db_rsk.tb_rsk_customdimensiontype,db_rsk.tb_rsk_indexstock,db_rsk.tb_rsk_indextype,db_rsk.tb_rsk_industryclassification,db_rsk.tb_rsk_industrystock,db_rsk.tb_rsk_industrytype,db_rsk.tb_rsk_userdimensionstock,db_rsk.tb_rsk_userdimensiontype,db_rsk.tb_rsk_productmonitorset,db_rsk.tb_rsk_stockmonitorset,db_sys.tb_sys_bond_info,db_sys.tb_sys_code_map,db_sys.tb_sys_company,db_sys.tb_sys_dictionary,db_sys.tb_sys_exchange_info,db_sys.tb_sys_function_info,db_sys.tb_sys_menu,db_sys.tb_sys_menu_function,db_sys.tb_sys_operator,db_sys.tb_sys_operator_company,db_sys.tb_sys_operator_menu,db_sys.tb_sys_operator_parameter,db_sys.tb_sys_operator_role,db_sys.tb_sys_operator_unit,db_sys.tb_sys_order_direction,db_sys.tb_sys_parameter,db_sys.tb_sys_role,db_sys.tb_sys_role_menu,db_sys.tb_sys_stock_type,db_sys.tb_sys_system_info,db_sys.tb_sys_trade_date,db_sys.tb_sys_trade_time,db_sys.tb_sys_task_ex
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 11360
Relay_Log_Space: 63396
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
MySQL更改relay-bin名称导致同步停止的解决办法的更多相关文章
- MYSQL更改root password时遇到Access Denied的解决办法
今天在公司虚拟机上装MYSQL之后需要修改root password,然而遇到这样的错误: Access denied for user 'root'@'localhost' (using passw ...
- VS开发工具 因插件问题导致 已停止工作 解决办法
解决方案如下:No1. 开始-->所有程序-->Microsoft Visual Studio 2012-->Visual Studio Tools-->VS2012 开发人员 ...
- Asp.Net保存session的三种方法 (Dll文件更新导致session丢失的解决办法)
1. InProc模式(默认值):asp.net将session保存到当前进程中,这种方式最快,但是不能多台服务器共享session,且会话状态数据容易丢失. <sessionState mod ...
- Visual Studio2012打开时弹出“遇到异常:这可能是由某个扩展导致的”错误的解决办法
Visual Studio2012打开时弹出"遇到异常:这可能是由某个扩展导致的"错误的解决办法: 具体问题如下: 分析原因:网上搜集了以下,出现异常的原因是安装了第三方控件,然后 ...
- MySQL: Starting MySQL….. ERROR! The server quit without updating PID file解决办法
MySQL: Starting MySQL….. ERROR! The server quit without updating PID file解决办法 1 问题 [root@localhost m ...
- make -f dc_debug.mak 提示错误"/usr/bin/ld:can not find -l***"解决办法
在公司不同服务器上"make -f ***"程序的时候,有的服务器可以编译通过,有的却提示"/usr/bin/ld:can not find -l***"的错误 ...
- mysql存储过程controller的not found造成混乱的解决办法
打草稿 问题:对于select var1 into var2 ,单select的结果为空的时候(空的意思是没有找到数据,不是该值为null) ,会触发controller的not found 当游标 ...
- Mysql安装错误:Install/Remove of the Service Denied!解决办法
Mysql安装错误:Install/Remove of the Service Denied!解决办法 在windos 的cmd下安装mysql 在mysql的bin目录下面执行: mysqld -- ...
- /usr/bin/ld: cannot find -lxxx 的解决办法
/usr/bin/ld: cannot find -lxxx 的解决办法 在软件编译过程中,经常会碰到类似这样的编译错误: /usr/bin/ld: cannot find -lhdf5 这表示找不到 ...
随机推荐
- python class 2
//test.py 1 class Employee: 2 'all employee' 3 empCount = 0 4 def __init__(s ...
- 4.C#虚方法virtual详解
C#虚方法virtual详解 在C++.Java等众多OOP语言里都可以看到virtual的身影,而C#作为一个完全面向对象的语言当然也不例外. 虚拟函数从C#的程序编译的角度来看,它和其它一般的函数 ...
- iOS UI进阶-1.1 Quartz2D 图片水印/裁剪/截图
图片水印 UIImage+MJ.h #import <UIKit/UIKit.h> @interface UIImage (MJ) /** * 打水印 * * @param bg 背景图片 ...
- cocos2dx 游戏plist与png完美切成小图python代码
首先需要一份python的切图程序: #python2.5 unpack_plist.py birdfly #! /usr/lical/bin/python import os,sys from xm ...
- Linux常用网络工具:Http压力测试之ab
ab的全称是Apache Bench,是Apache自带的网络压力测试工具,相比于LR.JMeter,是我所知道的 Http 压力测试工具中最简单.最通用的. ab命令对发出负载的计算机要求很低,不会 ...
- Yii2 Gridview查询关联筛选
- html5-output的用法
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8&qu ...
- Thinking-Bear magic (计算几何)
---- 点我 ---- 题目大意: 给你一个正n边形及边长 a和一个正整数L, 求正多边形的面积s,若s大于L,则连接相邻两边的中点,形成新的正多边形,重复这个操作直至s小于L:如图: 正多边形的面 ...
- RobotFrameWork(十三)RobotFramework与loadrunner性能测试结合(基于Remote库)
一般我们进行完功能测试,都需要进行下性能测试,那么这章我来介绍下,RobotFramework与loadrunner性能测试的融合,即运行完自动化功能测试,借助RobotFramework的Remot ...
- C#-----创建DataTable对象
//DataTable表示内存中数据的一个表 DataTable dt = new DataTable(); /** * public DataColumn Add(string columnName ...