﻿{"id":23869,"date":"2024-01-20T10:33:58","date_gmt":"2024-01-20T02:33:58","guid":{"rendered":"https:\/\/www.linuxmi.com\/?p=23869"},"modified":"2024-01-20T10:33:58","modified_gmt":"2024-01-20T02:33:58","slug":"mysql-8-3","status":"publish","type":"post","link":"https:\/\/www.linuxmi.com\/mysql-8-3.html","title":{"rendered":"MySQL 8.3 \u53d1\u5e03\uff1a\u5168\u65b0\u7279\u6027\u4e0e\u4f18\u5316\u63d0\u5347\u6570\u636e\u5e93\u64cd\u4f5c\u6548\u7387"},"content":{"rendered":"<p><em><strong>MySQL 8.3 \u66f4\u65b0\uff1a\u7528\u4e8e\u4e8b\u52a1\u5206\u7ec4\u7684\u6807\u8bb0 GTID\u3001\u589e\u5f3a\u7684 JSON EXPLAIN \u683c\u5f0f\u3001\u91cd\u5927\u5220\u9664\u7b49\u3002<\/strong><\/em><\/p>\n<p>MySQL\uff0c\u5e7f\u6cdb\u4f7f\u7528\u7684\u5f00\u6e90\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff0c\u63a8\u51fa\u4e86\u6700\u65b0\u7248\u672cMySQL 8.3\u3002\u5b83\u5f15\u5165\u4e86\u4e00\u4e9b\u65b0\u529f\u80fd\u548c\u4e00\u4e9b\u79fb\u9664\u64cd\u4f5c\uff0c\u65e8\u5728\u7b80\u5316\u6570\u636e\u5e93\u64cd\u4f5c\u3002\u8ba9\u6211\u4eec\u6765\u770b\u770b\u5176\u4e2d\u7684\u4eae\u70b9\u3002<\/p>\n<h2><strong>MySQL 8.3\u7684\u65b0\u7279\u6027<\/strong><\/h2>\n<p><strong>\u5e26\u6709\u6807\u8bb0\u7684GTID\u590d\u5236<\/strong><\/p>\n<p>MySQL 8.3\u7684\u4e00\u4e2a\u663e\u8457\u7279\u70b9\u662f\u5728MySQL\u590d\u5236\u548c\u7ec4\u590d\u5236\u4e2d\u5f15\u5165\u4e86\u5e26\u6709\u6807\u8bb0\u7684\u5168\u5c40\u4e8b\u52a1\u6807\u8bc6\u7b26\uff08GTID\uff09\u3002\u8fd9\u4e00\u589e\u5f3a\u529f\u80fd\u5141\u8bb8\u5bf9\u4e8b\u52a1\u96c6\u8fdb\u884c\u5206\u7ec4\u548c\u8f7b\u677e\u8bc6\u522b\u3002<\/p>\n<p>\u65b0\u7684GTID\u683c\u5f0f\u4e3a\u201cUUID:TAG:NUMBER\u201d\uff0c\u4e3a\u4e0e\u7279\u5b9a\u4e8b\u52a1\u7ec4\u5173\u8054\u7684GTID\u63d0\u4f9b\u4e86\u552f\u4e00\u547d\u540d\u3002\u901a\u8fc7GTID\u6bd4\u8f83\uff0c\u7528\u6237\u53ef\u4ee5\u533a\u5206\u6570\u636e\u548c\u7ba1\u7406\u64cd\u4f5c\uff0c\u63d0\u9ad8\u4e86\u590d\u5236\u6548\u7387\u548c\u7ec4\u7ec7\u6027\u3002<\/p>\n<p>\u57fa\u4e8e\u6b64\uff0c\u8be5\u7248\u672c\u5f15\u5165\u4e86\u4e00\u4e2a\u65b0\u7684\u7279\u6743\uff0c\u201cTRANSACTION_GTID_TAG\u201d\uff0c\u7528\u4e8e\u8bbe\u7f6eGTID\u503c\uff0c\u5141\u8bb8\u6570\u636e\u5e93\u7ba1\u7406\u5458\u63a7\u5236\u8c01\u53ef\u4ee5\u5206\u914dGTID\uff0c\u8fdb\u4e00\u6b65\u4f18\u5316\u4e8b\u52a1\u7ba1\u7406\u3002<\/p>\n<p><strong>EXPLAIN\u4e2d\u7684JSON\u683c\u5f0f\u7248\u672c\u63a7\u5236<\/strong><\/p>\n<p>MySQL 8.3\u5f15\u5165\u4e86\u4e00\u4e2a\u670d\u52a1\u5668\u7cfb\u7edf\u53d8\u91cf\uff0c\u201cexplain_json_format_version\u201d\uff0c\u5141\u8bb8\u7528\u6237\u5728\u201cEXPLAIN FORMAT=JSON\u201d\u8bed\u53e5\u4e2d\u9009\u62e9\u4e24\u4e2a\u7248\u672c\u7684JSON\u8f93\u51fa\u683c\u5f0f\u3002\u6b64\u529f\u80fd\u786e\u4fdd\u4e0eMySQL Optimizer\u672a\u6765\u7248\u672c\u66f4\u597d\u7684\u517c\u5bb9\u6027\uff0c\u63d0\u9ad8\u4e86\u957f\u671f\u53ef\u7528\u6027\u3002<\/p>\n<p><strong>\u7ebf\u7a0b\u6c60\u63d2\u4ef6\u589e\u5f3a<\/strong><\/p>\n<p>\u7ebf\u7a0b\u6c60\u63d2\u4ef6\u73b0\u5728\u5728MySQL\u6027\u80fd\u6a21\u5f0f\u4e2d\u5305\u542b\u4e86\u989d\u5916\u7684\u4fe1\u606f\u3002\u65b0\u7684\u8868\u548c\u5217\u63d0\u4f9b\u4e86\u5bf9\u7ebf\u7a0b\u6c60\u8fde\u63a5\u548c\u72b6\u6001\u7684\u5168\u9762\u6d1e\u5bdf\uff0c\u6709\u52a9\u4e8e\u66f4\u597d\u5730\u8fdb\u884c\u6027\u80fd\u5206\u6790\u3002<\/p>\n<p><strong>\u5176\u4ed6\u503c\u5f97\u6ce8\u610f\u7684\u53d8\u5316<\/strong><\/p>\n<p>&#8216;binlog_transaction_dependency_tracking&#8217;\u7cfb\u7edf\u53d8\u91cf\u7684\u9ed8\u8ba4\u503c\u5df2\u66f4\u6539\u4e3a&#8217;WRITESET&#8217;\uff0c\u6807\u5fd7\u7740\u9010\u6e10\u6dd8\u6c70\u8be5\u529f\u80fd\u3002<\/p>\n<p>\u8be5\u7248\u672c\u8fd8\u5f15\u5165\u4e86&#8217;WITH_LD&#8217; CMake\u9009\u9879\uff0c\u5141\u8bb8\u7528\u6237\u6307\u5b9a\u5176\u9009\u62e9\u7684\u94fe\u63a5\u5668\uff0c\u5e76\u5bf9MySQL Enterprise Data Masking and De-Identification\u8fdb\u884c\u4e86\u589e\u5f3a\u3002<\/p>\n<p>\u6700\u540e\uff0cMySQL\u6027\u80fd\u6a21\u5f0f\u4e2d\u589e\u52a0\u4e86\u8be6\u7ec6\u7684\u7ebf\u7a0b\u6c60\u8fde\u63a5\u4fe1\u606f\uff0c\u8fd9\u5bf9\u6027\u80fd\u8c03\u4f18\u975e\u5e38\u6709\u4ef7\u503c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23871 aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2024\/01\/mysql-8-3.png\" alt=\"\" width=\"1920\" height=\"1080\" \/><\/p>\n<p style=\"text-align: center;\">Ubuntu 22.04 \u4e2d\u7684 MySQL 8.3<\/p>\n<p><strong>MySQL 8.3\u79fb\u9664\u4e00\u4e9b\u529f\u80fd\u548c\u51fd\u6570\uff1a\u65b0\u65f6\u4ee3\u5373\u5c06\u6765\u4e34<\/strong><\/p>\n<p>MySQL 8.3\u8fd8\u5220\u9664\u4e86\u4e00\u4e9b\u529f\u80fd\u548c\u51fd\u6570\uff0c\u5f3a\u8c03\u4e86\u5411\u66f4\u9ad8\u6548\u548c\u73b0\u4ee3\u6570\u636e\u5e93\u5b9e\u8df5\u7684\u8f6c\u53d8\u3002<\/p>\n<p>\u5df2\u5220\u9664\u4e86\u4e00\u4e9b\u5173\u952e\u7684C API\u51fd\u6570\uff0c\u5982mysql_kill()\u3001mysql_list_fields()\u7b49\uff0c\u540c\u65f6\u5efa\u8bae\u4f7f\u7528\u66ff\u4ee3\u65b9\u6cd5\u6267\u884c\u7c7b\u4f3c\u7684\u64cd\u4f5c\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u201cFLUSH HOSTS\u201d\u8bed\u53e5\u7528\u4e8e\u6e05\u9664\u4e3b\u673a\u540d\u7684\u5185\u90e8\u7f13\u5b58\uff0c\u5148\u524d\u88ab\u5f03\u7528\uff0c\u73b0\u5728\u5df2\u88ab\u79fb\u9664\u3002\u7528\u6237\u88ab\u5f15\u5bfc\u4f7f\u7528\u66ff\u4ee3\u65b9\u6cd5\u6765\u6e05\u9664\u4e3b\u673a\u7f13\u5b58\u3002<\/p>\n<p>\u5404\u79cd\u590d\u5236\u548c\u670d\u52a1\u5668\u9009\u9879\uff0c\u5982\u201c&#8211;slave-rows-search-algorithms\u201d\u548c\u201c&#8211;log_bin_use_v1_events\u201d\u7b49\uff0c\u4e5f\u5df2\u88ab\u5220\u9664\uff0c\u5f15\u5bfc\u7528\u6237\u8f6c\u5411\u66f4\u9ad8\u6548\u548c\u73b0\u4ee3\u7684\u505a\u6cd5\u3002<\/p>\n<p>\u6700\u540e\uff0cMySQL 8.3\u9650\u5236\u4e86\u7528\u4e8e\u51b2\u7a81\u68c0\u67e5\u7684\u5199\u5165\u96c6\u5728\u57fa\u4e8e\u884c\u7684\u8bb0\u5f55\u4e2d\u7684\u4f7f\u7528\uff0c\u8868\u660e\u4e86\u5bf9\u4e8c\u8fdb\u5236\u65e5\u5fd7\u4e8b\u52a1\u4f9d\u8d56\u8ddf\u8e2a\u7684\u7cbe\u7ec6\u5316\u5904\u7406\u3002<\/p>\n<p>\u9274\u4e8e\u6240\u6709\u8fd9\u4e9b\u53d8\u5316\uff0c\u5efa\u8bae\u7528\u6237\u719f\u6089\u8fd9\u4e9b\u53d8\u5316\uff0c\u4ee5\u5145\u5206\u53d1\u6325\u6570\u636e\u5e93\u7ba1\u7406\u4efb\u52a1\u4e2d\u6570\u636e\u5e93\u7684\u6f5c\u529b\u3002<\/p>\n<p>\u67e5\u770b<a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.3\/en\/mysql-nutshell.html\" target=\"_blank\" rel=\"nofollow noopener\">\u4e3b\u8981\u53d8\u66f4<\/a>\u6216<a href=\"https:\/\/dev.mysql.com\/doc\/relnotes\/mysql\/8.3\/en\/news-8-3-0.html\" target=\"_blank\" rel=\"nofollow noopener\">\u8be6\u7ec6\u5217\u8868<\/a>\u4ee5\u83b7\u53d6\u66f4\u6df1\u5165\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL 8.3 \u66f4\u65b0\uff1a\u7528\u4e8e\u4e8b\u52a1\u5206\u7ec4\u7684\u6807\u8bb0 GTID\u3001\u589e\u5f3a\u7684 JSON EXPLAIN \u683c\u5f0f\u3001\u91cd\u5927 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[161,2],"tags":[160],"class_list":["post-23869","post","type-post","status-publish","format-standard","hentry","category-mysql","category-zixun","tag-mysql"],"aioseo_notices":[],"views":409,"_links":{"self":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/23869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/comments?post=23869"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/23869\/revisions"}],"predecessor-version":[{"id":23872,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/23869\/revisions\/23872"}],"wp:attachment":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/media?parent=23869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/categories?post=23869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/tags?post=23869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}