{"id":31420,"date":"2023-03-24T21:36:12","date_gmt":"2023-03-24T13:36:12","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=31420"},"modified":"2023-03-24T21:36:12","modified_gmt":"2023-03-24T13:36:12","slug":"mysql-8-0","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/mysql-8-0.html","title":{"rendered":"MySQL 8.0.0 \u5f00\u53d1\u91cc\u7a0b\u7891\u7248\u672c\uff08DMR\uff09\u53d1\u5e03\uff01"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nMySQL \u4e3a\u4f55\u4ece 5.x \u4e00\u4e0b\u8df3\u8dc3\u5230\u4e86 8.0\u3002\u4e8b\u5b9e\u4e0a\uff0cMySQL 5.x \u7cfb\u5217\u5df2\u7ecf\u5ef6\u7eed\u4e86\u5f88\u591a\u5e74\uff0c\u4ece\u88ab Oracle \u6536\u8d2d\u4e4b\u524d\u5c31\u662f 5.1\uff0c\u800c\u6536\u8d2d\u4e4b\u540e\u4e00\u76f4\u7ef4\u6301\u5728 5.x\uff0c\u6bd4\u5982 5.5\uff0c5.6\uff0c5.7 \u7b49\u7b49\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

MySQL \u5f00\u53d1\u56e2\u961f\u4e8e 12 \u65e5\u5ba3\u5e03 MySQL 8.0.0 \u5f00\u53d1\u91cc\u7a0b\u7891\u7248\u672c\uff08DMR\uff09\u53d1\u5e03\uff01<\/p>\n

\u53ef\u80fd\u6709\u4eba\u4f1a\u60ca\u5947 MySQL \u4e3a\u4f55\u4ece 5.x \u4e00\u4e0b\u8df3\u8dc3\u5230\u4e86 8.0\u3002\u4e8b\u5b9e\u4e0a\uff0cMySQL 5.x \u7cfb\u5217\u5df2\u7ecf\u5ef6\u7eed\u4e86\u5f88\u591a\u5e74\uff0c\u4ece\u88ab Oracle \u6536\u8d2d\u4e4b\u524d\u5c31\u662f 5.1\uff0c\u800c\u6536\u8d2d\u4e4b\u540e\u4e00\u76f4\u7ef4\u6301\u5728 5.x\uff0c\u6bd4\u5982 5.5\uff0c5.6\uff0c5.7 \u7b49\u7b49\u3002\u5176\u5b9e\uff0c\u5982\u679c\u6309\u7167\u539f\u672c\u7684\u53d1\u5e03\u8282\u594f\uff0c\u53ef\u4ee5\u628a 5.6.x \u5f53\u6210 6.x\uff0c5.7.x \u5f53\u6210 7.x\u3002\u6240\u4ee5\uff0c\u53ea\u662f\u6362\u4e86\u7248\u672c\u547d\u540d\u65b9\u5f0f\u800c\u5df2\u3002<\/p>\n

\u4e0d\u8fc7\u8fd9\u6b21\u53d1\u5e03\u7684 MySQL 8.0.0 \u5f00\u53d1\u7248\u672c\u8fd8\u662f\u6709\u4e0d\u5c11\u4eae\u70b9\u7684\u3002<\/p>\n

MySQL 8.0.0 \u4eae\u70b9<\/strong><\/div>\n

\u4e8b\u52a1\u6027\u6570\u636e\u5b57\u5178\uff0c\u5b8c\u5168\u8131\u79bb\u4e86 MyISAM \u5b58\u50a8\u5f15\u64ce<\/strong><\/p>\n

\u771f\u6b63\u5c06\u6570\u636e\u5b57\u5178\u653e\u5230\u4e86 InnoDB \u4e2d\u7684\u4e00\u4e9b\u8868\u4e2d\uff0c\u4ece\u6b64\u4e0d\u518d\u9700\u8981 FRM\u3001TRG\u3001PAR \u6587\u4ef6\u5566\uff01Information Schema \u73b0\u5728\u4ee5\u6570\u636e\u5b57\u5178\u8868\u7684\u4e00\u4e2a\u89c6\u56fe\u51fa\u73b0\u3002\u539f\u5219\u4e0a\u53ef\u4ee5\u5b8c\u5168\u4e0d\u9700\u8981 MyISAM \u6570\u636e\u8868\u7c7b\u578b\u4e86\uff0c\u6240\u6709\u7684\u7cfb\u7edf\u8868\u90fd\u53ef\u4ee5\u653e\u5230 InnoDB \u4e4b\u4e2d\u3002<\/p>\n

SQL \u89d2\u8272<\/strong><\/p>\n

\u89d2\u8272\u662f\u4e00\u7cfb\u5217\u6743\u9650\u7684\u96c6\u5408\u3002\u53ef\u4ee5\u521b\u5efa\u89d2\u8272\uff0c\u7ed9\u67d0\u4e2a\u7528\u6237\u6388\u4e88\u548c\u53bb\u9664\u89d2\u8272\u3002\u8fd9\u5bf9\u4e8e\u6743\u9650\u7ba1\u7406\u5f88\u65b9\u4fbf\u3002<\/p>\n

utf8mb4 \u5b57\u7b26\u96c6\u5c06\u6210\u4e3a\u9ed8\u8ba4\u5b57\u7b26\u96c6\uff0c\u5e76\u652f\u6301 Unicode 9<\/strong><\/p>\n

\u9ed8\u8ba4\u5b57\u7b26\u96c6\u5c06\u4ecelatin1\u6539\u4e3autf8mb4\uff0c\u9ed8\u8ba4\u5b9a\u5e8f\uff08collation\uff09\u5c06\u4ecelatin1_swedish_ci\u00a0\u6539\u4e3autf8mb4_800_ci_ai\u3002<\/p>\n

\u4e0d\u53ef\u89c1\u7d22\u5f15<\/strong><\/p>\n

\u53ef\u4ee5\u5c06\u4e00\u4e9b\u7d22\u5f15\u8bbe\u7f6e\u4e3a\u4e0d\u53ef\u89c1\uff0c\u8fd9\u6837 SQL \u4f18\u5316\u5668\u5c31\u4e0d\u4f1a\u7528\u5230\u5b83\uff0c\u4f46\u662f\u5b83\u4f1a\u7ee7\u7eed\u5728\u540e\u53f0\u4fdd\u6301\u66f4\u65b0\u3002\u5f53\u6709\u9700\u8981\u65f6\uff0c\u53ef\u4ee5\u968f\u65f6\u6062\u590d\u53ef\u89c1\u3002<\/p>\n

\u5bf9\u4e8c\u8fdb\u5236\u6570\u636e\u53ef\u4ee5\u8fdb\u884c\u4f4d\u64cd\u4f5c<\/strong><\/p>\n

\u4e0d\u4ec5\u4ec5\u53ef\u4ee5\u5bf9BIGINT\u8fdb\u884c\u4f4d\u64cd\u4f5c\uff0c\u4ece 8.0 \u5f00\u59cb\u4e5f\u652f\u6301\u5bf9[VAR]BINARY\/[TINY|MEDIUM|LONG]BLOB\u8fdb\u884c\u4f4d\u64cd\u4f5c\u4e86\u3002<\/p>\n

\u6539\u8fdb\u4e86\u5bf9 IPv6 \u548c UUID \u7684\u64cd\u4f5c<\/strong><\/p>\n

INET6_ATON()\u548cINET6_NTOA()\u73b0\u5728\u53ef\u4ee5\u8fdb\u884c\u4f4d\u64cd\u4f5c\u4e86\uff0c\u56e0\u4e3aINET6_ATON()\u73b0\u5728\u8fd4\u56de\u7684\u662fVARBINARY(16)\u6570\u636e\u7c7b\u578b\uff08128 \u4f4d\uff09\u3002\u6539\u8fdb\u4e86 UUID \u64cd\u4f5c\uff0c\u5f15\u5165\u4e86\u4e09\u4e2a\u65b0\u7684\u51fd\u6570UUID_TO_BIN(),\u00a0BIN_TO_UUID()\u548cIS_UUID()\u3002MySQL \u5e76\u6ca1\u6709\u7279\u6b8a\u7684 IPv6 \u548c UUID \u6570\u636e\u7c7b\u578b\uff0c\u800c\u662f\u4ee5VARBINARY(16)\u6570\u636e\u7c7b\u578b\u4fdd\u5b58\u7684\u3002<\/p>\n

\u6301\u7eed\u6027\u7684\u5168\u5c40\u53d8\u91cf<\/strong><\/p>\n

\u53ef\u4ee5\u7528SET PERSIST\u6765\u8bbe\u7f6e\u6301\u4e45\u6027\u7684\u5168\u5c40\u53d8\u91cf\uff0c\u5373\u4fbf\u670d\u52a1\u5668\u91cd\u542f\u4e5f\u4f1a\u4fdd\u6301\u4e0b\u6765\u3002<\/p>\n

\u6027\u80fd\u6570\u636e\u5e93\uff08Performance Schema\uff09\u7684\u6539\u8fdb<\/strong><\/p>\n

\u6bd4\u5982\u5bf9\u6027\u80fd\u6570\u636e\u5e93\u589e\u52a0\u4e86 100 \u591a\u4e2a\u7d22\u5f15\uff0c\u53ef\u4ee5\u68c0\u7d22\u66f4\u5feb\u3002<\/p>\n

\u91cd\u6784 SQL \u5206\u6790\u5668<\/strong><\/p>\n

\u6301\u7eed\u4e0d\u65ad\u7684\u9010\u6b65\u6539\u8fdb SQL \u5206\u6790\u5668\u3002\u65e7\u7684\u5206\u6790\u5668\u7531\u4e8e\u5176\u8bed\u6cd5\u590d\u6742\u6027\u548c\u81ea\u9876\u5411\u4e0b\u7684\u5206\u6790\u65b9\u5f0f\u4ece\u800c\u6709\u4e25\u91cd\u7684\u9650\u5236\uff0c\u5bfc\u81f4\u96be\u4ee5\u7ef4\u62a4\u548c\u6269\u5c55\u3002<\/p>\n

\u6210\u672c\u6a21\u578b<\/strong><\/p>\n

InnoDB \u7f13\u51b2\u533a\u73b0\u5728\u53ef\u4ee5\u4f30\u7b97\u4e3b\u5185\u5b58\u7f13\u5b58\u533a\u4e2d\u7684\u6709\u591a\u5c11\u8868\u548c\u7d22\u5f15\uff0c\u8fd9\u53ef\u4ee5\u8ba9\u4f18\u5316\u5668\u9009\u62e9\u8bbf\u95ee\u65b9\u5f0f\u65f6\u77e5\u9053\u6570\u636e\u662f\u5426\u53ef\u4ee5\u5b58\u50a8\u5728\u5185\u5b58\u4e2d\u8fd8\u662f\u5fc5\u987b\u5b58\u50a8\u5230\u78c1\u76d8\u4e0a\u3002<\/p>\n

\u76f4\u65b9\u56fe\uff08Histograms\uff09<\/strong><\/p>\n

\u901a\u8fc7\u4f7f\u7528\u76f4\u65b9\u56fe\uff0c\u7528\u6237\u6216 DBA \u53ef\u4ee5\u5bf9\u6570\u636e\u5206\u5e03\u8fdb\u884c\u7edf\u8ba1\uff0c\u8fd9\u53ef\u4ee5\u7528\u4e8e\u67e5\u8be2\u4f18\u5316\u4ee5\u5bfb\u627e\u4f18\u5316\u7684\u67e5\u8be2\u65b9\u6848\u3002<\/p>\n

\u6539\u8fdb\u626b\u63cf\u6027\u80fd<\/strong><\/p>\n

\u6539\u8fdb\u4e86 InnoDB \u8303\u56f4\u67e5\u8be2\u7684\u6027\u80fd\uff0c\u53ef\u63d0\u5347\u5168\u8868\u67e5\u8be2\u548c\u8303\u56f4\u67e5\u8be2\u00a05-20% \u7684\u6027\u80fd\u3002<\/p>\n

\u91cd\u6784 BLOB<\/strong><\/p>\n

\u91cd\u6784 BLOB \u52a0\u901f\u4e86\u7247\u6bb5\u8bfb\u53d6\/\u66f4\u65b0\u64cd\u4f5c\uff0c\u53ef\u4ee5\u52a0\u901f JSON \u6570\u636e\u7684\u64cd\u4f5c\u3002<\/p>\n

\u6301\u4e45\u5316\u81ea\u589e\u503c<\/strong><\/p>\n

InnoDB \u4f1a\u6301\u4e45\u5316\u4fdd\u6301\u81ea\u589e\u5e8f\u5217\u7684\u6700\u5927\u503c\u5230 redo \u65e5\u5fd7\u4e2d\u3002\u8fd9\u4e2a\u6539\u8fdb\u8fd8\u4fee\u590d\u4e86\u4e00\u4e2a\u975e\u5e38\u8001\u7684 199 \u53f7 bug\u3002<\/p>\n

\u4e34\u65f6\u8868<\/strong><\/p>\n

\u53d6\u6d88\u5bf9\u538b\u7f29\u4e34\u65f6\u8868\u7684\u652f\u6301\uff0c\u5e76\u5b58\u50a8\u4e34\u65f6\u8868\u7684\u5143\u6570\u636e\u5230\u5185\u5b58\u4e2d\u3002<\/p>\n

\u76ee\u524d 8.0.0 \u8fd8\u662f\u5f00\u53d1\u7248\u672c\uff0c\u5982\u679c\u4f60\u5e0c\u671b\u4f53\u9a8c\u548c\u6d4b\u8bd5\u6700\u65b0\u7279\u6027\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u5404\u4e2a\u5e73\u53f0\u7684\u5b89\u88c5\u5305\u3002\u4e0d\u8fc7\uff0cMySQL \u8f6f\u4ef6\u5305\u662f\u8d8a\u6765\u8d8a\u5927\u4e86\uff0cLinux \u5e73\u53f0\u4e0a\u7684\u4e8c\u8fdb\u5236\u6253\u5305\u540e\u5c31\u5c06\u8fd1\u6709 1 GB\u3002\u5982\u679c\u5728\u4ea7\u54c1\u73af\u5883\u4e2d\u4f7f\u7528\uff0c\u5728 8.0 \u6ca1\u6709\u8fdb\u5165\u7a33\u5b9a\u7248\u672c\u4e4b\u524d\uff0c\u8bf7\u7ee7\u7eed\u4f7f\u7528 5.7 \u7cfb\u5217\uff0c\u5f53\u524d\u6700\u65b0\u7684\u7248\u672c\u662f 5.7.15 GA \u7248\u672c\u2014\u2014\u8fd9\u53ea\u6709 600 M \u591a\u3002<\/p>\n

\u6700\u65b0\u7684\u6e90\u4ee3\u7801\u653e\u5728GitHub\u4e0a\uff0c\u611f\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u53bb\u770b\u770b\uff0c\u5176\u4e2d\u6709\u4e0d\u5c11\u662f\u4e2d\u56fd\u4eba\u7684\u8d21\u732e\u3002<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-7774-1.html<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1attp:\/\/lrxjmw.cn\/mysql-8-0.html<\/a>\u7f16\u8f91\u5458\uff1a\u90ed\u5efa\u9e4f\uff0c\u5ba1\u6838\u5458\uff1a\u5f20\u5b8f\u5b87<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

MySQL \u5f00\u53d1\u56e2\u961f\u4e8e 12 \u65e5\u5ba3\u5e03 MySQL 8.0.0 \u5f00\u53d1\u91cc\u7a0b\u7891\u7248\u672c\uff08DMR\uff09\u53d1\u5e03\uff01\u53ef\u80fd\u6709\u4eba\u4f1a\u60ca\u5947 MySQL \u4e3a\u4f55\u4ece 5.x \u4e00\u4e0b\u8df3\u8dc3\u5230\u4e86 8.0\u3002\u4e8b\u5b9e\u4e0a\uff0cMySQL 5.x \u7cfb\u5217\u5df2\u7ecf\u5ef6\u7eed\u4e86\u5f88\u591a\u5e74\uff0c\u4ece\u88ab Oracle \u6536\u8d2d\u4e4b\u524d\u5c31\u662f 5.1\uff0c\u800c\u6536\u8d2d\u4e4b\u540e\u4e00\u76f4\u7ef4\u6301\u5728 5.x\uff0c\u6bd4\u5982 5.5\uff0c5.6\uff0c5.7 \u7b49\u7b49\u3002\u5176\u5b9e\uff0c\u5982\u679c\u6309\u7167\u539f\u672c\u7684\u53d1\u5e03\u8282\u594f\uff0c\u53ef\u4ee5\u628a 5.6.x \u5f53\u6210 6.x\uff0c5.7.x \u5f53\u6210 7.x\u3002\u6240\u4ee5\uff0c\u53ea\u662f\u6362\u4e86\u7248\u672c\u547d\u540d\u65b9\u5f0f\u800c\u5df2\u3002<\/p>\n","protected":false},"author":323,"featured_media":44512,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-31420","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/31420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=31420"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/31420\/revisions"}],"predecessor-version":[{"id":267992,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/31420\/revisions\/267992"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/44512"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=31420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=31420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=31420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}