{"id":1743,"date":"2010-06-05T18:49:13","date_gmt":"2010-06-05T11:49:13","guid":{"rendered":"http:\/\/ton.packetlove.com\/blog\/?p=1743"},"modified":"2010-06-05T18:53:40","modified_gmt":"2010-06-05T11:53:40","slug":"mysql-replication-error-1236","status":"publish","type":"post","link":"https:\/\/ton.packetlove.com\/blog\/mysql\/mysql-replication-error-1236.html","title":{"rendered":"MySQL Replication Error 1236"},"content":{"rendered":"<p>\u0e2a\u0e27\u0e31\u0e2a\u0e14\u0e35\u0e04\u0e23\u0e31\u0e1a \u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e21\u0e35\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a MySQL Replication Error \u0e21\u0e32\u0e40\u0e25\u0e48\u0e32\u0e43\u0e2b\u0e49\u0e1f\u0e31\u0e07\u0e04\u0e23\u0e31\u0e1a<br \/>\n\u0e1c\u0e21\u0e40\u0e2d\u0e07\u0e01\u0e47\u0e40\u0e1e\u0e34\u0e48\u0e07\u0e40\u0e04\u0e22\u0e40\u0e08\u0e2d\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e19 \u0e27\u0e34\u0e18\u0e35\u0e41\u0e01\u0e49\u0e44\u0e02\u0e17\u0e33\u0e44\u0e14\u0e49\u0e22\u0e32\u0e01\u0e21\u0e32\u0e01 \u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e04\u0e37\u0e2d\u0e40\u0e01\u0e34\u0e14\u0e08\u0e32\u0e01<br \/>\n\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Master \u0e2d\u0e32\u0e08\u0e08\u0e30\u0e21\u0e35\u0e01\u0e32\u0e23 shutdown \u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49 stop MySQL \u0e01\u0e48\u0e2d\u0e19 \u0e08\u0e36\u0e07\u0e17\u0e33\u0e43\u0e2b\u0e49<br \/>\nbin-log \u0e40\u0e01\u0e34\u0e14\u0e04\u0e27\u0e32\u0e21\u0e44\u0e21\u0e48\u0e2a\u0e21\u0e1a\u0e39\u0e23\u0e13\u0e4c \u0e42\u0e14\u0e22\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e39\u0e17\u0e35\u0e48 Error Log \u0e02\u0e2d\u0e07 MySQL \u0e08\u0e30\u0e21\u0e35<br \/>\n\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e19\u0e35\u0e49 \u0e17\u0e35\u0e48\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Slave<\/p>\n<p>100605 16:51:56 [Note] Slave I\/O thread: connected to master &#8216;slaveuser@192.168.13.10:3306&#8217;, \u00a0replication started in log &#8216;mysql-bin.000429&#8217; at position 57053329<\/p>\n<p>100605 16:51:56 [ERROR] Error reading packet from server: Client requested master to start replication from impossible position ( server_errno=1236)<\/p>\n<p>100605 16:51:56 [ERROR] Got fatal error 1236: &#8216;Client requested master to start replication from impossible position&#8217; from master when reading data from binary log<\/p>\n<p>100605 16:51:56 [Note] Slave I\/O thread exiting, read up to log &#8216;mysql-bin.000429&#8242;, position 57053329<\/p>\n<p>\u0e1c\u0e21\u0e1e\u0e22\u0e32\u0e21\u0e08\u0e30 STOP\/START Slave \u0e41\u0e25\u0e49\u0e27 \u0e41\u0e15\u0e48\u0e27\u0e48\u0e32\u0e01\u0e47\u0e44\u0e21\u0e48\u0e0a\u0e48\u0e27\u0e22\u0e43\u0e2b\u0e49\u0e2d\u0e32\u0e01\u0e32\u0e23\u0e14\u0e35\u0e02\u0e36\u0e49\u0e19<br \/>\n\u0e17\u0e32\u0e07\u0e40\u0e14\u0e35\u0e22\u0e27\u0e17\u0e35\u0e48\u0e04\u0e27\u0e23\u0e08\u0e30\u0e17\u0e33\u0e04\u0e37\u0e2d \u0e43\u0e2b\u0e49\u0e40\u0e23\u0e34\u0e48\u0e21 Replication \u0e43\u0e2b\u0e21\u0e48 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 bin-log \u0e2d\u0e31\u0e19\u0e14\u0e31\u0e1a\u0e16\u0e31\u0e14\u0e44\u0e1b<br \/>\n\u0e17\u0e35\u0e48 position 0 \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e43\u0e19\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 \u0e1c\u0e21\u0e01\u0e47\u0e08\u0e30\u0e40\u0e23\u0e34\u0e48\u0e21\u0e17\u0e35\u0e48 \u00a0mysql-bin.000430 position 0<br \/>\n\u0e42\u0e14\u0e22\u0e21\u0e35\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e15\u0e48\u0e32\u0e07\u0e46 \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49\u0e04\u0e37\u0e2d<\/p>\n<p>mysql&gt; STOP SLAVE;<br \/>\nmysql&gt; change master to MASTER_HOST=&#8217;192.168.13.10&#8242;, MASTER_USER=&#8217;slaveuser&#8217;, MASTER_PASSWORD=&#8217;xxxxxx&#8217;, MASTER_LOG_FILE=&#8217;mysql-bin.000430&#8242;, MASTER_LOG_POS=0;<br \/>\nmysql&gt; START SLAVE;<\/p>\n<p>\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e17\u0e33\u0e01\u0e32\u0e23\u0e2a\u0e31\u0e48\u0e07 SHOW SLAVE STATUS\\G; \u0e01\u0e47\u0e08\u0e30\u0e1e\u0e1a\u0e27\u0e48\u0e32\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Slave<br \/>\n\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e01\u0e25\u0e31\u0e1a\u0e21\u0e32 replication \u0e01\u0e31\u0e1a\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Master \u0e44\u0e14\u0e49\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e40\u0e14\u0e34\u0e21 ..<\/p>\n<p>* \u0e04\u0e33\u0e40\u0e15\u0e37\u0e2d\u0e19 \u0e2b\u0e49\u0e32\u0e21\u0e43\u0e0a\u0e49\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23 STOP SLAVE; RESET SLAVE; START SLAVE;<br \/>\n\u0e42\u0e14\u0e22\u0e40\u0e14\u0e47\u0e14\u0e02\u0e32\u0e14 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e19\u0e31\u0e48\u0e19\u0e2b\u0e21\u0e32\u0e22\u0e04\u0e27\u0e32\u0e21\u0e27\u0e48\u0e32\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e17\u0e33\u0e01\u0e32\u0e23 sync bin-log \u0e15\u0e31\u0e49\u0e07\u0e41\u0e15\u0e48<br \/>\nbin-log \u0e41\u0e23\u0e01\u0e2a\u0e38\u0e14\u0e17\u0e35\u0e48\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Master \u0e40\u0e01\u0e47\u0e1a\u0e44\u0e27\u0e49 \ud83d\ude42<\/p>\n<p>* \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21 \u0e04\u0e27\u0e23\u0e17\u0e33\u0e01\u0e32\u0e23 purge bin-log \u0e1a\u0e48\u0e2d\u0e22\u0e46 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e25\u0e14\u0e1e\u0e37\u0e49\u0e19\u0e17\u0e35\u0e48\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e14\u0e34\u0e2a<br \/>\n\u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 \u0e14\u0e31\u0e07\u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e19\u0e35\u0e49 \u0e2b\u0e23\u0e37\u0e2d\u0e08\u0e30\u0e15\u0e31\u0e49\u0e07 cronjob \u0e44\u0e27\u0e49\u0e01\u0e47\u0e44\u0e14\u0e49\u0e04\u0e23\u0e49\u0e1a<br \/>\nmysql&gt; PURGE BINARY LOGS BEFORE DATE_SUB( NOW( ), INTERVAL 7 DAY);<\/p>\n<div class=\"fcbkbttn_buttons_block\" id=\"fcbkbttn_left\"><div class=\"fcbkbttn_like \"><fb:like href=\"https:\/\/ton.packetlove.com\/blog\/mysql\/mysql-replication-error-1236.html\" action=\"like\" colorscheme=\"light\" layout=\"button_count\"  size=\"small\"><\/fb:like><\/div><div class=\"fb-share-button  \" data-href=\"https:\/\/ton.packetlove.com\/blog\/mysql\/mysql-replication-error-1236.html\" data-type=\"button_count\" data-size=\"small\"><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\u0e2a\u0e27\u0e31\u0e2a\u0e14\u0e35\u0e04\u0e23\u0e31\u0e1a \u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e21\u0e35\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a MySQL Replication Error \u0e21\u0e32\u0e40\u0e25\u0e48\u0e32\u0e43\u0e2b\u0e49\u0e1f\u0e31\u0e07\u0e04\u0e23\u0e31\u0e1a \u0e1c\u0e21\u0e40\u0e2d\u0e07\u0e01\u0e47\u0e40\u0e1e\u0e34\u0e48\u0e07\u0e40\u0e04\u0e22\u0e40\u0e08\u0e2d\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e19 \u0e27\u0e34\u0e18\u0e35\u0e41\u0e01\u0e49\u0e44\u0e02\u0e17\u0e33\u0e44\u0e14\u0e49\u0e22\u0e32\u0e01\u0e21\u0e32\u0e01 \u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e04\u0e37\u0e2d\u0e40\u0e01\u0e34\u0e14\u0e08\u0e32\u0e01 \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Master \u0e2d\u0e32\u0e08\u0e08\u0e30\u0e21\u0e35\u0e01\u0e32\u0e23 shutdown \u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49 stop MySQL \u0e01\u0e48\u0e2d\u0e19 \u0e08\u0e36\u0e07\u0e17\u0e33\u0e43\u0e2b\u0e49 bin-log \u0e40\u0e01\u0e34\u0e14\u0e04\u0e27\u0e32\u0e21\u0e44\u0e21\u0e48\u0e2a\u0e21\u0e1a\u0e39\u0e23\u0e13\u0e4c \u0e42\u0e14\u0e22\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e39\u0e17\u0e35\u0e48 Error Log \u0e02\u0e2d\u0e07 MySQL \u0e08\u0e30\u0e21\u0e35 \u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e19\u0e35\u0e49 \u0e17\u0e35\u0e48\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Slave 100605 16:51:56 [Note] Slave I\/O thread: connected to master &#8216;slaveuser@192.168.13.10:3306&#8217;, \u00a0replication started in log &#8216;mysql-bin.000429&#8217; at position 57053329 100605 16:51:56 [ERROR] Error reading packet from server: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[759,967,738],"class_list":["post-1743","post","type-post","status-publish","format-standard","hentry","category-mysql","tag-error-1236","tag-mysql","tag-mysql-replication"],"_links":{"self":[{"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/posts\/1743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/comments?post=1743"}],"version-history":[{"count":3,"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/posts\/1743\/revisions"}],"predecessor-version":[{"id":1745,"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/posts\/1743\/revisions\/1745"}],"wp:attachment":[{"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/media?parent=1743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/categories?post=1743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ton.packetlove.com\/blog\/wp-json\/wp\/v2\/tags?post=1743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}