{"id":16,"date":"2006-06-21T11:44:59","date_gmt":"2006-06-21T09:44:59","guid":{"rendered":"http:\/\/www.nivas.hr\/blog\/2006\/06\/21\/mysqldump-doesnt-like-auto_increment\/"},"modified":"2006-06-21T12:12:30","modified_gmt":"2006-06-21T10:12:30","slug":"mysqldump-doesnt-like-auto_increment","status":"publish","type":"post","link":"https:\/\/www.nivas.hr\/blog\/2006\/06\/21\/mysqldump-doesnt-like-auto_increment\/","title":{"rendered":"Mysqldump doesn&#8217;t like auto_increment"},"content":{"rendered":"<p>Today I&#8217;we found out that mysqldump 4\/5 has bogus bug, when you dump database with <em>&#8211;compatible=mysql40<\/em>, mysqldump forgets to add AUTO_INCREMENT value to create table query. It&#8217;s official <a target=\"_blank\" href=\"http:\/\/bugs.mysql.com\/bug.php?id=14515\">bug<\/a>. They released a <a target=\"_blank\" href=\"http:\/\/lists.mysql.com\/commits\/5668\">patch <\/a>for this on April 28.<\/p>\n<p>If you don&#8217;t fancy patching, and you really need to dump your 4.1.20 database and import it to a 3.23 mysql server (can you believe that some web hosting providers are still using it??), you can allways call good old MySQL Front to the rescue. Export your db and remove &#8216;<em>ENGINE=MyISAM DEFAULT CHARSET=utf8<\/em>&#8216; from sql file. If you are lucky it will work. :)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I&#8217;we found out that mysqldump 4\/5 has bogus bug, when you dump database with &#8211;compatible=mysql40, mysqldump forgets to add AUTO_INCREMENT value to create table query. It&#8217;s official bug. They released a patch for this on April 28. If you don&#8217;t fancy patching, and you really need to dump your 4.1.20 database and import it&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/posts\/16"}],"collection":[{"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":0,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}