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 这表示找不到 ...
随机推荐
- js图的数据结构处理---迪杰斯特拉算法
/*//1.确定数据结构, mapf[i][j] 为点i到点j的距离 [ Infinity 2 5 Infinity Infinity Infinity Infinity 2 6 Infinity I ...
- SpringMVC.入门篇《二》form表单
SpringMVC.入门篇<二>form表单 项目工程结构: 在<springmvc入门篇一.HelloWorld>基础上继续添加代码,新增:FormController.ja ...
- Vuejs核心思想学习笔记
习Vue已经有一段时间了,但未对其核心思想作自己的总结和理解 Vue核心思想有两个 : 数据驱动和组件化(系统组件) 数据驱动 数据驱动目的是让数据和DOM保持同步, 只要修改了data数据,DOM就 ...
- es6generator
yield语句 由于Generator函数返回的遍历器对象,只有调用next方法才会遍历下一个内部状态,所以其实提供了一种可以暂停执行的函数.yield语句就是暂停标志. yield语句只能用在 Ge ...
- JDBC连接自定义sqlserver数据库实例名(多个实例)
java语言中,通过jdbc访问sqlserver2005(2008)数据库默认实例可以按常用的写法来写url连接.代码如下: <span style="font-size:12px; ...
- shell文件的编写
见文章http://www.cnblogs.com/handsomecui/p/5869361.html
- Unity shader学习之半兰伯特光照模型
半兰伯特光照模型,为Valve公司在开发游戏<半条命>时提出的一种技术,用于解决漫反射光无法到达区域无任凭明暗变化,丢失模型细节表现的问题. 其公式如下: Cdiffuse = Cligh ...
- 岭回归、LASSO与LAR的几何意义
https://blog.csdn.net/u013524655/article/details/40922303 http://f.dataguru.cn/thread-598486-1-1.htm ...
- Robot framework selenium driver download
Chrome: https://sites.google.com/a/chromium.org/chromedriver/downloads http://npm.taobao.org/mirrors ...
- C#-----创建DataTable对象
//DataTable表示内存中数据的一个表 DataTable dt = new DataTable(); /** * public DataColumn Add(string columnName ...