mysql 5.7多源复制中断如何处理

来源:互联网 发布:Java捕获控制台 编辑:程序博客网 时间:2024/06/05 00:41
ERROR 3086 (HY000): When sql_slave_skip_counter> 0, it is not allowed to start more than one SQLthread by using 'START SLAVE [SQL_THREAD]'. Value ofsql_slave_skip_counter can only be used by one SQL thread at atime. Please use 'START SLAVE [SQL_THREAD] FOR CHANNEL' to startthe SQL thread which will use the value ofsql_slave_skip_counter.
停止要跳过的channel,下面是不使用gtid模式的步奏
 步骤:
1 stop slave for channel 'channel name';
2 set global sql_slave_skip_counter=1;
3 start slave for channel 'channel name';
通过上面报错可知  每一个sql_slave_skip_counter 只能适用一个sqlthread 线程
跟mariadb不同 不太智能
0 0