{"id":61039,"date":"2024-10-13T07:55:16","date_gmt":"2024-10-12T23:55:16","guid":{"rendered":"https:\/\/server.hk\/cnblog\/61039\/"},"modified":"2024-10-13T07:55:16","modified_gmt":"2024-10-12T23:55:16","slug":"dba%e6%87%89%e7%94%a8%e6%8a%80%e5%b7%a7%ef%bc%9a%e5%a6%82%e4%bd%95%e5%8d%87%e7%b4%9ainnodb-plugin","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/61039\/","title":{"rendered":"DBA\u61c9\u7528\u6280\u5de7\uff1a\u5982\u4f55\u5347\u7d1aInnoDB Plugin"},"content":{"rendered":"<h1 id=\"dba%e6%87%89%e7%94%a8%e6%8a%80%e5%b7%a7%ef%bc%9a%e5%a6%82%e4%bd%95%e5%8d%87%e7%b4%9ainnodb-plugin-eKHaaoGVZe\">DBA\u61c9\u7528\u6280\u5de7\uff1a\u5982\u4f55\u5347\u7d1aInnoDB Plugin<\/h1>\n<p>\u5728\u6578\u64da\u5eab\u7ba1\u7406\u4e2d\uff0cInnoDB Plugin \u662f MySQL \u7684\u4e00\u500b\u91cd\u8981\u7d44\u4ef6\uff0c\u63d0\u4f9b\u4e86\u4e8b\u52d9\u652f\u6301\u3001\u884c\u7d1a\u9396\u5b9a\u548c\u5916\u9375\u7d04\u675f\u7b49\u529f\u80fd\u3002\u96a8\u8457\u6280\u8853\u7684\u9032\u6b65\uff0c\u5347\u7d1a InnoDB Plugin \u4e0d\u50c5\u80fd\u63d0\u9ad8\u6027\u80fd\uff0c\u9084\u80fd\u589e\u5f37\u5b89\u5168\u6027\u548c\u7a69\u5b9a\u6027\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u5982\u4f55\u6709\u6548\u5730\u5347\u7d1a InnoDB Plugin\uff0c\u4e26\u63d0\u4f9b\u4e00\u4e9b\u5be6\u7528\u7684\u6280\u5de7\u3002<\/p>\n<h2 id=\"%e7%82%ba%e4%bb%80%e9%ba%bc%e8%a6%81%e5%8d%87%e7%b4%9a-innodb-plugin%ef%bc%9f-eKHaaoGVZe\">\u70ba\u4ec0\u9ebc\u8981\u5347\u7d1a InnoDB Plugin\uff1f<\/h2>\n<p>\u5347\u7d1a InnoDB Plugin \u7684\u539f\u56e0\u4e3b\u8981\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>\u6027\u80fd\u63d0\u5347\uff1a<\/strong>\u65b0\u7248\u672c\u901a\u5e38\u6703\u5305\u542b\u6027\u80fd\u512a\u5316\uff0c\u80fd\u5920\u66f4\u597d\u5730\u5229\u7528\u7cfb\u7d71\u8cc7\u6e90\u3002<\/li>\n<li><strong>\u5b89\u5168\u6027\u589e\u5f37\uff1a<\/strong>\u5347\u7d1a\u5f8c\u7684\u7248\u672c\u6703\u4fee\u5fa9\u5df2\u77e5\u7684\u5b89\u5168\u6f0f\u6d1e\uff0c\u4fdd\u8b77\u6578\u64da\u7684\u5b89\u5168\u3002<\/li>\n<li><strong>\u65b0\u529f\u80fd\uff1a<\/strong>\u65b0\u7248\u672c\u53ef\u80fd\u6703\u5f15\u5165\u65b0\u7684\u529f\u80fd\uff0c\u5e6b\u52a9\u7528\u6236\u66f4\u597d\u5730\u7ba1\u7406\u6578\u64da\u5eab\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%8d%87%e7%b4%9a%e5%89%8d%e7%9a%84%e6%ba%96%e5%82%99%e5%b7%a5%e4%bd%9c-eKHaaoGVZe\">\u5347\u7d1a\u524d\u7684\u6e96\u5099\u5de5\u4f5c<\/h2>\n<p>\u5728\u9032\u884c\u5347\u7d1a\u4e4b\u524d\uff0c\u5fc5\u9808\u505a\u597d\u5145\u5206\u7684\u6e96\u5099\u5de5\u4f5c\uff1a<\/p>\n<ul>\n<li><strong>\u5099\u4efd\u6578\u64da\uff1a<\/strong>\u5728\u5347\u7d1a\u4e4b\u524d\uff0c\u52d9\u5fc5\u5099\u4efd\u6240\u6709\u91cd\u8981\u6578\u64da\uff0c\u4ee5\u9632\u5347\u7d1a\u904e\u7a0b\u4e2d\u51fa\u73fe\u554f\u984c\u3002<\/li>\n<li><strong>\u6aa2\u67e5\u76f8\u5bb9\u6027\uff1a<\/strong>\u78ba\u4fdd\u65b0\u7248\u672c\u7684 InnoDB Plugin \u8207\u73fe\u6709\u7684 MySQL \u7248\u672c\u76f8\u5bb9\u3002<\/li>\n<li><strong>\u6e2c\u8a66\u74b0\u5883\uff1a<\/strong>\u5728\u751f\u7522\u74b0\u5883\u4e4b\u5916\u5efa\u7acb\u4e00\u500b\u6e2c\u8a66\u74b0\u5883\uff0c\u9032\u884c\u5347\u7d1a\u6e2c\u8a66\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%8d%87%e7%b4%9a%e6%ad%a5%e9%a9%9f-eKHaaoGVZe\">\u5347\u7d1a\u6b65\u9a5f<\/h2>\n<p>\u4ee5\u4e0b\u662f\u5347\u7d1a InnoDB Plugin \u7684\u5177\u9ad4\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e4%b8%8b%e8%bc%89%e6%96%b0%e7%89%88%e6%9c%ac-eKHaaoGVZe\">1. \u4e0b\u8f09\u65b0\u7248\u672c<\/h3>\n<p>\u9996\u5148\uff0c\u5f9e MySQL \u5b98\u65b9\u7db2\u7ad9\u6216\u5176\u4ed6\u53ef\u9760\u4f86\u6e90\u4e0b\u8f09\u6700\u65b0\u7248\u672c\u7684 InnoDB Plugin\u3002<\/p>\n<h3 id=\"2-%e5%81%9c%e6%ad%a2-mysql-%e6%9c%8d%e5%8b%99-eKHaaoGVZe\">2. \u505c\u6b62 MySQL \u670d\u52d9<\/h3>\n<pre><code>sudo systemctl stop mysql<\/code><\/pre>\n<p>\u5728\u9032\u884c\u4efb\u4f55\u5347\u7d1a\u4e4b\u524d\uff0c\u5fc5\u9808\u505c\u6b62 MySQL \u670d\u52d9\uff0c\u4ee5\u78ba\u4fdd\u6578\u64da\u7684\u5b8c\u6574\u6027\u3002<\/p>\n<h3 id=\"3-%e5%ae%89%e8%a3%9d%e6%96%b0%e7%89%88%e6%9c%ac-eKHaaoGVZe\">3. \u5b89\u88dd\u65b0\u7248\u672c<\/h3>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88dd\u65b0\u7248\u672c\u7684 InnoDB Plugin\uff1a<\/p>\n<pre><code>sudo dpkg -i \/path\/to\/innodb_plugin.deb<\/code><\/pre>\n<p>\u78ba\u4fdd\u66ff\u63db\u70ba\u5be6\u969b\u7684\u6a94\u6848\u8def\u5f91\u3002<\/p>\n<h3 id=\"4-%e6%9b%b4%e6%96%b0%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-eKHaaoGVZe\">4. \u66f4\u65b0\u914d\u7f6e\u6587\u4ef6<\/h3>\n<p>\u6839\u64da\u65b0\u7248\u672c\u7684\u8981\u6c42\uff0c\u66f4\u65b0 MySQL \u7684\u914d\u7f6e\u6587\u4ef6\uff08\u901a\u5e38\u662f my.cnf\uff09\u3002\u78ba\u4fdd\u5305\u542b\u4ee5\u4e0b\u884c\uff1a<\/p>\n<pre><code>[mysqld]\nplugin-load=innodb_plugin.so<\/code><\/pre>\n<h3 id=\"5-%e5%95%9f%e5%8b%95-mysql-%e6%9c%8d%e5%8b%99-eKHaaoGVZe\">5. \u555f\u52d5 MySQL \u670d\u52d9<\/h3>\n<pre><code>sudo systemctl start mysql<\/code><\/pre>\n<p>\u555f\u52d5 MySQL \u670d\u52d9\u5f8c\uff0c\u6aa2\u67e5\u670d\u52d9\u72c0\u614b\u4ee5\u78ba\u4fdd\u5176\u6b63\u5e38\u904b\u884c\u3002<\/p>\n<h3 id=\"6-%e9%a9%97%e8%ad%89%e5%8d%87%e7%b4%9a-eKHaaoGVZe\">6. \u9a57\u8b49\u5347\u7d1a<\/h3>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5 InnoDB Plugin \u7684\u7248\u672c\uff1a<\/p>\n<pre><code>SHOW VARIABLES LIKE 'innodb_version';<\/code><\/pre>\n<p>\u78ba\u4fdd\u986f\u793a\u7684\u7248\u672c\u865f\u662f\u6700\u65b0\u7684\u3002<\/p>\n<h2 id=\"%e5%8d%87%e7%b4%9a%e5%be%8c%e7%9a%84%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a0%85-eKHaaoGVZe\">\u5347\u7d1a\u5f8c\u7684\u6ce8\u610f\u4e8b\u9805<\/h2>\n<p>\u5347\u7d1a\u5b8c\u6210\u5f8c\uff0c\u61c9\u6ce8\u610f\u4ee5\u4e0b\u5e7e\u9ede\uff1a<\/p>\n<ul>\n<li><strong>\u76e3\u63a7\u6027\u80fd\uff1a<\/strong>\u5728\u5347\u7d1a\u5f8c\u7684\u5e7e\u5929\u5167\uff0c\u5bc6\u5207\u76e3\u63a7\u6578\u64da\u5eab\u7684\u6027\u80fd\uff0c\u78ba\u4fdd\u6c92\u6709\u51fa\u73fe\u7570\u5e38\u3002<\/li>\n<li><strong>\u6aa2\u67e5\u65e5\u8a8c\uff1a<\/strong>\u67e5\u770b MySQL \u7684\u932f\u8aa4\u65e5\u8a8c\uff0c\u78ba\u4fdd\u6c92\u6709\u5347\u7d1a\u904e\u7a0b\u4e2d\u7684\u932f\u8aa4\u3002<\/li>\n<li><strong>\u9032\u884c\u6e2c\u8a66\uff1a<\/strong>\u5728\u751f\u7522\u74b0\u5883\u4e2d\u9032\u884c\u4e00\u4e9b\u57fa\u672c\u7684\u6e2c\u8a66\uff0c\u4ee5\u78ba\u4fdd\u6240\u6709\u529f\u80fd\u6b63\u5e38\u904b\u884c\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-eKHaaoGVZe\">\u7e3d\u7d50<\/h2>\n<p>\u5347\u7d1a InnoDB Plugin \u662f\u4e00\u500b\u91cd\u8981\u7684\u7dad\u8b77\u4efb\u52d9\uff0c\u80fd\u5920\u986f\u8457\u63d0\u5347\u6578\u64da\u5eab\u7684\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002\u901a\u904e\u9075\u5faa\u4e0a\u8ff0\u6b65\u9a5f\uff0cDBA \u53ef\u4ee5\u6709\u6548\u5730\u5b8c\u6210\u5347\u7d1a\u904e\u7a0b\uff0c\u4e26\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u7a69\u5b9a\u904b\u884c\u3002\u5982\u679c\u60a8\u9700\u8981\u66f4\u591a\u6709\u95dc <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u548c <a href=\"https:\/\/server.hk\">\u96f2\u4f3a\u670d\u5668<\/a> \u7684\u8cc7\u8a0a\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u8cc7\u6e90\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u638c\u63e1DBA\u61c9\u7528\u6280\u5de7\uff0c\u5b78\u7fd2\u5982\u4f55\u6709\u6548\u5347\u7d1aInnoDB Plugin\uff0c\u63d0\u5347\u6578\u64da\u5eab\u6027\u80fd\u8207\u7a69\u5b9a\u6027\uff0c\u78ba\u4fdd\u7cfb\u7d71\u904b\u884c\u6d41\u66a2\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-61039","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/61039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=61039"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/61039\/revisions"}],"predecessor-version":[{"id":61040,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/61039\/revisions\/61040"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=61039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=61039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=61039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}