53

记录一次Mysql主从不同步事故问题于事故解决办法-一个菜鸟的DT之路

 5 years ago
source link: http://blog.51cto.com/13120271/2177077
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
首先在昨天的时候我可能在优化zabbix库的时候动了库中的events表。导致了接下来的问题。经过查看未解决前问题呈现如下:我们可以看到从库与主库不同步的原因是这个:这个问题的学名叫:外键束缚。顾名思义,我们可以看一下这两个表结构发现都有一个字段eventid,当我们对表events中的eventid字段进行操作外之后导致event_recovery不能insert数据了,所以我们要跳过去,那怎么

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK