<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[实践OK]mysql主从复制跳过错误，跳过指定编号的错误。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[数据库技术]]></category>
<pubDate>Fri, 30 Mar 2018 10:45:08 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：辅库删除了一个用户，主库也删除了一个用户，于是出现辅库启动时候出现错误，show slave status少一个YES。<br/>错误：2018-03-30T18:41:50.906499+08:00 10 [ERROR] Slave SQL for channel &#039;&#039;: Error &#039;Can&#039;t find any matching row in the user table&#039; on query. Default database: &#039;&#039;. Query: &#039;GRANT DELETE ON *.* TO &#039;mha_rep&#039;@&#039;10.70.%&#039;&#039;, Error_code: 1133<br/>跳过一次或跳过1133都可以，如下：<br/>mysql主从复制，经常会遇到错误而导致slave端复制中断，这个时候一般就需要人工干预，跳过错误才能继续<br/>跳过错误有两种方式：<br/>1.跳过指定数量的事务：<br/>mysql&gt;slave stop;<br/>mysql&gt;SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#跳过一个事务<br/>mysql&gt;slave start<br/><br/>2.修改mysql的配置文件，通过slave_skip_errors参数来跳所有错误或指定类型的错误<br/>vi /etc/my.cnf<br/>[mysqld]<br/>#slave-skip-errors=1062,1053,1146 #跳过指定error no类型的错误<br/>#slave-skip-errors=all #跳过所有错误<br/><br/>来源：https://blog.csdn.net/seteor/article/details/17264633
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]mysql主从复制跳过错误，跳过指定编号的错误。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>