{"id":36,"date":"2009-09-20T07:59:11","date_gmt":"2009-09-20T07:59:11","guid":{"rendered":"http:\/\/kedar.nitty-witty.com\/?p=36"},"modified":"2023-04-24T05:05:23","modified_gmt":"2023-04-24T05:05:23","slug":"problem-with-master-master-replication-and-auto-increment","status":"publish","type":"post","link":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment","title":{"rendered":"MySQL Master Master Replication and auto_increment_increment \/ auto_increment_offset"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this post we will see importance of replication related variables auto_increment_increment &amp; auto_increment_offset with respect to MySQL Master Master setup.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Consider we&#8217;ve already set a master-master replication. Now create following table on Server1:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">`id` int(10) NOT NULL auto_increment,\n PRIMARY KEY (`id`)\n ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The table will will get replicated on MySQL Server2 in the master-master setup.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now insert value on MySQL Server1 as follows:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em>mysql&gt;insert into temp values(null);<\/em><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">On MySQL Server2 in replication you will see single row inserted. Now insert one row from MySQL Server2 as follows:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em>mysql&gt;insert into temp values(null);<\/em><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You should see an error:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em>Error 'Duplicate entry '1' for key 'PRIMARY'' on query...<\/em><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The obvious problem of maintaining auto increments in sync will persist on both MySQL servers as AUTO_INCREMENT&#8217;s value.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">auto_increment variables and master-master replication<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The solution is to use the variables <a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/replication-options-master.html#sysvar_auto_increment_increment\" target=\"_blank\" rel=\"nofollow noopener\">auto_increment_increment and auto_increment_offset<\/a> as explained below. Both configuration options are dynamic and will not need MySQL restart.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Configure auto_increment_increment and auto_increment_offset as follows on Primary and Stand-by Master<\/li>\n\n\n\n<li>Persist the change in MySQL configuration file (my.cnf)<br><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">MySQL Server1 (Primary \/ Master):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SET GLOBAL auto_increment_increment=2\nSET GLOBAL auto_increment_offset=2<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">MySQL Server2 (Stand-by \/ Secondary Master):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SET GLOBAL auto_increment_increment=2\nSET GLOBAL auto_increment_offset=1<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; Start Replica (\/Slave).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Remember:<br>&#8211; <b>auto_increment_increment<\/b> controls the interval between successive column values.<br>&#8211; <b>auto_increment_offset<\/b> determines the starting point for the AUTO_INCREMENT column value.<br>&#8211; It&#8217;s advisable to have these configured to avoid any accidental conflicts for all master-master setup.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Conclusion<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">In conclusion, understanding and correctly configuring auto_increment_increment and auto_increment_offset are crucial for maintaining data consistency and integrity in a MySQL Master-Master Replication setup, and can greatly improve the performance and reliability of your database replication architecture. However, it&#8217;s essential to adhere to best practices and avoid writing to both masters to ensure data consistency and integrity in your MySQL replication setup.<\/p>\n","protected":false},"excerpt":{"rendered":"In this post we will see importance of replication related variables auto_increment_increment &amp; auto_increment_offset with respect to MySQL Master Master setup. Consider we&#8217;ve already set a master-master replication. Now create&hellip;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,377],"tags":[259,338,551,258,427,100],"class_list":["post-36","post","type-post","status-publish","format-standard","category-mysql","category-mysql-articles","tag-auto-increment","tag-auto-increment-offset","tag-duplicate-entry-1","tag-master-master-replication","tag-mysql","tag-replication"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Problem with Master Master Replication and Auto Increment\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kedar\"\/>\n\t<meta name=\"google-site-verification\" content=\"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA\" \/>\n\t<meta name=\"msvalidate.01\" content=\"116B62074CBCA1BA99B8CCE09CCF2FB8\" \/>\n\t<meta name=\"keywords\" content=\"auto increment,auto increment offset,duplicate entry &#039;1&#039;,master master replication,mysql,replication\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Change Is Inevitable | Kedar Vaijanapurkar&#039;s Blog for MySQL, technology and various subjects\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Problem with Master Master Replication and Auto Increment | Change Is Inevitable\" \/>\n\t\t<meta property=\"og:description\" content=\"Problem with Master Master Replication and Auto Increment\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2009-09-20T07:59:11+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-04-24T05:05:23+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Problem with Master Master Replication and Auto Increment | Change Is Inevitable\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Problem with Master Master Replication and Auto Increment\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/problem-with-master-master-replication-and-auto-increment#article\",\"name\":\"Problem with Master Master Replication and Auto Increment | Change Is Inevitable\",\"headline\":\"MySQL Master Master Replication and auto_increment_increment \\\/ auto_increment_offset\",\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/problem-with-master-master-replication-and-auto-increment#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"},\"datePublished\":\"2009-09-20T07:59:11+00:00\",\"dateModified\":\"2023-04-24T05:05:23+00:00\",\"inLanguage\":\"en-US\",\"commentCount\":5,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/problem-with-master-master-replication-and-auto-increment#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/problem-with-master-master-replication-and-auto-increment#webpage\"},\"articleSection\":\"MySQL, MySQL-Articles, Auto Increment, auto increment offset, Duplicate entry &#039;1&#039;, Master Master Replication, MySQL, replication\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/problem-with-master-master-replication-and-auto-increment#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"position\":2,\"name\":\"MySQL\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"name\":\"MySQL-Articles\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"position\":3,\"name\":\"MySQL-Articles\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/problem-with-master-master-replication-and-auto-increment#listItem\",\"name\":\"MySQL Master Master Replication and auto_increment_increment \\\/ auto_increment_offset\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/problem-with-master-master-replication-and-auto-increment#listItem\",\"position\":4,\"name\":\"MySQL Master Master Replication and auto_increment_increment \\\/ auto_increment_offset\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-articles#listItem\",\"name\":\"MySQL-Articles\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/problem-with-master-master-replication-and-auto-increment#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/problem-with-master-master-replication-and-auto-increment#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/problem-with-master-master-replication-and-auto-increment#webpage\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/problem-with-master-master-replication-and-auto-increment\",\"name\":\"Problem with Master Master Replication and Auto Increment | Change Is Inevitable\",\"description\":\"Problem with Master Master Replication and Auto Increment\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/problem-with-master-master-replication-and-auto-increment#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"datePublished\":\"2009-09-20T07:59:11+00:00\",\"dateModified\":\"2023-04-24T05:05:23+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/\",\"name\":\"..::CHANGE is INEVITABLE::..\",\"description\":\"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Problem with Master Master Replication and Auto Increment | Change Is Inevitable","description":"Problem with Master Master Replication and Auto Increment","canonical_url":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment","robots":"max-image-preview:large","keywords":"auto increment,auto increment offset,duplicate entry &#039;1&#039;,master master replication,mysql,replication","webmasterTools":{"google-site-verification":"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA","msvalidate.01":"116B62074CBCA1BA99B8CCE09CCF2FB8","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment#article","name":"Problem with Master Master Replication and Auto Increment | Change Is Inevitable","headline":"MySQL Master Master Replication and auto_increment_increment \/ auto_increment_offset","author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"},"datePublished":"2009-09-20T07:59:11+00:00","dateModified":"2023-04-24T05:05:23+00:00","inLanguage":"en-US","commentCount":5,"mainEntityOfPage":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment#webpage"},"isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment#webpage"},"articleSection":"MySQL, MySQL-Articles, Auto Increment, auto increment offset, Duplicate entry &#039;1&#039;, Master Master Replication, MySQL, replication"},{"@type":"BreadcrumbList","@id":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/kedar.nitty-witty.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","position":2,"name":"MySQL","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","name":"MySQL-Articles"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","position":3,"name":"MySQL-Articles","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment#listItem","name":"MySQL Master Master Replication and auto_increment_increment \/ auto_increment_offset"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment#listItem","position":4,"name":"MySQL Master Master Replication and auto_increment_increment \/ auto_increment_offset","previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles#listItem","name":"MySQL-Articles"}}]},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author","url":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"WebPage","@id":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment#webpage","url":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment","name":"Problem with Master Master Replication and Auto Increment | Change Is Inevitable","description":"Problem with Master Master Replication and Auto Increment","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment#breadcrumblist"},"author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"creator":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"datePublished":"2009-09-20T07:59:11+00:00","dateModified":"2023-04-24T05:05:23+00:00"},{"@type":"WebSite","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website","url":"https:\/\/kedar.nitty-witty.com\/blog\/","name":"..::CHANGE is INEVITABLE::..","description":"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","inLanguage":"en-US","publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Change Is Inevitable | Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","og:type":"article","og:title":"Problem with Master Master Replication and Auto Increment | Change Is Inevitable","og:description":"Problem with Master Master Replication and Auto Increment","og:url":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment","article:published_time":"2009-09-20T07:59:11+00:00","article:modified_time":"2023-04-24T05:05:23+00:00","twitter:card":"summary","twitter:title":"Problem with Master Master Replication and Auto Increment | Change Is Inevitable","twitter:description":"Problem with Master Master Replication and Auto Increment"},"aioseo_meta_data":{"post_id":"36","title":"Problem with Master Master Replication and Auto Increment | #site_title","description":"Problem with Master Master Replication and Auto Increment","keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-24 17:40:56","updated":"2025-08-16 19:00:32","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\" title=\"MySQL\">MySQL<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles\" title=\"MySQL-Articles\">MySQL-Articles<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tMySQL Master Master Replication and auto_increment_increment \/ auto_increment_offset\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/kedar.nitty-witty.com\/blog"},{"label":"MySQL","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql"},{"label":"MySQL-Articles","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-articles"},{"label":"MySQL Master Master Replication and auto_increment_increment \/ auto_increment_offset","link":"https:\/\/kedar.nitty-witty.com\/blog\/problem-with-master-master-replication-and-auto-increment"}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":8,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":2818,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/36\/revisions\/2818"}],"wp:attachment":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}