Deprecated: Function Yoast\WP\SEO\Conditionals\Schema_Blocks_Conditional::get_feature_flag is deprecated since version Yoast SEO 20.5 with no alternative available. in /home1/minerho3/public_html/wp-includes/functions.php on line 6078

Deprecated: Function Yoast\WP\SEO\Conditionals\Schema_Blocks_Conditional::get_feature_flag is deprecated since version Yoast SEO 20.5 with no alternative available. in /home1/minerho3/public_html/wp-includes/functions.php on line 6078

Deprecated: Function Yoast\WP\SEO\Conditionals\Schema_Blocks_Conditional::get_feature_flag is deprecated since version Yoast SEO 20.5 with no alternative available. in /home1/minerho3/public_html/wp-includes/functions.php on line 6078

Warning: Cannot modify header information - headers already sent by (output started at /home1/minerho3/public_html/wp-includes/functions.php:6078) in /home1/minerho3/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/minerho3/public_html/wp-includes/functions.php:6078) in /home1/minerho3/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/minerho3/public_html/wp-includes/functions.php:6078) in /home1/minerho3/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/minerho3/public_html/wp-includes/functions.php:6078) in /home1/minerho3/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/minerho3/public_html/wp-includes/functions.php:6078) in /home1/minerho3/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/minerho3/public_html/wp-includes/functions.php:6078) in /home1/minerho3/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/minerho3/public_html/wp-includes/functions.php:6078) in /home1/minerho3/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/minerho3/public_html/wp-includes/functions.php:6078) in /home1/minerho3/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":1948,"date":"2018-09-21T11:24:06","date_gmt":"2018-09-21T11:24:06","guid":{"rendered":"http:\/\/minervadb.com\/?p=1948"},"modified":"2018-09-21T13:46:23","modified_gmt":"2018-09-21T13:46:23","slug":"how-to-check-and-fix-mysql-replication-inconsistencies","status":"publish","type":"post","link":"http:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/","title":{"rendered":"How to check and fix MySQL replication inconsistencies ?"},"content":{"rendered":"

There are several possibilities to end up with inconsistent MySQL replication, This could be accidental or intentional. In this blog I would like to discuss on how to identify the inconsistent slaves with master and fix them. I used here\u00a0pt-table-checksum<\/strong> (to find the difference between master and slave) and pt-table-sync<\/strong> (to sync. between MySQL master and slave) from Percona Toolkit, The detailed documentation of Percona toolkit is available here<\/a>\u00a0for your reference. I expect \/ recommend you to be careful (as I mentioned above, sometimes records are inserted \/ deleted on MySQL slave intentionally) before using\u00a0pt-table-checksum\u00a0<\/em>to sync. slave with master because rollbacking this task is even more expensive. The objective of this blog is to show you how to find differences between master and slave in an MySQL replication infrastructure, If you have decided to sync. slave with master then please proceed with pt-table-sync\u00a0<\/em>tool. Both pt-table-checksum<\/em>\u00a0and\u00a0pt-table-sync <\/em>are highly customizable tools, I have used very simple form of them in the examples below:<\/p>\n

Master<\/strong> – 192.168.56.3<\/p>\n

Slave<\/strong> – 192.168.56.4<\/p>\n

Percona Toolkit Version<\/strong> –\u00a03.0.12<\/p>\n

MySQL Version<\/strong> -MySQL GA\u00a05.7.23<\/p>\n

I have created a user in the master to check and repair:<\/p>\n

GRANT ALL ON *.* to chksum@'%' identified by 'Password@2018';<\/pre>\n

In case you have non default ports (3306) for MySQL, Please set the following variables on the slaves:<\/p>\n

# my.cnf\r\n[mysqld]\r\nreport_host = slave\r\nreport_port = 3307<\/pre>\n

Confirm data inconsistencies in Master (192.168.56.3) and Slave (192.168.56.4):<\/p>\n

Master<\/strong><\/p>\n

mysql> select count(1) from titles; \r\n+----------+\r\n| count(1) |\r\n+----------+\r\n|   443308 |\r\n+----------+\r\n1 row in set (0.09 sec)\r\n<\/pre>\n

Slave<\/strong><\/p>\n

mysql> select count(1) from titles; \r\n+----------+\r\n| count(1) |\r\n+----------+\r\n|   443311 |\r\n+----------+\r\n1 row in set (0.09 sec)\r\n<\/pre>\n

Check data inconsistencies using\u00a0pt-table-checksum:<\/em><\/strong><\/p>\n

Check for data inconsistencies by executing the following command** on the Master:<\/p>\n

** command I have executed below\u00a0:-\u00a0pt-table-checksum h=192.168.56.3,u=chksum,p=Password@2018,P=3306 –set-vars innodb_lock_wait_timeout=30 –no-check-binlog-format –databases=employees –tables=titles<\/em><\/p>\n

[root@localhost ~]# pt-table-checksum h=192.168.56.3,u=chksum,p=Password@2018,P=3306 --set-vars innodb_lock_wait_timeout=30 --no-check-binlog-format --databases=employees --tables=titles\r\nChecking if all tables can be checksummed ...\r\nStarting checksum ...\r\n            TS ERRORS  DIFFS     ROWS  DIFF_ROWS  CHUNKS SKIPPED    TIME TABLE\r\n09-20T22:53:02      0      2   443308          5       6       0   1.319 employees.titles\r\n<\/pre>\n

Fixing data inconsistencies using pt-table-checksum<\/em><\/strong><\/p>\n

We are checking data inconsistency from Master (192.168.56.3) to Slave\u00a0(192.168.56.3) by executing the following command** on the Master:<\/p>\n

** command I have executed below\u00a0:-\u00a0pt-table-sync –sync-to-master h=192.168.56.4,u=chksum,p=Password@2018,P=3306 –databases=employees –tables=titles –print<\/em><\/p>\n

[root@localhost ~]# pt-table-sync --sync-to-master h=192.168.56.4,u=chksum,p=Password@2018,P=3306 --databases=employees --tables=titles --print\r\nREPLACE INTO `employees`.`titles`(`emp_no`, `title`, `from_date`, `to_date`) VALUES ('10144', 'Senior Staff', '1992-10-14', '1993-08-10') \/*percona-toolkit src_db:employees src_tbl:titles src_dsn:P=3306,h=192.168.56.3,p=...,u=chksum dst_db:employees dst_tbl:titles dst_dsn:P=3306,h=192.168.56.4,p=...,u=chksum lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:3789 user:root host:localhost.localdomain*\/;\r\nREPLACE INTO `employees`.`titles`(`emp_no`, `title`, `from_date`, `to_date`) VALUES ('10144', 'Staff', '1985-10-14', '1992-10-14') \/*percona-toolkit src_db:employees src_tbl:titles src_dsn:P=3306,h=192.168.56.3,p=...,u=chksum dst_db:employees dst_tbl:titles dst_dsn:P=3306,h=192.168.56.4,p=...,u=chksum lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:3789 user:root host:localhost.localdomain*\/;\r\nDELETE FROM `employees`.`titles` WHERE `emp_no`='87000' AND `title`='Staff Engineer' AND `from_date`='1990-01-01' LIMIT 1 \/*percona-toolkit src_db:employees src_tbl:titles src_dsn:P=3306,h=192.168.56.3,p=...,u=chksum dst_db:employees dst_tbl:titles dst_dsn:P=3306,h=192.168.56.4,p=...,u=chksum lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:3789 user:root host:localhost.localdomain*\/;\r\nDELETE FROM `employees`.`titles` WHERE `emp_no`='97000' AND `title`='Database Engineer' AND `from_date`='1991-01-01' LIMIT 1 \/*percona-toolkit src_db:employees src_tbl:titles src_dsn:P=3306,h=192.168.56.3,p=...,u=chksum dst_db:employees dst_tbl:titles dst_dsn:P=3306,h=192.168.56.4,p=...,u=chksum lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:3789 user:root host:localhost.localdomain*\/;\r\nDELETE FROM `employees`.`titles` WHERE `emp_no`='97500' AND `title`='Project Manager' AND `from_date`='1983-04-11' LIMIT 1 \/*percona-toolkit src_db:employees src_tbl:titles src_dsn:P=3306,h=192.168.56.3,p=...,u=chksum dst_db:employees dst_tbl:titles dst_dsn:P=3306,h=192.168.56.4,p=...,u=chksum lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:3789 user:root host:localhost.localdomain*\/;\r\nDELETE FROM `employees`.`titles` WHERE `emp_no`='97501' AND `title`='Project Manager' AND `from_date`='1983-04-11' LIMIT 1 \/*percona-toolkit src_db:employees src_tbl:titles src_dsn:P=3306,h=192.168.56.3,p=...,u=chksum dst_db:employees dst_tbl:titles dst_dsn:P=3306,h=192.168.56.4,p=...,u=chksum lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:3789 user:root host:localhost.localdomain*\/;\r\nDELETE FROM `employees`.`titles` WHERE `emp_no`='97502' AND `title`='Project Engineer' AND `from_date`='1993-04-11' LIMIT 1 \/*percona-toolkit src_db:employees src_tbl:titles src_dsn:P=3306,h=192.168.56.3,p=...,u=chksum dst_db:employees dst_tbl:titles dst_dsn:P=3306,h=192.168.56.4,p=...,u=chksum lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:3789 user:root host:localhost.localdomain*\/;\r\n[root@localhost ~]# \r\n<\/pre>\n

To fix inconsistencies on MySQL Master against the Slave execute the following command on the Master:<\/p>\n

[root@localhost ~]# pt-table-sync --sync-to-master h=192.168.56.4,u=chksum,p=Password@2018,P=3306 --databases=employees --tables=titles --execute\r\n<\/pre>\n

Confirm the data inconsistencies in Master (192.168.56.3) and Slave (192.168.56.4) are fixed:<\/p>\n

Master<\/strong><\/p>\n

mysql> select count(1) from titles;\r\n+----------+\r\n| count(1) |\r\n+----------+\r\n|   443308 |\r\n+----------+\r\n1 row in set (0.09 sec)\r\n<\/pre>\n

Slave<\/strong><\/p>\n

mysql> select count(1) from titles;\r\n+----------+\r\n| count(1) |\r\n+----------+\r\n|   443308 |\r\n+----------+\r\n1 row in set (0.09 sec)\r\n<\/pre>\n

Conclusion\u00a0<\/strong><\/p>\n

I recommend \/ encourage my customers to perform\u00a0pt-table-checksum <\/em>exercise regularly in their MySQL replication infrastructure to avoid unpleasant experiences due to data consistency issues.<\/p>\n","protected":false},"excerpt":{"rendered":"

There are several possibilities to end up with inconsistent MySQL replication, This could be accidental or intentional. In this blog I would like to discuss on how to identify the inconsistent slaves with master and […]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,156,154,155],"tags":[30,157,158],"yoast_head":"\nHow to check and fix MySQL replication inconsistencies ?<\/title>\n<meta name=\"description\" content=\"How to check and fix MySQL replication inconsistencies using pt-table-checksum and pt-tablesync ?\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to check and fix MySQL replication inconsistencies ?\" \/>\n<meta property=\"og:description\" content=\"How to check and fix MySQL replication inconsistencies using pt-table-checksum and pt-tablesync ?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/\" \/>\n<meta property=\"og:site_name\" content=\"The WebScale Database Infrastructure Operations Experts\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/WebScaleDBA\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/TheWebScaleDBA\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-21T11:24:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-09-21T13:46:23+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/minervadb.com\/wp-content\/uploads\/2019\/07\/LogoColorTextRight.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Shiv Iyer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@http:\/\/twitter.com\/thewebscaledba\" \/>\n<meta name=\"twitter:site\" content=\"@webscaledba\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shiv Iyer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/\"},\"author\":{\"name\":\"Shiv Iyer\",\"@id\":\"https:\/\/minervadb.com\/#\/schema\/person\/b32f096648ad17f01728c12a58285618\"},\"headline\":\"How to check and fix MySQL replication inconsistencies ?\",\"datePublished\":\"2018-09-21T11:24:06+00:00\",\"dateModified\":\"2018-09-21T13:46:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/\"},\"wordCount\":358,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/minervadb.com\/#organization\"},\"keywords\":[\"Percona Toolkit\",\"pt-table-checksum\",\"pt-table-sync\"],\"articleSection\":[\"MySQL\",\"percona-toolkit\",\"pt-table-checksum\",\"pt-table-sync\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/\",\"url\":\"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/\",\"name\":\"How to check and fix MySQL replication inconsistencies ?\",\"isPartOf\":{\"@id\":\"https:\/\/minervadb.com\/#website\"},\"datePublished\":\"2018-09-21T11:24:06+00:00\",\"dateModified\":\"2018-09-21T13:46:23+00:00\",\"description\":\"How to check and fix MySQL replication inconsistencies using pt-table-checksum and pt-tablesync ?\",\"breadcrumb\":{\"@id\":\"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/minervadb.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to check and fix MySQL replication inconsistencies ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/minervadb.com\/#website\",\"url\":\"https:\/\/minervadb.com\/\",\"name\":\"The WebScale Database Infrastructure Operations Experts\",\"description\":\"Committed to Building Optimal, Scalable, Highly Available, Fault-Tolerant, Reliable and Secured WebScale Database Infrastructure Operations\",\"publisher\":{\"@id\":\"https:\/\/minervadb.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/minervadb.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/minervadb.com\/#organization\",\"name\":\"MinervaDB\",\"url\":\"https:\/\/minervadb.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/minervadb.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/minervadb.com\/wp-content\/uploads\/2018\/03\/LogoColorTextRight.jpeg\",\"contentUrl\":\"https:\/\/minervadb.com\/wp-content\/uploads\/2018\/03\/LogoColorTextRight.jpeg\",\"width\":200,\"height\":200,\"caption\":\"MinervaDB\"},\"image\":{\"@id\":\"https:\/\/minervadb.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/WebScaleDBA\/\",\"https:\/\/x.com\/webscaledba\",\"https:\/\/www.linkedin.com\/company\/minervadb\/\",\"https:\/\/www.youtube.com\/channel\/UClLrz7wS8gVyAR8Lf5x7r1g?view_as=subscriber\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/minervadb.com\/#\/schema\/person\/b32f096648ad17f01728c12a58285618\",\"name\":\"Shiv Iyer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/minervadb.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/491f7719e102a566a11d41313372a8cf?s=96&d=blank&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/491f7719e102a566a11d41313372a8cf?s=96&d=blank&r=g\",\"caption\":\"Shiv Iyer\"},\"description\":\"WebScale Database Infrastructure Operations Expert in MySQL, MariaDB, PostgreSQL and ClickHouse with core interests in performance, scalability, high availability and database reliability engineering. Shiv currently is the Founder and Principal of MinervaDB, an independent and vendor neutral Consulting, 24*7 Support and Remote DBA Services provider for MySQL, MariaDB, PostgreSQL and ClickHouse serving approximately 300 customers globally.\",\"sameAs\":[\"http:\/\/minervadb.com\",\"https:\/\/www.facebook.com\/TheWebScaleDBA\",\"https:\/\/x.com\/http:\/\/twitter.com\/thewebscaledba\"],\"url\":\"http:\/\/minervadb.com\/index.php\/author\/shiv\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to check and fix MySQL replication inconsistencies ?","description":"How to check and fix MySQL replication inconsistencies using pt-table-checksum and pt-tablesync ?","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:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/","og_locale":"en_US","og_type":"article","og_title":"How to check and fix MySQL replication inconsistencies ?","og_description":"How to check and fix MySQL replication inconsistencies using pt-table-checksum and pt-tablesync ?","og_url":"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/","og_site_name":"The WebScale Database Infrastructure Operations Experts","article_publisher":"https:\/\/www.facebook.com\/WebScaleDBA\/","article_author":"https:\/\/www.facebook.com\/TheWebScaleDBA","article_published_time":"2018-09-21T11:24:06+00:00","article_modified_time":"2018-09-21T13:46:23+00:00","og_image":[{"width":200,"height":200,"url":"http:\/\/minervadb.com\/wp-content\/uploads\/2019\/07\/LogoColorTextRight.jpeg","type":"image\/jpeg"}],"author":"Shiv Iyer","twitter_card":"summary_large_image","twitter_creator":"@http:\/\/twitter.com\/thewebscaledba","twitter_site":"@webscaledba","twitter_misc":{"Written by":"Shiv Iyer","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/#article","isPartOf":{"@id":"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/"},"author":{"name":"Shiv Iyer","@id":"https:\/\/minervadb.com\/#\/schema\/person\/b32f096648ad17f01728c12a58285618"},"headline":"How to check and fix MySQL replication inconsistencies ?","datePublished":"2018-09-21T11:24:06+00:00","dateModified":"2018-09-21T13:46:23+00:00","mainEntityOfPage":{"@id":"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/"},"wordCount":358,"commentCount":0,"publisher":{"@id":"https:\/\/minervadb.com\/#organization"},"keywords":["Percona Toolkit","pt-table-checksum","pt-table-sync"],"articleSection":["MySQL","percona-toolkit","pt-table-checksum","pt-table-sync"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/","url":"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/","name":"How to check and fix MySQL replication inconsistencies ?","isPartOf":{"@id":"https:\/\/minervadb.com\/#website"},"datePublished":"2018-09-21T11:24:06+00:00","dateModified":"2018-09-21T13:46:23+00:00","description":"How to check and fix MySQL replication inconsistencies using pt-table-checksum and pt-tablesync ?","breadcrumb":{"@id":"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/minervadb.com\/index.php\/2018\/09\/21\/how-to-check-and-fix-mysql-replication-inconsistencies\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/minervadb.com\/"},{"@type":"ListItem","position":2,"name":"How to check and fix MySQL replication inconsistencies ?"}]},{"@type":"WebSite","@id":"https:\/\/minervadb.com\/#website","url":"https:\/\/minervadb.com\/","name":"The WebScale Database Infrastructure Operations Experts","description":"Committed to Building Optimal, Scalable, Highly Available, Fault-Tolerant, Reliable and Secured WebScale Database Infrastructure Operations","publisher":{"@id":"https:\/\/minervadb.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/minervadb.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/minervadb.com\/#organization","name":"MinervaDB","url":"https:\/\/minervadb.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/minervadb.com\/#\/schema\/logo\/image\/","url":"https:\/\/minervadb.com\/wp-content\/uploads\/2018\/03\/LogoColorTextRight.jpeg","contentUrl":"https:\/\/minervadb.com\/wp-content\/uploads\/2018\/03\/LogoColorTextRight.jpeg","width":200,"height":200,"caption":"MinervaDB"},"image":{"@id":"https:\/\/minervadb.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/WebScaleDBA\/","https:\/\/x.com\/webscaledba","https:\/\/www.linkedin.com\/company\/minervadb\/","https:\/\/www.youtube.com\/channel\/UClLrz7wS8gVyAR8Lf5x7r1g?view_as=subscriber"]},{"@type":"Person","@id":"https:\/\/minervadb.com\/#\/schema\/person\/b32f096648ad17f01728c12a58285618","name":"Shiv Iyer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/minervadb.com\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/491f7719e102a566a11d41313372a8cf?s=96&d=blank&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/491f7719e102a566a11d41313372a8cf?s=96&d=blank&r=g","caption":"Shiv Iyer"},"description":"WebScale Database Infrastructure Operations Expert in MySQL, MariaDB, PostgreSQL and ClickHouse with core interests in performance, scalability, high availability and database reliability engineering. Shiv currently is the Founder and Principal of MinervaDB, an independent and vendor neutral Consulting, 24*7 Support and Remote DBA Services provider for MySQL, MariaDB, PostgreSQL and ClickHouse serving approximately 300 customers globally.","sameAs":["http:\/\/minervadb.com","https:\/\/www.facebook.com\/TheWebScaleDBA","https:\/\/x.com\/http:\/\/twitter.com\/thewebscaledba"],"url":"http:\/\/minervadb.com\/index.php\/author\/shiv\/"}]}},"_links":{"self":[{"href":"http:\/\/minervadb.com\/index.php\/wp-json\/wp\/v2\/posts\/1948"}],"collection":[{"href":"http:\/\/minervadb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/minervadb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/minervadb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/minervadb.com\/index.php\/wp-json\/wp\/v2\/comments?post=1948"}],"version-history":[{"count":12,"href":"http:\/\/minervadb.com\/index.php\/wp-json\/wp\/v2\/posts\/1948\/revisions"}],"predecessor-version":[{"id":1960,"href":"http:\/\/minervadb.com\/index.php\/wp-json\/wp\/v2\/posts\/1948\/revisions\/1960"}],"wp:attachment":[{"href":"http:\/\/minervadb.com\/index.php\/wp-json\/wp\/v2\/media?parent=1948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/minervadb.com\/index.php\/wp-json\/wp\/v2\/categories?post=1948"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/minervadb.com\/index.php\/wp-json\/wp\/v2\/tags?post=1948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}