设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 公司 创业者 发布
当前位置: 首页 > 站长学院 > MySql教程 > 正文

mysql5.1master-master replication cluster1062不同步错误

发布时间:2022-06-29 12:28 所属栏目:115 来源:互联网
导读:mysql 5.1 master-master replication cluster 1062 不同步错误 在从库上报 1062错误, master - slave replication 停止。 开始 使用 SET GLOBAL SQL_SLAVE_SKIP_COUNTER = N 跳过若干 有重复的数据, 主键等。 最后发现数据太多, 重新 将主库数据库 导入
  mysql 5.1 master-master replication cluster 1062 不同步错误
  在从库上报 1062错误, master - slave replication 停止。
  开始 使用   SET GLOBAL SQL_SLAVE_SKIP_COUNTER = N  跳过若干 有重复的数据, 主键等。
  最后发现数据太多, 重新 将主库数据库 导入到从库 。
  
  检查:
  show slave status \G
 
  Seconds_Behind_Master: 0
  Slave_IO_Running: Yes
  Slave_SQL_Running: Yes
 
  这三个值。
 
  查询:
  Exec_Master_Log_Pos Slave_SQL_Running_State, Last_Errno, Last_Error, Last_IO_Errno, Last_IO_Error, Last_SQL_Errno, Last_SQL_Error 看着几个值。

(编辑:ASP站长网)

    网友评论
    推荐文章
      热点阅读