{"id":185044,"date":"2013-06-28T22:41:03","date_gmt":"2013-06-28T18:41:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=185044"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=185044","title":{"rendered":"<span class=\"post_title\">\u0411\u0430\u0433 \u0432 MySQL \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043d\u0430 \u0434\u0435\u043d\u044c \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0442\u043e\u0440\u0442\u0438\u043a<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0425\u043e\u0440\u043e\u0448\u0435\u0439 \u043f\u044f\u0442\u043d\u0438\u0446\u044b, \u0425\u0430\u0431\u0440!<\/p>\n<p>  \u041a\u0430\u043a \u043c\u043d\u043e\u0433\u0438\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u0430\u0433\u0438 \u0432 MySQL \u043d\u0435 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0433\u043e\u0434\u0430\u043c\u0438. \u041d\u043e \u0432\u0441\u0435 \u0435\u0449\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c\u0443 \u0431\u0430\u0433\u0443 <b>#20786 \u00abmysqldump always includes AUTO_INCREMENT\u00bb <\/b>\u043f\u043e\u0432\u0435\u0437\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u2014 \u043d\u0430 \u0441\u0432\u043e\u0435 \u0441\u0435\u043c\u0438\u043b\u0435\u0442\u0438\u0435 \u043e\u043d \u0445\u043e\u0442\u044f \u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0441\u0430\u043c\u044b\u0439 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043f\u0440\u0430\u0437\u0434\u043d\u0438\u0447\u043d\u044b\u0439 \u0442\u043e\u0440\u0442!<\/p>\n<p>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"http:\/\/www.youtube.com\/embed\/oAiVsbXVP6k?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0431\u0430\u0433\u0430<\/b><\/p>\n<div class=\"spoiler_text\">[29 Jun 2006 22:31] Erik Kay<\/p>\n<p>  I&#8217;ve run into a change between 5.1.9 and 5.1.11 that&#8217;s causing me problems. mysqldump now includes AUTO_INCREMENT=xxx in the table definition, even when you specify &#8212;no-data. This appears to be the new default behavior of SHOW CREATE TABLE, which I assume mysqldump is using under the covers.<\/p>\n<p>  I understand why this is useful for the purposes of backing up data, and why it would even be useful in some &#8212;no-data cases, but the bummer for me is that I now don&#8217;t have a way to dump my schema cleanly for development purposes. <\/p><\/div>\n<\/div>\n<p>  <a href=\"http:\/\/bugs.mysql.com\/bug.php?id=20786\">\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430<\/a>    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/185044\/\"> http:\/\/habrahabr.ru\/post\/185044\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0425\u043e\u0440\u043e\u0448\u0435\u0439 \u043f\u044f\u0442\u043d\u0438\u0446\u044b, \u0425\u0430\u0431\u0440!<\/p>\n<p>  \u041a\u0430\u043a \u043c\u043d\u043e\u0433\u0438\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u0430\u0433\u0438 \u0432 MySQL \u043d\u0435 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0433\u043e\u0434\u0430\u043c\u0438. \u041d\u043e \u0432\u0441\u0435 \u0435\u0449\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c\u0443 \u0431\u0430\u0433\u0443 <b>#20786 \u00abmysqldump always includes AUTO_INCREMENT\u00bb <\/b>\u043f\u043e\u0432\u0435\u0437\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u2014 \u043d\u0430 \u0441\u0432\u043e\u0435 \u0441\u0435\u043c\u0438\u043b\u0435\u0442\u0438\u0435 \u043e\u043d \u0445\u043e\u0442\u044f \u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0441\u0430\u043c\u044b\u0439 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043f\u0440\u0430\u0437\u0434\u043d\u0438\u0447\u043d\u044b\u0439 \u0442\u043e\u0440\u0442!<\/p>\n<p>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"http:\/\/www.youtube.com\/embed\/oAiVsbXVP6k?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0431\u0430\u0433\u0430<\/b><\/p>\n<div class=\"spoiler_text\">[29 Jun 2006 22:31] Erik Kay<\/p>\n<p>  I&#8217;ve run into a change between 5.1.9 and 5.1.11 that&#8217;s causing me problems. mysqldump now includes AUTO_INCREMENT=xxx in the table definition, even when you specify &#8212;no-data. This appears to be the new default behavior of SHOW CREATE TABLE, which I assume mysqldump is using under the covers.<\/p>\n<p>  I understand why this is useful for the purposes of backing up data, and why it would even be useful in some &#8212;no-data cases, but the bummer for me is that I now don&#8217;t have a way to dump my schema cleanly for development purposes. <\/p><\/div>\n<\/div>\n<p>  <a href=\"http:\/\/bugs.mysql.com\/bug.php?id=20786\">\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430<\/a>    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/185044\/\"> http:\/\/habrahabr.ru\/post\/185044\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-185044","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/185044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=185044"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/185044\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=185044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=185044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=185044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}