{"id":2083,"date":"2020-07-29T23:36:21","date_gmt":"2020-07-29T15:36:21","guid":{"rendered":"http:\/\/39.97.231.10\/?p=2083"},"modified":"2020-07-29T23:36:21","modified_gmt":"2020-07-29T15:36:21","slug":"mysql%e5%8f%82%e6%95%b0%e8%a7%a3%e6%9e%90-innodb_fast_shutdown","status":"publish","type":"post","link":"http:\/\/www.weijing.co\/?p=2083","title":{"rendered":"MySQL\u53c2\u6570\u89e3\u6790 innodb_fast_shutdown"},"content":{"rendered":"<div>\n<div>\ninnodb_fast_shutdown\uff1a\n<\/div>\n<\/div>\n<div>\n<div>\n<ul>\n<li>\u4f5c\u7528\u8303\u56f4\uff1aGlobal<\/li>\n<li>\u52a8\u6001\u4fee\u6539\uff1aYes<\/li>\n<li>\u53d6\u503c\u8303\u56f4\uff1a0\uff0c1\uff0c2<\/li>\n<li>\u9ed8\u8ba4\u503c\uff1a1<\/li>\n<\/ul>\n<p>innodb_fast_shutdown \u53c2\u6570\u7528\u4e8e\u8bbe\u7f6eMySQL InnoDB\u5f15\u64ce\u7684\u5173\u95ed\u6a21\u5f0f\u3002<br \/>\n\u8bbe\u7f6e\u4e3a0\u65f6\uff0cInnoDB\u5173\u95ed\u7684\u6700\u6162\uff0c\u9700\u8981\u6e05\u9664\u6240\u6709\u7684undo log\uff08\u9664\u4e86XA prepare \u7684\u4e8b\u52a1\uff09\uff0c\u5b8c\u6210change buffer\u7684\u5408\u5e76\uff0c\u5c06\u810f\u9875\u5237\u76d8\uff0c\u5173\u95edredo log\u3002<br \/>\n\u8bbe\u7f6e\u4e3a1\u65f6\uff0c\u4e0d\u9700\u8981\u6e05\u9664undo log\uff0c\u4e5f\u4e0d\u4f1a\u5408\u5e76change buffer\uff0c\u53ea\u5c06\u810f\u9875\u5237\u76d8\uff0c\u5173\u95edredo log\u3002<br \/>\n\u8bbe\u7f6e\u4e3a2\u65f6\uff0c\u4e0d\u6e05\u9664undo log\uff0c\u4e0d\u5408\u5e76change buffer\uff0c\u4e5f\u4e0d\u5c06\u810f\u9875\u5237\u76d8\uff0c\u53ea\u5c06redo log buffer\u4e2d\u7684\u65e5\u5fd7\u5199\u5230redo\u6587\u4ef6\u5e76\u5237\u5230\u78c1\u76d8\uff0c\u4fdd\u8bc1\u5df2\u63d0\u4ea4\u7684\u4e8b\u52a1\u4e0d\u4f1a\u4e22\u5931\uff0c\u56e0\u6b64\u7b49\u4e0b\u6b21\u542f\u52a8\u8fdb\u884c\u6062\u590d\u7684\u65f6\u5019\u5b83\u662f\u6700\u8017\u65f6\u7684\u3002<br \/>\n\u770b\u4e00\u4e0b8.0.20\u6e90\u7801\u4e2d\u5173\u4e8e\u8be5\u53c2\u6570\u7684\u89e3\u91ca\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre>\/** The value of the configuration parameter innodb_fast_shutdown,controlling the InnoDB shutdown.\nIf innodb_fast_shutdown=0, InnoDB shutdown will purge all undo log records (except XA PREPARE transactions) and complete the merge of the entire change buffer, and then shut down the redo log.\nIf innodb_fast_shutdown=1, InnoDB shutdown will only flush the buffer pool to data files, cleanly shutting down the redo log.\nIf innodb_fast_shutdown=2, shutdown will effectively \\'crash\\' InnoDB(but lose no committed transactions). *\/<\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>innodb_fast_shutdown\uff1a \u4f5c\u7528\u8303\u56f4\uff1aGlobal \u52a8\u6001\u4fee\u6539\uff1aYes \u53d6\u503c\u8303\u56f4\uff1a0\uff0c1\uff0c2 \u9ed8 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"http:\/\/www.weijing.co\/?p=2083\"> <span class=\"screen-reader-text\">MySQL\u53c2\u6570\u89e3\u6790 innodb_fast_shutdown<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[90,88],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"mailpoet_newsletter_max":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"shop_catalog":false,"shop_single":false,"shop_thumbnail":false},"uagb_author_info":{"display_name":"weijing","author_link":"http:\/\/www.weijing.co\/?author=4"},"uagb_comment_info":0,"uagb_excerpt":"innodb_fast_shutdown\uff1a \u4f5c\u7528\u8303\u56f4\uff1aGlobal \u52a8\u6001\u4fee\u6539\uff1aYes \u53d6\u503c\u8303\u56f4\uff1a0\uff0c1\uff0c2 \u9ed8&hellip;","_links":{"self":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/2083"}],"collection":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2083"}],"version-history":[{"count":0,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/2083\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2083"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}