{"id":2658,"date":"2019-06-30T18:03:57","date_gmt":"2019-06-30T12:33:57","guid":{"rendered":"https:\/\/www.24x7serversupport.com\/blog\/?p=2658"},"modified":"2019-07-02T17:11:03","modified_gmt":"2019-07-02T11:41:03","slug":"how-to-recover-from-mysql-log-read-failure","status":"publish","type":"post","link":"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/","title":{"rendered":"How to Recover from mysql log read failure"},"content":{"rendered":"\n<p>If you deal with MySQL master\/slaves a lot you may run into the following error.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Relay log read failure: Could not parse relay log event entry.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">To fix this you will need to reset the slave and request a new copy of the bin logs from the master. Use the following procedure to do this.<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n<p>1. STOP SLAVE<\/p>\n\n\n\n<p>2. SHOW SLAVE STATUS &#8211; copy pasta to your notepad, pastebin, etc.<\/p>\n\n\n\n<p>3. RESET SLAVE<\/p>\n\n\n\n<p>4. CHANGE MASTER:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">CHANGE MASTER TO MASTER_USER='slave', MASTER_PASSWORD='password',\nMASTER_HOST='host.example.com', MASTER_LOG_FILE='&lt;relay_master_log_file&gt;', MASTER_LOG_POS=&lt;exec_master_log_pos&gt;<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"> 5. START SLAVE <\/h2>\n","protected":false},"excerpt":{"rendered":"<p>If you deal with MySQL master\/slaves a lot you may run into the following error. Relay log read failure: Could not parse relay log event entry. To fix this you will need to reset the slave and request a new copy of the bin logs from the master. Use the following procedure to do this. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2682,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[174],"tags":[25,182,184,181],"class_list":["post-2658","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql","tag-mysql","tag-mysql-master","tag-mysql-slave","tag-mysqlcluster"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Recover from mysql log read failure | 24x7serversupport Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Recover from mysql log read failure | 24x7serversupport Blog\" \/>\n<meta property=\"og:description\" content=\"If you deal with MySQL master\/slaves a lot you may run into the following error. Relay log read failure: Could not parse relay log event entry. To fix this you will need to reset the slave and request a new copy of the bin logs from the master. Use the following procedure to do this. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7serversupport Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-30T12:33:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-07-02T11:41:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2019\/06\/serversupport_mysql.jpg?fit=832%2C428&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"832\" \/>\n\t<meta property=\"og:image:height\" content=\"428\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"24x7support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:site\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"24x7support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/\",\"name\":\"How to Recover from mysql log read failure | 24x7serversupport Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2019\/06\/serversupport_mysql.jpg?fit=832%2C428&ssl=1\",\"datePublished\":\"2019-06-30T12:33:57+00:00\",\"dateModified\":\"2019-07-02T11:41:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2019\/06\/serversupport_mysql.jpg?fit=832%2C428&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2019\/06\/serversupport_mysql.jpg?fit=832%2C428&ssl=1\",\"width\":832,\"height\":428},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.24x7serversupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Recover from mysql log read failure\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/\",\"name\":\"24x7serversupport Blog\",\"description\":\"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\",\"name\":\"24x7support\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Recover from mysql log read failure | 24x7serversupport Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/","og_locale":"en_US","og_type":"article","og_title":"How to Recover from mysql log read failure | 24x7serversupport Blog","og_description":"If you deal with MySQL master\/slaves a lot you may run into the following error. Relay log read failure: Could not parse relay log event entry. To fix this you will need to reset the slave and request a new copy of the bin logs from the master. Use the following procedure to do this. [&hellip;]","og_url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/","og_site_name":"24x7serversupport Blog","article_published_time":"2019-06-30T12:33:57+00:00","article_modified_time":"2019-07-02T11:41:03+00:00","og_image":[{"width":832,"height":428,"url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2019\/06\/serversupport_mysql.jpg?fit=832%2C428&ssl=1","type":"image\/jpeg"}],"author":"24x7support","twitter_card":"summary_large_image","twitter_creator":"@24x7serversuppo","twitter_site":"@24x7serversuppo","twitter_misc":{"Written by":"24x7support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/","url":"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/","name":"How to Recover from mysql log read failure | 24x7serversupport Blog","isPartOf":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/#primaryimage"},"image":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2019\/06\/serversupport_mysql.jpg?fit=832%2C428&ssl=1","datePublished":"2019-06-30T12:33:57+00:00","dateModified":"2019-07-02T11:41:03+00:00","author":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401"},"breadcrumb":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/#primaryimage","url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2019\/06\/serversupport_mysql.jpg?fit=832%2C428&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2019\/06\/serversupport_mysql.jpg?fit=832%2C428&ssl=1","width":832,"height":428},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7serversupport.com\/blog\/how-to-recover-from-mysql-log-read-failure\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7serversupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Recover from mysql log read failure"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7serversupport.com\/blog\/#website","url":"https:\/\/www.24x7serversupport.com\/blog\/","name":"24x7serversupport Blog","description":"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401","name":"24x7support","url":"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2019\/06\/serversupport_mysql.jpg?fit=832%2C428&ssl=1","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/comments?post=2658"}],"version-history":[{"count":1,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2658\/revisions"}],"predecessor-version":[{"id":2668,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2658\/revisions\/2668"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media\/2682"}],"wp:attachment":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media?parent=2658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/categories?post=2658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/tags?post=2658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}