添加链接
注册
登录
link管理
链接快照平台
输入网页链接,自动生成快照
标签化管理网页链接
相关文章推荐
刀枪不入的感冒药
·
TiDB ...
·
5 天前
·
坐怀不乱的生菜
·
懲教知多啲
·
2 月前
·
另类的热水瓶
·
没房也可以上公办!在广州这种情况!可网上申报 ...
·
2 月前
·
乐观的便当
·
MacOS python3 安装 ...
·
4 月前
·
体贴的红酒
·
Kafka Consumer dies ...
·
4 月前
·
玩足球的手术刀
·
Visual Studio Code ...
·
11 月前
·
link管理
›
TiDB 配置文件描述 | PingCAP 归档文档站
pingcap
归档日志
tidb
https://docs-archive.pingcap.com/zh/tidb/v7.2/tidb-configuration-file/
腹黑的爆米花
11 月前
</noscript><div id="___gatsby"><div style="outline:none" tabindex="-1" id="gatsby-focus-wrapper"><style data-emotion="css 6ko3zs">.css-6ko3zs{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;box-sizing:border-box;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;position:fixed;z-index:1100;top:0;left:auto;right:0;background-color:#1976d2;color:#fff;background-color:#f9f9f9;border-bottom:1px solid #e5e5e5;box-shadow:0px 1px 6px rgba(0, 0, 0, 0.08);height:5rem;}@media print{.css-6ko3zs{}}</style><style data-emotion="css foju0o">.css-foju0o{background-color:#fff;color:rgba(0, 0, 0, 0.87);-webkit-transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;box-shadow:0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;box-sizing:border-box;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;position:fixed;z-index:1100;top:0;left:auto;right:0;background-color:#1976d2;color:#fff;background-color:#f9f9f9;border-bottom:1px solid #e5e5e5;box-shadow:0px 1px 6px rgba(0, 0, 0, 0.08);height:5rem;}@media print{.css-foju0o{}}</style><header class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation4 MuiAppBar-root MuiAppBar-colorPrimary MuiAppBar-positionFixed mui-fixed css-foju0o"><style data-emotion="css 1xw2ef0">.css-1xw2ef0{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:16px;padding-right:16px;min-height:56px;height:100%;}@media (min-width:600px){.css-1xw2ef0{padding-left:24px;padding-right:24px;}}@media (min-width:0px){@media (orientation: landscape){.css-1xw2ef0{min-height:48px;}}}@media (min-width:600px){.css-1xw2ef0{min-height:64px;}}@media (min-width:900px){.css-1xw2ef0{padding-left:2rem;padding-right:2rem;}}</style><div class="MuiToolbar-root MuiToolbar-gutters MuiToolbar-regular css-1xw2ef0"><style data-emotion="css 16bbyrv">.css-16bbyrv{text-align:center;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:1.5rem;padding:8px;border-radius:50%;overflow:visible;color:rgba(0, 0, 0, 0.54);-webkit-transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;}.css-16bbyrv:hover{background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-16bbyrv:hover{background-color:transparent;}}.css-16bbyrv.Mui-disabled{background-color:transparent;color:rgba(0, 0, 0, 0.26);}@media (min-width:1200px){.css-16bbyrv{;}}</style><style data-emotion="css iuftj9">.css-iuftj9{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-align:center;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:1.5rem;padding:8px;border-radius:50%;overflow:visible;color:rgba(0, 0, 0, 0.54);-webkit-transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;}.css-iuftj9::-moz-focus-inner{border-style:none;}.css-iuftj9.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-iuftj9{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-iuftj9:hover{background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-iuftj9:hover{background-color:transparent;}}.css-iuftj9.Mui-disabled{background-color:transparent;color:rgba(0, 0, 0, 0.26);}@media (min-width:1200px){.css-iuftj9{;}}</style><button class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-iuftj9" tabindex="0" type="button" aria-label="menu"><style data-emotion="css vubbuv">.css-vubbuv{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="MenuIcon"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg></button><style data-emotion="css a3xyjy">.css-a3xyjy{z-index:1200;}</style><style data-emotion="css 13tqxrv">@media (min-width:0px){.css-13tqxrv{;}}@media (min-width:900px){.css-13tqxrv{display:block;}}</style><div class="MuiBox-root css-13tqxrv"><style data-emotion="css tx8jsd">.css-tx8jsd{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;}</style><a class="MuiTypography-root MuiTypography-body1 css-tx8jsd" target="_blank" href="https://cn.pingcap.com/" style="text-decoration:none"><style data-emotion="css uz5bjn">.css-uz5bjn{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;width:6.75rem;}@media (min-width:0px){.css-uz5bjn{;}}@media (min-width:600px){.css-uz5bjn{display:block;}}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-uz5bjn" focusable="false" aria-hidden="true" viewbox="0 0 769.89 203.08"><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path fill="#082265" d="M100.11,47.34l-88-25.1A9.5,9.5,0,0,0,0,31.38v162.2a9.51,9.51,0,0,0,9.48,9.5,9.35,9.35,0,0,0,2.22-.26l88-21h0a9.48,9.48,0,0,0,7.3-9.25V56.48A9.54,9.54,0,0,0,100.11,47.34Z"/><path fill="#00aeef" d="M160.05,41.57a9.55,9.55,0,0,0-6.88-9.11L41.16.37A9.5,9.5,0,0,0,29,9.51V132.59a9.47,9.47,0,0,0,11.72,9.23l112.14-27a9.47,9.47,0,0,0,7.28-9.26Z"/><path fill="#303eab" d="M100.11,47.34,29,27.07V132.59a9.47,9.47,0,0,0,11.72,9.23L107,125.88V56.48A9.54,9.54,0,0,0,100.11,47.34Z"/><path fill="#082265" d="M576.1,126.26h0l-.23.37a40.12,40.12,0,0,1-13.72,13.09,36.62,36.62,0,0,1-18.78,5.43c-10.94,0-20.51-4.36-28.42-13a43.82,43.82,0,0,1-11.37-31,43.09,43.09,0,0,1,11.74-29.38c7.62-8.17,16.81-12.31,27.3-12.31,14.37-.13,25.2,5.8,33.13,18.13L576,78h.22l9.33-5.77a51.65,51.65,0,0,0-15.42-16.39,48.17,48.17,0,0,0-26.73-8.09A46.85,46.85,0,0,0,507.66,63c-9.94,10.23-15,23.28-15,38.77,0,15,5,28.08,14.84,38.9,9.81,10.64,21.69,16,35.33,16h.51c17.92-.37,32.69-9.06,42.11-24.6Z"/><polygon fill="#082265" points="645.84 49.09 633.16 49.09 586.01 154.63 601.05 154.63 615.63 119.55 615.65 119.55 620.8 108.59 620.78 108.59 639.76 64.05 658.36 108.59 631.66 108.59 626.79 119.55 662.69 119.55 677.4 154.63 690.66 154.63 645.84 49.09"/><path fill="#082265" d="M759.63,58.75c-7-6.32-15.81-9.52-26.18-9.52H699.3v105.4h12.44V113.34h0V102.25h0V60.59H734a24.73,24.73,0,0,1,16.22,5.63,18.12,18.12,0,0,1,7.37,14c.39,6.62-1.77,11.88-6.61,16.07a23.43,23.43,0,0,1-16.31,6H721.77v11.09h14.91a33.34,33.34,0,0,0,23.23-8.85,29,29,0,0,0,10-21.91C770,72.89,766.58,64.87,759.63,58.75Z"/><rect fill="#082265" x="296.25" y="51.17" width="12.44" height="12.44"/><rect fill="#082265" x="296.25" y="79.04" width="12.44" height="75.74"/><path fill="#082265" d="M483.63,147.21V114.69a38.6,38.6,0,0,0-12.25-29.2c-8.22-8.22-18.1-12.27-29.35-12a39.17,39.17,0,0,0-27.82,12.54,40.08,40.08,0,0,0-11.29,28.49,41,41,0,0,0,12.24,29.59c8.19,8.18,18,12.12,29.22,11.71a38.78,38.78,0,0,0,27.48-12.33v5.17m0,0c0,6.88-2.73,12.89-8.11,17.88a27.1,27.1,0,0,1-19,7.73,27.83,27.83,0,0,1-16.93-5.64,25.92,25.92,0,0,1-9-10.54l-9.52,5.5a36.63,36.63,0,0,0,9.94,12c6.6,5.25,14.75,8.13,24.23,8.54.59,0,1.18,0,1.77,0a40.89,40.89,0,0,0,26-9.25c8.17-6.52,12.32-14.86,12.32-24.8v-2.95m-12-31.74a29.23,29.23,0,0,1-8.41,20.22,25.68,25.68,0,0,1-19.5,8.38,27.3,27.3,0,0,1-20.2-8.39,28.22,28.22,0,0,1-8.66-20.34,28.66,28.66,0,0,1,7.88-20.61,27.21,27.21,0,0,1,19.53-9.45c.51,0,1,0,1.5,0,7.61,0,14,2.85,19.45,8.69A28.51,28.51,0,0,1,471.59,115.47Z"/><path fill="#082265" d="M274.1,58.75c-7-6.32-15.81-9.52-26.19-9.52H213.76v105.4h12.45V113.34h0V102.25h0V60.59h22.24a24.73,24.73,0,0,1,16.23,5.63,18.12,18.12,0,0,1,7.37,14c.39,6.62-1.77,11.88-6.61,16.07a23.43,23.43,0,0,1-16.31,6H236.24v11.09h14.91a33.34,33.34,0,0,0,23.23-8.85,29,29,0,0,0,10-21.91C284.5,72.89,281.05,64.87,274.1,58.75Z"/><path fill="#082265" d="M357.54,74.41c-9.92,0-18.3,3.43-24.94,10.2s-9.91,15.24-9.91,25.33v44.53h12V108.86a21.82,21.82,0,0,1,6.75-16.1A22.08,22.08,0,0,1,357.54,86a21.49,21.49,0,0,1,15.82,6.75,21.86,21.86,0,0,1,6.89,16.1v45.61h12V109.94c0-10.09-3.34-18.61-9.92-25.33A33.47,33.47,0,0,0,357.54,74.41Z"/></g></g></svg></a></div><style data-emotion="css 5qlh60">.css-5qlh60{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;padding-left:2rem;height:100%;}.css-5qlh60>:not(style)+:not(style){margin:0;margin-left:24px;}@media (min-width:0px){.css-5qlh60{;}}@media (min-width:900px){.css-5qlh60{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}}</style><div class="css-5qlh60"><style data-emotion="css kiou0g">.css-kiou0g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-top:0.25rem;padding-bottom:0.25rem;}</style><div class="MuiBox-root css-kiou0g"><a style="text-decoration:none" hreflang="zh" href="/zh/"><style data-emotion="css 2jgwiy">.css-2jgwiy{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:#282a36;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,"IBM Plex Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji";display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;}</style><div class="MuiTypography-root MuiTypography-body1 css-2jgwiy">归档文档中心</div></a></div><div class="MuiBox-root css-kiou0g"><a style="text-decoration:none" hreflang="zh" href="/zh/tidb/v2.1"><div class="MuiTypography-root MuiTypography-body1 css-2jgwiy">TiDB</div></a></div><div class="MuiBox-root css-kiou0g"><a class="MuiTypography-root MuiTypography-body1 css-tx8jsd" target="_blank" href="https://asktug.com/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-2jgwiy">社区</div></a></div><div class="MuiBox-root css-kiou0g"><a class="MuiTypography-root MuiTypography-body1 css-tx8jsd" target="_blank" href="https://cn.pingcap.com/contact/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-2jgwiy">联系我们</div></a></div><div class="MuiBox-root css-kiou0g"><a class="MuiTypography-root MuiTypography-body1 css-tx8jsd" target="_blank" href="https://cn.pingcap.com/product/#SelectProduct" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-2jgwiy"><style data-emotion="css xnd31y">.css-xnd31y{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:inherit;padding-top:0.5rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-xnd31y" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="DownloadIcon"><path d="M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"/></svg></div></a></div></div><style data-emotion="css 1vn3uc0">.css-1vn3uc0{color:#282a36;}@media (min-width:900px){.css-1vn3uc0{;}}</style><div class="MuiBox-root css-1vn3uc0"><style data-emotion="css btg76o">.css-btg76o{text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:6px 8px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;border-color:currentColor;box-shadow:none;}.css-btg76o:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-btg76o:hover{background-color:transparent;}}.css-btg76o.Mui-disabled{color:rgba(0, 0, 0, 0.26);}.css-btg76o:hover{box-shadow:none;}.css-btg76o.Mui-focusVisible{box-shadow:none;}.css-btg76o:active{box-shadow:none;}.css-btg76o.Mui-disabled{box-shadow:none;}</style><style data-emotion="css 1ei260h">.css-1ei260h{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:6px 8px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;border-color:currentColor;box-shadow:none;}.css-1ei260h::-moz-focus-inner{border-style:none;}.css-1ei260h.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-1ei260h{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-1ei260h:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-1ei260h:hover{background-color:transparent;}}.css-1ei260h.Mui-disabled{color:rgba(0, 0, 0, 0.26);}.css-1ei260h:hover{box-shadow:none;}.css-1ei260h.Mui-focusVisible{box-shadow:none;}.css-1ei260h:active{box-shadow:none;}.css-1ei260h.Mui-disabled{box-shadow:none;}</style><button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textInherit MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorInherit MuiButton-disableElevation css-1ei260h" tabindex="0" type="button" id="header-nav-items" aria-haspopup="true"><style data-emotion="css 6xugel">.css-6xugel{display:inherit;margin-right:8px;margin-left:-4px;}.css-6xugel>*:nth-of-type(1){font-size:20px;}</style><span class="MuiButton-startIcon MuiButton-iconSizeMedium css-6xugel"><style data-emotion="css 1x9zct">.css-1x9zct{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;width:6.75rem;height:1.5rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1x9zct" focusable="false" aria-hidden="true" viewbox="0 0 769.89 203.08"><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path fill="#082265" d="M100.11,47.34l-88-25.1A9.5,9.5,0,0,0,0,31.38v162.2a9.51,9.51,0,0,0,9.48,9.5,9.35,9.35,0,0,0,2.22-.26l88-21h0a9.48,9.48,0,0,0,7.3-9.25V56.48A9.54,9.54,0,0,0,100.11,47.34Z"/><path fill="#00aeef" d="M160.05,41.57a9.55,9.55,0,0,0-6.88-9.11L41.16.37A9.5,9.5,0,0,0,29,9.51V132.59a9.47,9.47,0,0,0,11.72,9.23l112.14-27a9.47,9.47,0,0,0,7.28-9.26Z"/><path fill="#303eab" d="M100.11,47.34,29,27.07V132.59a9.47,9.47,0,0,0,11.72,9.23L107,125.88V56.48A9.54,9.54,0,0,0,100.11,47.34Z"/><path fill="#082265" d="M576.1,126.26h0l-.23.37a40.12,40.12,0,0,1-13.72,13.09,36.62,36.62,0,0,1-18.78,5.43c-10.94,0-20.51-4.36-28.42-13a43.82,43.82,0,0,1-11.37-31,43.09,43.09,0,0,1,11.74-29.38c7.62-8.17,16.81-12.31,27.3-12.31,14.37-.13,25.2,5.8,33.13,18.13L576,78h.22l9.33-5.77a51.65,51.65,0,0,0-15.42-16.39,48.17,48.17,0,0,0-26.73-8.09A46.85,46.85,0,0,0,507.66,63c-9.94,10.23-15,23.28-15,38.77,0,15,5,28.08,14.84,38.9,9.81,10.64,21.69,16,35.33,16h.51c17.92-.37,32.69-9.06,42.11-24.6Z"/><polygon fill="#082265" points="645.84 49.09 633.16 49.09 586.01 154.63 601.05 154.63 615.63 119.55 615.65 119.55 620.8 108.59 620.78 108.59 639.76 64.05 658.36 108.59 631.66 108.59 626.79 119.55 662.69 119.55 677.4 154.63 690.66 154.63 645.84 49.09"/><path fill="#082265" d="M759.63,58.75c-7-6.32-15.81-9.52-26.18-9.52H699.3v105.4h12.44V113.34h0V102.25h0V60.59H734a24.73,24.73,0,0,1,16.22,5.63,18.12,18.12,0,0,1,7.37,14c.39,6.62-1.77,11.88-6.61,16.07a23.43,23.43,0,0,1-16.31,6H721.77v11.09h14.91a33.34,33.34,0,0,0,23.23-8.85,29,29,0,0,0,10-21.91C770,72.89,766.58,64.87,759.63,58.75Z"/><rect fill="#082265" x="296.25" y="51.17" width="12.44" height="12.44"/><rect fill="#082265" x="296.25" y="79.04" width="12.44" height="75.74"/><path fill="#082265" d="M483.63,147.21V114.69a38.6,38.6,0,0,0-12.25-29.2c-8.22-8.22-18.1-12.27-29.35-12a39.17,39.17,0,0,0-27.82,12.54,40.08,40.08,0,0,0-11.29,28.49,41,41,0,0,0,12.24,29.59c8.19,8.18,18,12.12,29.22,11.71a38.78,38.78,0,0,0,27.48-12.33v5.17m0,0c0,6.88-2.73,12.89-8.11,17.88a27.1,27.1,0,0,1-19,7.73,27.83,27.83,0,0,1-16.93-5.64,25.92,25.92,0,0,1-9-10.54l-9.52,5.5a36.63,36.63,0,0,0,9.94,12c6.6,5.25,14.75,8.13,24.23,8.54.59,0,1.18,0,1.77,0a40.89,40.89,0,0,0,26-9.25c8.17-6.52,12.32-14.86,12.32-24.8v-2.95m-12-31.74a29.23,29.23,0,0,1-8.41,20.22,25.68,25.68,0,0,1-19.5,8.38,27.3,27.3,0,0,1-20.2-8.39,28.22,28.22,0,0,1-8.66-20.34,28.66,28.66,0,0,1,7.88-20.61,27.21,27.21,0,0,1,19.53-9.45c.51,0,1,0,1.5,0,7.61,0,14,2.85,19.45,8.69A28.51,28.51,0,0,1,471.59,115.47Z"/><path fill="#082265" d="M274.1,58.75c-7-6.32-15.81-9.52-26.19-9.52H213.76v105.4h12.45V113.34h0V102.25h0V60.59h22.24a24.73,24.73,0,0,1,16.23,5.63,18.12,18.12,0,0,1,7.37,14c.39,6.62-1.77,11.88-6.61,16.07a23.43,23.43,0,0,1-16.31,6H236.24v11.09h14.91a33.34,33.34,0,0,0,23.23-8.85,29,29,0,0,0,10-21.91C284.5,72.89,281.05,64.87,274.1,58.75Z"/><path fill="#082265" d="M357.54,74.41c-9.92,0-18.3,3.43-24.94,10.2s-9.91,15.24-9.91,25.33v44.53h12V108.86a21.82,21.82,0,0,1,6.75-16.1A22.08,22.08,0,0,1,357.54,86a21.49,21.49,0,0,1,15.82,6.75,21.86,21.86,0,0,1,6.89,16.1v45.61h12V109.94c0-10.09-3.34-18.61-9.92-25.33A33.47,33.47,0,0,0,357.54,74.41Z"/></g></g></svg></span><style data-emotion="css 1n4a93h">.css-1n4a93h{display:inherit;margin-right:-4px;margin-left:8px;}.css-1n4a93h>*:nth-of-type(1){font-size:20px;}</style><span class="MuiButton-endIcon MuiButton-iconSizeMedium css-1n4a93h"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="KeyboardArrowDownIcon"><path d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg></span></button></div><style data-emotion="css jnv64h">.css-jnv64h{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;margin-left:auto;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}@media (min-width:0px){.css-jnv64h>:not(style)+:not(style){margin:0;margin-left:8px;}}@media (min-width:1200px){.css-jnv64h>:not(style)+:not(style){margin:0;margin-left:24px;}}</style><div class="css-jnv64h"><style data-emotion="css 1qlh2t1">.css-1qlh2t1{color:#282a36;}</style><div class="MuiBox-root css-1qlh2t1"><style data-emotion="css 1mvsusm">.css-1mvsusm{text-align:center;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:1.5rem;padding:8px;border-radius:50%;overflow:visible;color:rgba(0, 0, 0, 0.54);-webkit-transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;}.css-1mvsusm:hover{background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-1mvsusm:hover{background-color:transparent;}}.css-1mvsusm.Mui-disabled{background-color:transparent;color:rgba(0, 0, 0, 0.26);}@media (min-width:1200px){.css-1mvsusm{;}}</style><style data-emotion="css jwr93t">.css-jwr93t{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-align:center;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:1.5rem;padding:8px;border-radius:50%;overflow:visible;color:rgba(0, 0, 0, 0.54);-webkit-transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;}.css-jwr93t::-moz-focus-inner{border-style:none;}.css-jwr93t.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-jwr93t{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-jwr93t:hover{background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-jwr93t:hover{background-color:transparent;}}.css-jwr93t.Mui-disabled{background-color:transparent;color:rgba(0, 0, 0, 0.26);}@media (min-width:1200px){.css-jwr93t{;}}</style><button class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-jwr93t" tabindex="0" type="button"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="LanguageIcon"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"/></svg></button><style data-emotion="css t5gsfy">.css-t5gsfy{text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:6px 8px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;border-color:currentColor;box-shadow:none;}.css-t5gsfy:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-t5gsfy:hover{background-color:transparent;}}.css-t5gsfy.Mui-disabled{color:rgba(0, 0, 0, 0.26);}.css-t5gsfy:hover{box-shadow:none;}.css-t5gsfy.Mui-focusVisible{box-shadow:none;}.css-t5gsfy:active{box-shadow:none;}.css-t5gsfy.Mui-disabled{box-shadow:none;}@media (min-width:0px){.css-t5gsfy{;}}@media (min-width:1200px){.css-t5gsfy{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}}</style><style data-emotion="css 1csz7wa">.css-1csz7wa{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:6px 8px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;border-color:currentColor;box-shadow:none;}.css-1csz7wa::-moz-focus-inner{border-style:none;}.css-1csz7wa.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-1csz7wa{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-1csz7wa:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-1csz7wa:hover{background-color:transparent;}}.css-1csz7wa.Mui-disabled{color:rgba(0, 0, 0, 0.26);}.css-1csz7wa:hover{box-shadow:none;}.css-1csz7wa.Mui-focusVisible{box-shadow:none;}.css-1csz7wa:active{box-shadow:none;}.css-1csz7wa.Mui-disabled{box-shadow:none;}@media (min-width:0px){.css-1csz7wa{;}}@media (min-width:1200px){.css-1csz7wa{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}}</style><button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textInherit MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorInherit MuiButton-disableElevation css-1csz7wa" tabindex="0" type="button" id="header-lang-switch" aria-haspopup="true"><span class="MuiButton-startIcon MuiButton-iconSizeMedium css-6xugel"><style data-emotion="css 1slalk2">.css-1slalk2{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;fill:#282a36;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1slalk2" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="LanguageIcon"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"/></svg></span><style data-emotion="css 15r93eu">.css-15r93eu{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:inherit;}</style><span class="MuiTypography-root MuiTypography-body1 css-15r93eu">语言</span><span class="MuiButton-endIcon MuiButton-iconSizeMedium css-1n4a93h"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1slalk2" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="KeyboardArrowDownIcon"><path d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg></span></button></div></div></div></header><style data-emotion="css s1brf2">.css-s1brf2{margin-top:5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}</style><div class="PingCAP-Doc MuiBox-root css-s1brf2"><style data-emotion="css hboir5">.css-hboir5{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;}</style><div class="MuiBox-root css-hboir5"><style data-emotion="css 2tzg8">.css-2tzg8{width:18.75rem;border-right:1px solid #E5E4E4;}@media (min-width:0px){.css-2tzg8{;}}@media (min-width:1200px){.css-2tzg8{display:block;}}</style><aside class="MuiBox-root css-2tzg8"><style data-emotion="css 1eohm8p">.css-1eohm8p{position:-webkit-sticky;position:sticky;top:5rem;height:100%;max-height:calc(100vh - 7rem);overflow-y:auto;padding:1rem;}</style><div class="MuiBox-root css-1eohm8p"><style data-emotion="css fmyu0n">.css-fmyu0n{text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:6px 8px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:#1976d2;width:100%;height:2rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-style:solid;border-width:1px;border-color:#e5e5e5;margin-bottom:1rem;}.css-fmyu0n:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(25, 118, 210, 0.04);}@media (hover: none){.css-fmyu0n:hover{background-color:transparent;}}.css-fmyu0n.Mui-disabled{color:rgba(0, 0, 0, 0.26);}</style><style data-emotion="css 1rq233s">.css-1rq233s{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:6px 8px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:#1976d2;width:100%;height:2rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-style:solid;border-width:1px;border-color:#e5e5e5;margin-bottom:1rem;}.css-1rq233s::-moz-focus-inner{border-style:none;}.css-1rq233s.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-1rq233s{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-1rq233s:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(25, 118, 210, 0.04);}@media (hover: none){.css-1rq233s:hover{background-color:transparent;}}.css-1rq233s.Mui-disabled{color:rgba(0, 0, 0, 0.26);}</style><button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium css-1rq233s" tabindex="0" type="button" id="version-select-button" aria-haspopup="true"><style data-emotion="css 3cb5vr">.css-3cb5vr{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;padding:0 0.25rem;font-size:0.875rem;line-height:1.25rem;}</style><div class="MuiTypography-root MuiTypography-body1 css-3cb5vr">v7.2 (DMR)</div><style data-emotion="css 1n4a93h">.css-1n4a93h{display:inherit;margin-right:-4px;margin-left:8px;}.css-1n4a93h>*:nth-of-type(1){font-size:20px;}</style><span class="MuiButton-endIcon MuiButton-iconSizeMedium css-1n4a93h"><style data-emotion="css b5l66">.css-b5l66{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);height:1.5rem;width:1.5rem;fill:#999999;margin-right:0.25rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-b5l66" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></span></button><style data-emotion="css 1c58svf">.css-1c58svf .MuiPaper-root{border-radius:6px;margin-top:8px;min-width:268px;color:rgb(55, 65, 81);box-shadow:rgb(255, 255, 255) 0px 0px 0px 0px,rgba(0, 0, 0, 0.05) 0px 0px 0px 1px,rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;}.css-1c58svf .MuiPaper-root .MuiMenu-list{padding:4px 0;}.css-1c58svf .MuiPaper-root .MuiMenuItem-root .MuiSvgIcon-root{font-size:18px;color:rgba(0, 0, 0, 0.6);margin-right:12px;}.css-1c58svf .MuiPaper-root .MuiMenuItem-root:active{background-color:rgba(25, 118, 210, 0.08);}</style><style data-emotion="css yvxbj">.css-yvxbj .MuiPaper-root{border-radius:6px;margin-top:8px;min-width:268px;color:rgb(55, 65, 81);box-shadow:rgb(255, 255, 255) 0px 0px 0px 0px,rgba(0, 0, 0, 0.05) 0px 0px 0px 1px,rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;}.css-yvxbj .MuiPaper-root .MuiMenu-list{padding:4px 0;}.css-yvxbj .MuiPaper-root .MuiMenuItem-root .MuiSvgIcon-root{font-size:18px;color:rgba(0, 0, 0, 0.6);margin-right:12px;}.css-yvxbj .MuiPaper-root .MuiMenuItem-root:active{background-color:rgba(25, 118, 210, 0.08);}</style><style data-emotion="css oe3wem">.css-oe3wem .MuiPaper-root{border-radius:6px;margin-top:8px;min-width:268px;color:rgb(55, 65, 81);box-shadow:rgb(255, 255, 255) 0px 0px 0px 0px,rgba(0, 0, 0, 0.05) 0px 0px 0px 1px,rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;}.css-oe3wem .MuiPaper-root .MuiMenu-list{padding:4px 0;}.css-oe3wem .MuiPaper-root .MuiMenuItem-root .MuiSvgIcon-root{font-size:18px;color:rgba(0, 0, 0, 0.6);margin-right:12px;}.css-oe3wem .MuiPaper-root .MuiMenuItem-root:active{background-color:rgba(25, 118, 210, 0.08);}</style><style data-emotion="css 12mehxg">.css-12mehxg{padding:0;margin:0;list-style:none;outline:0;}</style><ul role="tree" id="left-nav-treeview" aria-multiselectable="false" class="MuiTreeView-root css-12mehxg" tabindex="0" aria-label="left navigation"><style data-emotion="css 1gesgke">.css-1gesgke .MuiTreeItem-content{color:#282a36;border-radius:4px;}.css-1gesgke .MuiTreeItem-content:hover{background-color:#f9f9f9;}.css-1gesgke .MuiTreeItem-content.Mui-selected,.css-1gesgke .MuiTreeItem-content.Mui-selected.Mui-focused{background-color:var(--tree-view-bg-color, #EAF6FB);color:var(--tree-view-color, #0A85C2);}.css-1gesgke .MuiTreeItem-content.Mui-selected svg.MuiTreeItem-ChevronRightIcon,.css-1gesgke .MuiTreeItem-content.Mui-selected.Mui-focused svg.MuiTreeItem-ChevronRightIcon{fill:var(--tree-view-color, #0A85C2);}.css-1gesgke .MuiTreeItem-content.Mui-focused{background-color:#f9f9f9;}.css-1gesgke .MuiTreeItem-content .MuiTreeItem-label{font-weight:inherit;color:inherit;}.css-1gesgke .MuiTreeItem-content .MuiTreeItem-iconContainer{;}.css-1gesgke .MuiTreeItem-group{margin-left:0;}.css-1gesgke .MuiTreeItem-group .MuiTreeItem-content{padding-left:16px;}</style><style data-emotion="css 1oy5rnm">.css-1oy5rnm{list-style:none;margin:0;padding:0;outline:0;}.css-1oy5rnm .MuiTreeItem-content{color:#282a36;border-radius:4px;}.css-1oy5rnm .MuiTreeItem-content:hover{background-color:#f9f9f9;}.css-1oy5rnm .MuiTreeItem-content.Mui-selected,.css-1oy5rnm .MuiTreeItem-content.Mui-selected.Mui-focused{background-color:var(--tree-view-bg-color, #EAF6FB);color:var(--tree-view-color, #0A85C2);}.css-1oy5rnm .MuiTreeItem-content.Mui-selected svg.MuiTreeItem-ChevronRightIcon,.css-1oy5rnm .MuiTreeItem-content.Mui-selected.Mui-focused svg.MuiTreeItem-ChevronRightIcon{fill:var(--tree-view-color, #0A85C2);}.css-1oy5rnm .MuiTreeItem-content.Mui-focused{background-color:#f9f9f9;}.css-1oy5rnm .MuiTreeItem-content .MuiTreeItem-label{font-weight:inherit;color:inherit;}.css-1oy5rnm .MuiTreeItem-content .MuiTreeItem-iconContainer{;}.css-1oy5rnm .MuiTreeItem-group{margin-left:0;}.css-1oy5rnm .MuiTreeItem-group .MuiTreeItem-content{padding-left:16px;}</style><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-0" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><style data-emotion="css khel7y">.css-khel7y{padding:0 8px;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent;}.css-khel7y:hover{background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-khel7y:hover{background-color:transparent;}}.css-khel7y.Mui-disabled{opacity:0.38;background-color:transparent;}.css-khel7y.Mui-focused{background-color:rgba(0, 0, 0, 0.12);}.css-khel7y.Mui-selected{background-color:rgba(25, 118, 210, 0.08);}.css-khel7y.Mui-selected:hover{background-color:rgba(25, 118, 210, 0.12);}@media (hover: none){.css-khel7y.Mui-selected:hover{background-color:rgba(25, 118, 210, 0.08);}}.css-khel7y.Mui-selected.Mui-focused{background-color:rgba(25, 118, 210, 0.2);}.css-khel7y .MuiTreeItem-iconContainer{margin-right:4px;width:15px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}.css-khel7y .MuiTreeItem-iconContainer svg{font-size:18px;}.css-khel7y .MuiTreeItem-label{width:100%;min-width:0;padding-left:4px;position:relative;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;}</style><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><style data-emotion="css znl8a3">.css-znl8a3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;min-height:1.75rem;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:0rem;padding-top:0.25rem;padding-bottom:0.25rem;}</style><div class="css-znl8a3"><style data-emotion="css tx8jsd">.css-tx8jsd{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;}</style><a class="MuiTypography-root MuiTypography-body1 css-tx8jsd" target="_blank" href="https://docs.pingcap.com/zh" style="text-decoration:none;width:100%;color:inherit"><style data-emotion="css 8atqhb">.css-8atqhb{width:100%;}</style><div class="MuiBox-root css-8atqhb"><style data-emotion="css 1hwyipb">.css-1hwyipb{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:inherit;font-size:0.875rem;line-height:1.25rem;}</style><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">文档中心</div></div></a></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-1" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">关于 TiDB</div></div><style data-emotion="css xjq79n">.css-xjq79n{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;fill:#999999;height:1rem;width:1rem;margin-left:auto;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div><style data-emotion="css 1jozaee">.css-1jozaee{margin:0;padding:0;margin-left:17px;}</style></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-2" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">快速上手</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-3" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">应用开发</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-4" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">部署标准集群</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-5" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">数据迁移</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-6" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">数据集成</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-7" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">运维操作</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-8" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">监控与告警</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-9" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">故障诊断</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-10" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">性能调优</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-11" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">教程</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-12" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">TiDB 工具</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="true" id="left-nav-treeview-0-13" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content Mui-expanded" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">参考指南</div></div><style data-emotion="css 171pefp">.css-171pefp{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;fill:#999999;height:1rem;width:1rem;margin-left:auto;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-171pefp" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div><style data-emotion="css 1xxsnna">.css-1xxsnna{height:auto;overflow:visible;-webkit-transition:height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;margin:0;padding:0;margin-left:17px;}</style><ul class="MuiCollapse-root MuiCollapse-vertical MuiTreeItem-group MuiCollapse-entered css-1xxsnna" style="min-height:0px" role="group"><div class="MuiCollapse-wrapper MuiCollapse-vertical css-hboir5"><div class="MuiCollapse-wrapperInner MuiCollapse-vertical css-8atqhb"><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-0" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><style data-emotion="css kb2j4b">.css-kb2j4b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;min-height:1.75rem;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:0.5rem;padding-top:0.25rem;padding-bottom:0.25rem;}</style><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">架构</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-1" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">存储引擎 TiKV</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-2" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">存储引擎 TiFlash</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-3" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/v7.2/system-variables"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">系统变量</div></div></a></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="true" id="left-nav-treeview-0-13-4" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content Mui-expanded" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">配置文件参数</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-171pefp" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div><ul class="MuiCollapse-root MuiCollapse-vertical MuiTreeItem-group MuiCollapse-entered css-1xxsnna" style="min-height:0px" role="group"><div class="MuiCollapse-wrapper MuiCollapse-vertical css-hboir5"><div class="MuiCollapse-wrapperInner MuiCollapse-vertical css-8atqhb"><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-4-0" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content Mui-expanded" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><style data-emotion="css snygwd">.css-snygwd{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;min-height:1.75rem;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:1rem;padding-top:0.25rem;padding-bottom:0.25rem;}</style><div class="css-snygwd"><a aria-current="page" style="text-decoration:none;width:100%;color:inherit" class="" href="/zh/tidb/v7.2/tidb-configuration-file"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">tidb-server</div></div></a></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-4-1" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-snygwd"><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/v7.2/tikv-configuration-file"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">tikv-server</div></div></a></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-4-2" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-snygwd"><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/v7.2/tiflash-configuration"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">tiflash-server</div></div></a></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-4-3" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-snygwd"><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/v7.2/pd-configuration-file"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">pd-server</div></div></a></div></div></div></li></div></div></ul></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-5" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">CLI</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-6" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">命令行参数</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-7" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">监控指标</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-8" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">安全加固</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-9" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">权限</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-10" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">SQL</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-11" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">UI</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-12" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/v7.2/telemetry"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">遥测</div></div></a></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-13" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/v7.2/error-codes"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">错误码</div></div></a></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-13-14" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/v7.2/schedule-replicas-by-topology-labels"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">通过拓扑 label 进行副本调度</div></div></a></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-13-15" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-kb2j4b"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">内部组件介绍</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li></div></div></ul></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-14" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">常见问题解答 (FAQ)</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" aria-expanded="false" id="left-nav-treeview-0-15" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">版本发布历史</div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiTreeItem-ChevronRightIcon css-xjq79n" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ChevronRightIcon"><path d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg></div></div></div></li><li class="MuiTreeItem-root css-1oy5rnm" role="treeitem" id="left-nav-treeview-0-16" tabindex="-1" style="margin-top:0.1875rem;margin-bottom:0.1875rem"><div class="css-khel7y MuiTreeItem-content" style="width:inherit"><div class="MuiTreeItem-iconContainer"/><div class="MuiTreeItem-label"><div class="css-znl8a3"><a style="text-decoration:none;width:100%;color:inherit" href="/zh/tidb/v7.2/glossary"><div class="MuiBox-root css-8atqhb"><div class="MuiTypography-root MuiTypography-body1 css-1hwyipb">术语表</div></div></a></div></div></div></li></ul></div></aside><style data-emotion="css sb2sd0">.css-sb2sd0{width:100%;}@media (min-width:1200px){.css-sb2sd0{max-width:calc(100% - 18.75rem);}}</style><main class="MuiBox-root css-sb2sd0"><style data-emotion="css 1rnnmjb">.css-1rnnmjb{max-width:1340px;width:100%;margin-left:auto;margin-right:auto;display:block;box-sizing:border-box;}</style><div class="MuiBox-root css-1rnnmjb"><style data-emotion="css 90fn5w">.css-90fn5w{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}@media (min-width:0px){.css-90fn5w{-webkit-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;}}@media (min-width:600px){.css-90fn5w{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}}</style><div class="css-90fn5w"><style data-emotion="css vofosd">.css-vofosd{padding:1.5rem 0;}@media (min-width:0px){.css-vofosd{width:100%;}}@media (min-width:600px){.css-vofosd{width:calc(100% - 17.5rem);}}</style><div class="MuiBox-root css-vofosd"><style data-emotion="css 1ekb41w">.css-1ekb41w{width:100%;margin-left:auto;box-sizing:border-box;margin-right:auto;display:block;padding-left:16px;padding-right:16px;}@media (min-width:600px){.css-1ekb41w{padding-left:24px;padding-right:24px;}}@media (min-width:1536px){.css-1ekb41w{max-width:1536px;}}</style><div class="MuiContainer-root MuiContainer-maxWidthXl doc-content css-1ekb41w"><div class="markdown-body MuiBox-root css-0"><style data-emotion="css 1weqspv">.css-1weqspv{padding-top:0.5rem;padding-bottom:0.5rem;}.css-1weqspv .MuiAlert-message p{margin-bottom:0px;margin-top:0px;}</style><div class="MuiBox-root css-1weqspv"><style data-emotion="css 1rl2db2">.css-1rl2db2{font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:rgb(95, 33, 32);background-color:rgb(253, 237, 237);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:6px 16px;}.css-1rl2db2 .MuiAlert-icon{color:#ef5350;}</style><style data-emotion="css 21rxh6">.css-21rxh6{background-color:#fff;color:rgba(0, 0, 0, 0.87);-webkit-transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;border-radius:4px;box-shadow:none;font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:rgb(95, 33, 32);background-color:rgb(253, 237, 237);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:6px 16px;}.css-21rxh6 .MuiAlert-icon{color:#ef5350;}</style><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><style data-emotion="css 1l54tgj">.css-1l54tgj{margin-right:12px;padding:7px 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:22px;opacity:0.9;}</style><div class="MuiAlert-icon css-1l54tgj"><style data-emotion="css 1cw4hi4">.css-1cw4hi4{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:inherit;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><style data-emotion="css 1xsto0d">.css-1xsto0d{padding:8px 0;min-width:0;overflow:auto;}</style><div class="MuiAlert-message css-1xsto0d"><style data-emotion="css 1h2y6o4">.css-1h2y6o4{font-weight:500;margin-top:-2px;}</style><style data-emotion="css 17ioyuk">.css-17ioyuk{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;margin-bottom:0.35em;font-weight:500;margin-top:-2px;}</style><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">重要</div>你正在查看 TiDB 数据库的归档文档,归档文档不再提供任何更新。如无特殊需求,建议使用 TiDB 数据库的<style data-emotion="css 1uduv0p">.css-1uduv0p{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;font-size:inherit;}</style><a class="MuiTypography-root MuiTypography-body1 css-1uduv0p" target="_blank" href="https://docs.pingcap.com/zh/tidb/stable/tidb-configuration-file" style="text-decoration:none">最新 LTS 版本</a>。</div></div></div><h1 id="tidb-配置文件描述" style="position:relative"><a href="#tidb-%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E6%8F%8F%E8%BF%B0" aria-label="tidb 配置文件描述 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>TiDB 配置文件描述</h1><p>TiDB 配置文件比命令行参数支持更多的选项。你可以在 <a href="https://github.com/pingcap/tidb/blob/release-7.2/config/config.toml.example" target="_blank" referrerpolicy="no-referrer-when-downgrade">config/config.toml.example</a> 找到默认值的配置文件,重命名为 <code>config.toml</code> 即可。本文档只介绍未包含在<a href="/zh/tidb/v7.2/command-line-flags-for-tidb-configuration">命令行参数</a>中的参数。</p><div class="MuiBox-root css-1weqspv"><style data-emotion="css rt4wgs">.css-rt4wgs{font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:rgb(30, 70, 32);background-color:rgb(237, 247, 237);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:6px 16px;}.css-rt4wgs .MuiAlert-icon{color:#4caf50;}</style><style data-emotion="css 6wf0eq">.css-6wf0eq{background-color:#fff;color:rgba(0, 0, 0, 0.87);-webkit-transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;border-radius:4px;box-shadow:none;font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:rgb(30, 70, 32);background-color:rgb(237, 247, 237);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:6px 16px;}.css-6wf0eq .MuiAlert-icon{color:#4caf50;}</style><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardSuccess MuiAlert-standard css-6wf0eq" role="alert"><div class="MuiAlert-icon css-1l54tgj"><style data-emotion="css vubbuv">.css-vubbuv{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="AttachmentIcon"><path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.9-2-2-2H7.5C5.57 9 4 10.57 4 12.5S5.57 16 7.5 16H17v2H7.5C4.46 18 2 15.54 2 12.5z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">小贴士</div><p>如果你需要调整配置项的值,请参考<a href="/zh/tidb/v7.2/maintain-tidb-using-tiup#修改配置参数">修改配置参数</a>进行操作。</p></div></div></div><h3 id="split-table" style="position:relative"><a href="#split-table" aria-label="split table permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>split-table</code></h3><ul><li>为每个 table 建立单独的 Region。</li><li>默认值:true</li><li>如果需要创建大量的表(例如 10 万张以上),建议将此参数设置为 false。</li></ul><h3 id="tidb-max-reuse-chunk-span-classversion-mark从-v640-版本开始引入span" style="position:relative"><a href="#tidb-max-reuse-chunk-span-classversion-mark%E4%BB%8E-v640-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="tidb max reuse chunk span classversion mark从 v640 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tidb-max-reuse-chunk</code> <span class="version-mark">从 v6.4.0 版本开始引入</span></h3><ul><li>用于控制每个连接最多缓存的 Chunk 对象数。配置过大会增加 OOM 的风险。</li><li>默认值:64</li><li>最小值:0</li><li>最大值:2147483647</li></ul><h3 id="tidb-max-reuse-column-span-classversion-mark从-v640-版本开始引入span" style="position:relative"><a href="#tidb-max-reuse-column-span-classversion-mark%E4%BB%8E-v640-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="tidb max reuse column span classversion mark从 v640 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tidb-max-reuse-column</code> <span class="version-mark">从 v6.4.0 版本开始引入</span></h3><ul><li>用于控制每个连接最多缓存的 column 对象数。配置过大会增加 OOM 的风险。</li><li>默认值:256</li><li>最小值:0</li><li>最大值:2147483647</li></ul><h3 id="token-limit" style="position:relative"><a href="#token-limit" aria-label="token limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>token-limit</code></h3><ul><li>可以同时执行请求的 session 个数</li><li>类型:Integer</li><li>默认值:1000</li><li>最小值:1</li><li>最大值(64 位平台):<code>18446744073709551615</code></li><li>最大值(32 位平台):<code>4294967295</code></li></ul><h3 id="temp-dir-span-classversion-mark从-v630-版本开始引入span" style="position:relative"><a href="#temp-dir-span-classversion-mark%E4%BB%8E-v630-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="temp dir span classversion mark从 v630 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>temp-dir</code> <span class="version-mark">从 v6.3.0 版本开始引入</span></h3><ul><li>TiDB 用于存放临时数据的路径。如果一个功能需要使用 TiDB 节点的本地存储,TiDB 将把对应数据临时存放在这个目录下。</li><li>在创建索引的过程中,如果开启了<a href="/zh/tidb/v7.2/system-variables#tidb_ddl_enable_fast_reorg-从-v630-版本开始引入">创建索引加速</a>,那么新创建索引需要回填的数据会被先存放在 TiDB 本地临时存储路径,然后批量导入到 TiKV,从而提升索引创建速度。</li><li>在使用 <a href="/zh/tidb/v7.2/sql-statement-import-into"><code>IMPORT INTO</code></a> 导入数据时,排序后的数据会被先存放在 TiDB 本地临时存储路径,然后批量导入到 TiKV。</li><li>默认值:"/tmp/tidb"</li></ul><div class="MuiBox-root css-1weqspv"><style data-emotion="css 17zlexa">.css-17zlexa{font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:rgb(1, 67, 97);background-color:rgb(229, 246, 253);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:6px 16px;}.css-17zlexa .MuiAlert-icon{color:#03a9f4;}</style><style data-emotion="css 152gid5">.css-152gid5{background-color:#fff;color:rgba(0, 0, 0, 0.87);-webkit-transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;border-radius:4px;box-shadow:none;font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:rgb(1, 67, 97);background-color:rgb(229, 246, 253);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:6px 16px;}.css-152gid5 .MuiAlert-icon{color:#03a9f4;}</style><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>如果目录不存在,TiDB 在启动时会自动创建该目录。如果目录创建失败,或者 TiDB 对该目录没有读写权限,<a href="/zh/tidb/v7.2/system-variables#tidb_ddl_enable_fast_reorg-从-v630-版本开始引入">Fast Online DDL</a> 在运行时可能产生不可预知的问题。</p></div></div></div><h3 id="oom-use-tmp-storage" style="position:relative"><a href="#oom-use-tmp-storage" aria-label="oom use tmp storage permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>oom-use-tmp-storage</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>自 v6.3.0 起,该配置项被废弃,其功能由系统变量 <a href="/zh/tidb/v7.2/system-variables#tidb_enable_tmp_storage_on_oom"><code>tidb_enable_tmp_storage_on_oom</code></a> 代替。集群升级到 v6.3.0 及之后的版本后,会自动继承升级前的 <code>oom-use-tmp-storage</code> 设置,升级后再设置 <code>oom-use-tmp-storage</code> 将不生效。</p></div></div></div><ul><li>设置是否在单条 SQL 语句的内存使用超出系统变量 <a href="/zh/tidb/v7.2/system-variables#tidb_mem_quota_query"><code>tidb_mem_quota_query</code></a> 限制时为某些算子启用临时磁盘。</li><li>默认值:true</li></ul><h3 id="tmp-storage-path" style="position:relative"><a href="#tmp-storage-path" aria-label="tmp storage path permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tmp-storage-path</code></h3><ul><li>单条 SQL 语句的内存使用超出系统变量 <a href="/zh/tidb/v7.2/system-variables#tidb_mem_quota_query"><code>tidb_mem_quota_query</code></a> 限制时,某些算子的临时磁盘存储位置。</li><li>默认值:<code><操作系统临时文件夹>/<操作系统用户ID>_tidb/MC4wLjAuMDo0MDAwLzAuMC4wLjA6MTAwODA=/tmp-storage</code>。其中 <code>MC4wLjAuMDo0MDAwLzAuMC4wLjA6MTAwODA=</code> 是对 <code><host>:<port>/<statusHost>:<statusPort></code> 进行 <code>Base64</code> 编码的输出结果。</li><li>此配置仅在系统变量 <a href="/zh/tidb/v7.2/system-variables#tidb_enable_tmp_storage_on_oom"><code>tidb_enable_tmp_storage_on_oom</code></a> 的值为 <code>ON</code> 时有效。</li></ul><h3 id="tmp-storage-quota" style="position:relative"><a href="#tmp-storage-quota" aria-label="tmp storage quota permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tmp-storage-quota</code></h3><ul><li><code>tmp-storage-path</code> 存储使用的限额。</li><li>单位:Byte</li><li>当单条 SQL 语句使用临时磁盘,导致 TiDB server 的总体临时磁盘总量超过 <code>tmp-storage-quota</code> 时,当前 SQL 操作会被取消,并返回 <code>Out Of Global Storage Quota!</code> 错误。</li><li>当 <code>tmp-storage-quota</code> 小于 0 时则没有上述检查与限制。</li><li>默认值:-1</li><li>当 <code>tmp-storage-path</code> 的剩余可用容量低于 <code>tmp-storage-quota</code> 所定义的值时,TiDB server 启动时将会报出错误并退出。</li></ul><h3 id="lease" style="position:relative"><a href="#lease" aria-label="lease permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>lease</code></h3><ul><li>DDL 租约超时时间。</li><li>默认值:45s</li><li>单位:秒</li></ul><h3 id="compatible-kill-query" style="position:relative"><a href="#compatible-kill-query" aria-label="compatible kill query permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>compatible-kill-query</code></h3><ul><li>设置 <code>KILL</code> 语句的兼容性。</li><li>默认值:false</li><li><code>compatible-kill-query</code> 仅在 <a href="#enable-global-kill-%E4%BB%8E-v610-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>enable-global-kill</code></a> 为 <code>false</code> 时生效。</li><li>当 <a href="#enable-global-kill-%E4%BB%8E-v610-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>enable-global-kill</code></a> 为 <code>false</code> 时,<code>compatible-kill-query</code> 控制杀死一条查询时是否需要加上 <code>TIDB</code> 关键词。<ul><li><code>compatible-kill-query</code> 为 <code>false</code> 时,TiDB 中 <code>KILL xxx</code> 的行为和 MySQL 中的行为不同。为杀死一条查询,在 TiDB 中需要加上 <code>TIDB</code> 关键词,即 <code>KILL TIDB xxx</code>。</li><li><code>compatible-kill-query</code> 为 <code>true</code> 时,为杀死一条查询,在 TiDB 中无需加上 <code>TIDB</code> 关键词。<strong>强烈不建议</strong>设置 <code>compatible-kill-query</code> 为 <code>true</code>,<strong>除非</strong>你确定客户端将始终连接到同一个 TiDB 节点。这是因为当你在默认的 MySQL 客户端按下 <kbd>Control</kbd>+<kbd>C</kbd> 时,客户端会开启一个新连接,并在这个新连接中执行 <code>KILL</code> 语句。此时,如果客户端和 TiDB 之间存在代理,新连接可能会被路由到其他 TiDB 节点,从而错误地终止其他会话。</li></ul></li><li>当 <a href="#enable-global-kill-%E4%BB%8E-v610-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5"><code>enable-global-kill</code></a> 为 <code>true</code> 时,<code>KILL xxx</code> 和 <code>KILL TIDB xxx</code> 的作用相同,但是暂不支持 <kbd>Control</kbd>+<kbd>C</kbd> 终止查询。</li><li>关于 <code>KILL</code> 语句的更多信息,请参考 <a href="/zh/tidb/v7.2/sql-statement-kill">KILL [TIDB]</a>。</li></ul><h3 id="check-mb4-value-in-utf8" style="position:relative"><a href="#check-mb4-value-in-utf8" aria-label="check mb4 value in utf8 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>check-mb4-value-in-utf8</code></h3><ul><li>开启检查 utf8mb4 字符的开关,如果开启此功能,字符集是 utf8,且在 utf8 插入 mb4 字符,系统将会报错。</li><li>默认值:true</li><li>自 v6.1.0 起,utf8mb4 字符检查改为通过 TiDB 配置项 <code>instance.tidb_check_mb4_value_in_utf8</code> 或系统变量 <code>tidb_check_mb4_value_in_utf8</code> 进行设置。<code>check-mb4-value-in-utf8</code> 仍可使用,但如果同时设置了 <code>check-mb4-value-in-utf8</code> 与 <code>instance.tidb_check_mb4_value_in_utf8</code>,TiDB 将采用 <code>instance.tidb_check_mb4_value_in_utf8</code> 的值。</li></ul><h3 id="treat-old-version-utf8-as-utf8mb4" style="position:relative"><a href="#treat-old-version-utf8-as-utf8mb4" aria-label="treat old version utf8 as utf8mb4 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>treat-old-version-utf8-as-utf8mb4</code></h3><ul><li>将旧表中的 utf8 字符集当成 utf8mb4 的开关。</li><li>默认值:true</li></ul><h3 id="alter-primary-key已废弃" style="position:relative"><a href="#alter-primary-key%E5%B7%B2%E5%BA%9F%E5%BC%83" aria-label="alter primary key已废弃 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>alter-primary-key</code>(已废弃)</h3><ul><li>用于控制添加或者删除主键功能。</li><li>默认值:false</li><li>默认情况下,不支持增删主键。将此变量被设置为 true 后,支持增删主键功能。不过对在此开关开启前已经存在的表,且主键是整型类型时,即使之后开启此开关也不支持对此列表删除主键。</li></ul><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p>该配置项已被废弃,目前仅在 <code>@@tidb_enable_clustered_index</code> 取值为 <code>INT_ONLY</code> 时生效。如果需要增删主键,请在建表时使用 <code>NONCLUSTERED</code> 关键字代替。要了解关于 <code>CLUSTERED</code> 主键的详细信息,请参考<a href="/zh/tidb/v7.2/clustered-indexes">聚簇索引</a>。</p></div></div></div><h3 id="server-version" style="position:relative"><a href="#server-version" aria-label="server version permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>server-version</code></h3><ul><li>用来修改 TiDB 在以下情况下返回的版本号:<ul><li>当使用内置函数 <code>VERSION()</code> 时。</li><li>当与客户端初始连接,TiDB 返回带有服务端版本号的初始握手包时。具体可以查看 MySQL 初始握手包的<a href="https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_connection_phase.html#sect_protocol_connection_phase_initial_handshake" target="_blank" referrerpolicy="no-referrer-when-downgrade">描述</a>。</li></ul></li><li>默认值:""</li><li>默认情况下,TiDB 版本号格式为:<code>5.7.${mysql_latest_minor_version}-TiDB-${tidb_version}</code>。</li></ul><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><p><code>server-version</code> 的值会被 TiDB 节点用于验证当前 TiDB 的版本。因此在进行 TiDB 集群升级前,请将 <code>server-version</code> 的值设置为空或者当前 TiDB 真实的版本值,避免出现非预期行为。</p></div></div></div><h3 id="repair-mode" style="position:relative"><a href="#repair-mode" aria-label="repair mode permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>repair-mode</code></h3><ul><li>用于开启非可信修复模式,启动该模式后,可以过滤 <code>repair-table-list</code> 名单中坏表的加载。</li><li>默认值:false</li><li>默认情况下,不支持修复语法,默认启动时会加载所有表信息。</li></ul><h3 id="repair-table-list" style="position:relative"><a href="#repair-table-list" aria-label="repair table list permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>repair-table-list</code></h3><ul><li>配合 <code>repair-mode</code> 为 true 时使用,用于列出实例中需要修复的坏表的名单,该名单的写法为 <!-- -->["db.table1","db.table2", ……]<!-- -->。</li><li>默认值:[]</li><li>默认情况下,该 list 名单为空,表示没有所需修复的坏表信息。</li></ul><h3 id="new_collations_enabled_on_first_bootstrap" style="position:relative"><a href="#new_collations_enabled_on_first_bootstrap" aria-label="new_collations_enabled_on_first_bootstrap permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>new_collations_enabled_on_first_bootstrap</code></h3><ul><li>用于开启新的 collation 支持</li><li>默认值:true</li><li>注意:该配置项只有在初次初始化集群时生效,初始化集群后,无法通过更改该配置项打开或关闭新的 collation 框架。</li></ul><h3 id="max-server-connections" style="position:relative"><a href="#max-server-connections" aria-label="max server connections permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-server-connections</code></h3><ul><li>TiDB 中同时允许的最大客户端连接数,用于资源控制。</li><li>默认值:0</li><li>默认情况下,TiDB 不限制客户端连接数。当本配置项的值大于 <code>0</code> 且客户端连接数到达此值时,TiDB 服务端将会拒绝新的客户端连接。</li><li>自 v6.2.0 起,客户端连接数已改用配置项 <a href="/zh/tidb/v7.2/tidb-configuration-file#max_connections"><code>instance.max_connections</code></a> 或系统变量 <a href="/zh/tidb/v7.2/system-variables#max_connections"><code>max_connections</code></a> 进行设置。<code>max-server-connections</code> 仍可使用,但如果同时设置了 <code>max-server-connections</code> 与 <code>instance.max_connections</code>,TiDB 将采用 <code>instance.max_connections</code> 的值。</li></ul><h3 id="max-index-length" style="position:relative"><a href="#max-index-length" aria-label="max index length permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-index-length</code></h3><ul><li>用于设置新建索引的长度限制。</li><li>默认值:3072</li><li>单位:Byte</li><li>目前的合法值范围 <code>[3072, 3072*4]</code>。MySQL 和 TiDB v3.0.11 之前版本(不包含 v3.0.11)没有此配置项,不过都对新建索引的长度做了限制。MySQL 对此的长度限制为 <code>3072</code>,TiDB 在 v3.0.7 以及之前版本该值为 <code>3072*4</code>,在 v3.0.7 之后版本(包含 v3.0.8、v3.0.9 和 v3.0.10)的该值为 <code>3072</code>。为了与 MySQL 和 TiDB 之前版本的兼容,添加了此配置项。</li></ul><h3 id="table-column-count-limit-span-classversion-mark从-v50-版本开始引入span" style="position:relative"><a href="#table-column-count-limit-span-classversion-mark%E4%BB%8E-v50-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="table column count limit span classversion mark从 v50 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>table-column-count-limit</code> <span class="version-mark">从 v5.0 版本开始引入</span></h3><ul><li>用于设置单个表中列的数量限制</li><li>默认值:1017</li><li>目前的合法值范围 <code>[1017, 4096]</code>。</li></ul><h3 id="index-limit-span-classversion-mark从-v50-版本开始引入span" style="position:relative"><a href="#index-limit-span-classversion-mark%E4%BB%8E-v50-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="index limit span classversion mark从 v50 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>index-limit</code> <span class="version-mark">从 v5.0 版本开始引入</span></h3><ul><li>用于设置单个表中索引的数量限制</li><li>默认值:64</li><li>目前的合法值范围 <code>[64, 512]</code>。</li></ul><h3 id="enable-telemetry-span-classversion-mark从-v402-版本开始引入span" style="position:relative"><a href="#enable-telemetry-span-classversion-mark%E4%BB%8E-v402-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable telemetry span classversion mark从 v402 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-telemetry</code> <span class="version-mark">从 v4.0.2 版本开始引入</span></h3><ul><li>是否开启 TiDB 遥测功能。</li><li>默认值:false</li><li>如果在 TiDB 实例上该配置项设为 <code>true</code>,该 TiDB 实例上将开启遥测功能,且 <a href="/zh/tidb/v7.2/system-variables#tidb_enable_telemetry-从-v402-版本开始引入"><code>tidb_enable_telemetry</code></a> 系统变量生效。</li><li>如果所有 TiDB 实例上该选项都设置为 <code>false</code>,那么将完全禁用 TiDB 遥测功能,且忽略 <code>tidb_enable_telemetry</code> 系统变量。参阅<a href="/zh/tidb/v7.2/telemetry">遥测</a>了解该功能详情。</li></ul><h3 id="enable-tcp4-only-span-classversion-mark从-v50-版本开始引入span" style="position:relative"><a href="#enable-tcp4-only-span-classversion-mark%E4%BB%8E-v50-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable tcp4 only span classversion mark从 v50 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-tcp4-only</code> <span class="version-mark">从 v5.0 版本开始引入</span></h3><ul><li>控制是否只监听 TCP4。</li><li>默认值:false</li><li>当使用 LVS 为 TiDB 做负载均衡时,可开启此配置项。这是因为 <a href="https://github.com/alibaba/LVS/tree/master/kernel/net/toa" target="_blank" referrerpolicy="no-referrer-when-downgrade">LVS 的 TOA 模块</a>可以通过 TCP4 协议从 TCP 头部信息中解析出客户端的真实 IP。</li></ul><h3 id="enable-enum-length-limit-span-classversion-mark从-v50-版本开始引入span" style="position:relative"><a href="#enable-enum-length-limit-span-classversion-mark%E4%BB%8E-v50-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable enum length limit span classversion mark从 v50 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-enum-length-limit</code> <span class="version-mark">从 v5.0 版本开始引入</span></h3><ul><li>是否限制单个 <code>ENUM</code> 元素和单个 <code>SET</code> 元素的最大长度</li><li>默认值:true</li><li>当该配置项值为 <code>true</code> 时,<code>ENUM</code> 和 <code>SET</code> 单个元素的最大长度为 255 个字符,<a href="https://dev.mysql.com/doc/refman/8.0/en/string-type-syntax.html" target="_blank" referrerpolicy="no-referrer-when-downgrade">与 MySQL 8 兼容</a>;当该配置项值为 <code>false</code> 时,不对单个元素的长度进行限制,与 TiDB v5.0 之前的版本兼容。</li></ul><h3 id="graceful-wait-before-shutdown-span-classversion-mark从-v50-版本开始引入span" style="position:relative"><a href="#graceful-wait-before-shutdown-span-classversion-mark%E4%BB%8E-v50-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="graceful wait before shutdown span classversion mark从 v50 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>graceful-wait-before-shutdown</code> <span class="version-mark">从 v5.0 版本开始引入</span></h3><ul><li>指定关闭服务器时 TiDB 等待的秒数,使得客户端有时间断开连接。</li><li>默认值:0</li><li>在 TiDB 等待服务器关闭期间,HTTP 状态会显示失败,使得负载均衡器可以重新路由流量。</li></ul><h3 id="enable-global-kill-span-classversion-mark从-v610-版本开始引入span" style="position:relative"><a href="#enable-global-kill-span-classversion-mark%E4%BB%8E-v610-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable global kill span classversion mark从 v610 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-global-kill</code> <span class="version-mark">从 v6.1.0 版本开始引入</span></h3><ul><li>用于开启 Global Kill(跨节点终止查询或连接)功能。</li><li>默认值:true</li><li>当该配置项值为 <code>true</code> 时,<code>KILL</code> 语句和 <code>KILL TIDB</code> 语句均能跨节点终止查询或连接,无需担心错误地终止其他查询或连接。当你使用客户端连接到任何一个 TiDB 节点执行 <code>KILL</code> 语句或 <code>KILL TIDB</code> 语句时,该语句会被转发给对应的 TiDB 节点。当客户端和 TiDB 中间有代理时,<code>KILL</code> 语句或 <code>KILL TIDB</code> 语句也会被转发给对应的 TiDB 节点执行。目前暂时不支持在 <code>enable-global-kill</code> 为 <code>true</code> 时用 MySQL 命令行 <kbd>ctrl</kbd>+<kbd>c</kbd> 终止查询或连接。关于 <code>KILL</code> 语句的更多信息,请参考 <a href="/zh/tidb/v7.2/sql-statement-kill">KILL [TIDB]</a>。</li></ul><h3 id="initialize-sql-file-span-classversion-mark从-v660-版本开始引入span" style="position:relative"><a href="#initialize-sql-file-span-classversion-mark%E4%BB%8E-v660-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="initialize sql file span classversion mark从 v660 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>initialize-sql-file</code> <span class="version-mark">从 v6.6.0 版本开始引入</span></h3><ul><li>用于指定 TiDB 集群初次启动时执行的 SQL 脚本。</li><li>默认值:""</li><li>脚本中的所有 SQL 语句将以最高权限执行,不会进行权限检查。若指定的 SQL 脚本无法正确执行,可能导致 TiDB 集群启动失败。</li><li>通常用于修改系统变量的值、创建用户或分配权限等。</li></ul><h3 id="enable-forwarding-span-classversion-mark从-v500-版本开始引入span" style="position:relative"><a href="#enable-forwarding-span-classversion-mark%E4%BB%8E-v500-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable forwarding span classversion mark从 v500 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-forwarding</code> <span class="version-mark">从 v5.0.0 版本开始引入</span></h3><ul><li>控制 TiDB 中的 PD client 以及 TiKV client 在疑似网络隔离的情况下是否通过 follower 将请求转发给 leader。</li><li>默认值:false</li><li>如果确认环境存在网络隔离的可能,开启这个参数可以减少服务不可用的窗口期。</li><li>如果无法准确判断隔离、网络中断、宕机等情况,这个机制存在误判情况从而导致可用性、性能降低。如果网络中从未发生过网络故障,不推荐开启此选项。</li></ul><h3 id="enable-table-lock-span-classversion-mark从-v400-版本开始引入span" style="position:relative"><a href="#enable-table-lock-span-classversion-mark%E4%BB%8E-v400-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable table lock span classversion mark从 v400 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-table-lock</code> <span class="version-mark">从 v4.0.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>表级锁 (Table Lock) 为实验特性,不建议在生产环境中使用。</p></div></div></div><ul><li>控制是否开启表级锁特性。</li><li>默认值:false</li><li>表级锁用于协调多个 session 之间对同一张表的并发访问。目前已支持的锁种类包括 <code>READ</code>、<code>WRITE</code> 和 <code>WRITE LOCAL</code>。当该配置项为 <code>false</code> 时,执行 <code>LOCK TABLES</code> 和 <code>UNLOCK TABLES</code> 语句不会生效,并且会报 "LOCK/UNLOCK TABLES is not supported" 的警告。更多信息,请参考 <a href="/zh/tidb/v7.2/sql-statement-lock-tables-and-unlock-tables"><code>LOCK TABLES</code> 和 <code>UNLOCK TABLES</code></a>。</li></ul><h3 id="labels" style="position:relative"><a href="#labels" aria-label="labels permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>labels</code></h3><ul><li>指定服务器标签,例如 <code>{ zone = "us-west-1", dc = "dc1", rack = "rack1", host = "tidb1" }</code>。</li><li>默认值:<code>{}</code></li></ul><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><ul><li>标签 <code>zone</code> 在 TiDB 中具有特殊用途,用于指定服务器所在的区域信息,当设置 <code>zone</code> 为非空值时,对应的值会被自动用于 <a href="/zh/tidb/v7.2/system-variables#txn_scope"><code>txn-score</code></a> 和 <a href="/zh/tidb/v7.2/follower-read"><code>Follower read</code></a> 等功能。</li><li>标签 <code>group</code> 在 TiDB Operator 中具有特殊用途。对于使用 <a href="/zh/tidb/v7.2/tidb-operator-overview">TiDB Operator</a> 部署的集群,建议不要手动指定此标签。</li></ul></div></div></div><h2 id="log" style="position:relative"><a href="#log" aria-label="log permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>log</h2><p>日志相关的配置项。</p><h3 id="level" style="position:relative"><a href="#level" aria-label="level permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>level</code></h3><ul><li>指定日志的输出级别,可选项为 <!-- -->[debug, info, warn, error, fatal]</li><li>默认值:"info"</li></ul><h3 id="format" style="position:relative"><a href="#format" aria-label="format permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>format</code></h3><ul><li>指定日志输出的格式,可选项为 <!-- -->[json, text]<!-- -->。</li><li>默认值:"text"</li></ul><h3 id="enable-timestamp" style="position:relative"><a href="#enable-timestamp" aria-label="enable timestamp permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-timestamp</code></h3><ul><li>是否在日志中输出时间戳。</li><li>默认值:null</li><li>如果设置为 false,那么日志里面将不会输出时间戳。</li></ul><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardInfo MuiAlert-standard css-152gid5" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="InfoOutlinedIcon"><path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">注意</div><ul><li>考虑后向兼容性,原来的配置项 <code>disable-timestamp</code> 仍然有效,但如果和 <code>enable-timestamp</code> 配置的值在语义上冲突(例如在配置中把 <code>enable-timestamp</code> 和 <code>disable-timestamp</code> 同时设置为 <code>true</code>),则 TiDB 会忽略 <code>disable-timestamp</code> 的值。</li><li>当前 TiDB 默认使用 <code>disable-timestamp</code> 来决定是否在日志中输出时间戳,此时 <code>enable-timestamp</code> 的值为 <code>null</code>。</li><li>在未来的版本中,<code>disable-timestamp</code> 配置项将被彻底移除,请废弃 <code>disable-timestamp</code> 的用法,使用语义上更易于理解的 <code>enable-timestamp</code>。</li></ul></div></div></div><h3 id="enable-slow-log" style="position:relative"><a href="#enable-slow-log" aria-label="enable slow log permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-slow-log</code></h3><ul><li>是否开启慢查询日志</li><li>默认值:true</li><li>可以设置成 <code>true</code> 或 <code>false</code> 来启用或禁用慢查询日志。</li><li>自 v6.1.0 起,已改用配置项 <code>instance.tidb_enable_slow_log</code> 或系统变量 <code>tidb_enable_slow_log</code> 来设置是否开启慢查询日志。<code>enable-slow-log</code> 仍可使用,但如果同时设置了 <code>enable-slow-log</code> 与 <code>instance.tidb_enable_slow_log</code>,TiDB 将采用 <code>instance.tidb_enable_slow_log</code> 的值。</li></ul><h3 id="slow-query-file" style="position:relative"><a href="#slow-query-file" aria-label="slow query file permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>slow-query-file</code></h3><ul><li>慢查询日志的文件名。</li><li>默认值:"tidb-slow.log"。注:由于 TiDB V2.1.8 更新了慢日志格式,所以将慢日志单独输出到了慢日志文件。V2.1.8 之前的版本,该变量的默认值是 ""。</li><li>设置后,慢查询日志会单独输出到该文件。</li></ul><h3 id="slow-threshold" style="position:relative"><a href="#slow-threshold" aria-label="slow threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>slow-threshold</code></h3><ul><li>输出慢日志的耗时阈值。</li><li>默认值:300</li><li>单位:毫秒</li><li>当查询大于这个值,就会当做是一个慢查询,输出到慢查询日志。</li><li>自 v6.1.0 起,已改用配置项 <code>instance.tidb_slow_log_threshold</code> 或系统变量 <code>tidb_slow_log_threshold</code> 来设置输出慢日志的耗时阈值。<code>slow-threshold</code> 仍可使用,但如果同时设置了 <code>slow-threshold</code> 与 <code>instance.tidb_slow_log_threshold</code>,TiDB 将采用 <code>instance.tidb_slow_log_threshold</code> 的值。</li></ul><h3 id="record-plan-in-slow-log" style="position:relative"><a href="#record-plan-in-slow-log" aria-label="record plan in slow log permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>record-plan-in-slow-log</code></h3><ul><li>在慢日志中记录执行计划</li><li>默认值:1</li><li>自 v6.1.0 起,已改用配置项 <a href="/zh/tidb/v7.2/tidb-configuration-file#tidb_record_plan_in_slow_log"><code>instance.tidb_record_plan_in_slow_log</code></a> 或系统变量 <a href="/zh/tidb/v7.2/system-variables#tidb_record_plan_in_slow_log"><code>tidb_record_plan_in_slow_log</code></a> 来设置在慢日志中记录执行计划。<code>record-plan-in-slow-log</code> 仍可使用,但如果同时设置了 <code>record-plan-in-slow-log</code> 与 <code>instance.tidb_record_plan_in_slow_log</code>,TiDB 将采用 <code>instance.tidb_record_plan_in_slow_log</code> 的值。</li></ul><h3 id="expensive-threshold" style="position:relative"><a href="#expensive-threshold" aria-label="expensive threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>expensive-threshold</code></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>自 v5.4.0 起,该配置项被废弃。请使用 <a href="/zh/tidb/v7.2/system-variables#tidb_expensive_query_time_threshold"><code>tidb_expensive_query_time_threshold</code></a> 系统变量进行设置。</p></div></div></div><ul><li>输出 <code>expensive</code> 操作的行数阈值。</li><li>默认值:10000</li><li>当查询的行数(包括中间结果,基于统计信息)大于这个值,该操作会被认为是 <code>expensive</code> 查询,并输出一个前缀带有 <code>[EXPENSIVE_QUERY]</code> 的日志。</li></ul><h3 id="timeout-span-classversion-mark从-v710-版本开始引入span" style="position:relative"><a href="#timeout-span-classversion-mark%E4%BB%8E-v710-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="timeout span classversion mark从 v710 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>timeout</code> <span class="version-mark">从 v7.1.0 版本开始引入</span></h3><ul><li>用于设置 TiDB 写日志操作的超时时间。当磁盘故障导致日志无法写入时,该配置可以让 TiDB 进程崩溃而不是卡死。</li><li>默认值:0,表示不设置超时</li><li>单位:秒</li><li>在某些用户场景中,TiDB 日志可能是保存在热插拔盘或网络挂载盘上,这些磁盘可能会永久丢失。在这种场景下,TiDB 无法自动恢复,写日志操作会永久阻塞。尽管 TiDB 进程看起来仍在运行,但不会响应任何请求。该配置项用于处理这样的场景。</li></ul><h2 id="logfile" style="position:relative"><a href="#logfile" aria-label="logfile permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>log.file</h2><p>日志文件相关的配置项。</p><h4 id="filename" style="position:relative"><a href="#filename" aria-label="filename permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>filename</code></h4><ul><li>一般日志文件名字。</li><li>默认值:""</li><li>如果设置,会输出一般日志到这个文件。</li></ul><h4 id="max-size" style="position:relative"><a href="#max-size" aria-label="max size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-size</code></h4><ul><li>日志文件的大小限制。</li><li>默认值:300</li><li>单位:MB</li><li>最大设置上限为 4096。</li></ul><h4 id="max-days" style="position:relative"><a href="#max-days" aria-label="max days permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-days</code></h4><ul><li>日志最大保留的天数。</li><li>默认值:0</li><li>默认不清理;如果设置了参数值,在 <code>max-days</code> 之后 TiDB 会清理过期的日志文件。</li></ul><h4 id="max-backups" style="position:relative"><a href="#max-backups" aria-label="max backups permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-backups</code></h4><ul><li>保留的日志的最大数量。</li><li>默认值:0</li><li>默认全部保存;如果设置为 7,会最多保留 7 个老的日志文件。</li></ul><h2 id="security" style="position:relative"><a href="#security" aria-label="security permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>security</h2><p>安全相关配置。</p><h3 id="enable-sem" style="position:relative"><a href="#enable-sem" aria-label="enable sem permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-sem</code></h3><ul><li>启用安全增强模式 (SEM)。</li><li>默认值:<code>false</code></li><li>可以通过系统变量 <a href="/zh/tidb/v7.2/system-variables#tidb_enable_enhanced_security"><code>tidb_enable_enhanced_security</code></a> 获取安全增强模式的状态。</li></ul><h3 id="ssl-ca" style="position:relative"><a href="#ssl-ca" aria-label="ssl ca permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>ssl-ca</code></h3><ul><li>PEM 格式的受信任 CA 的证书文件路径。</li><li>默认值:""</li><li>当同时设置了该选项和 <code>--ssl-cert</code>、<code>--ssl-key</code> 选项时,TiDB 将在客户端出示证书的情况下根据该选项指定的受信任的 CA 列表验证客户端证书。若验证失败,则连接会被终止。</li><li>即使设置了该选项,若客户端没有出示证书,则安全连接仍然继续,不会进行客户端证书验证。</li></ul><h3 id="ssl-cert" style="position:relative"><a href="#ssl-cert" aria-label="ssl cert permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>ssl-cert</code></h3><ul><li>PEM 格式的 SSL 证书文件路径。</li><li>默认值:""</li><li>当同时设置了该选项和 <code>--ssl-key</code> 选项时,TiDB 将接受(但不强制)客户端使用 TLS 安全地连接到 TiDB。</li><li>若指定的证书或私钥无效,则 TiDB 会照常启动,但无法接受安全连接。</li></ul><h3 id="ssl-key" style="position:relative"><a href="#ssl-key" aria-label="ssl key permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>ssl-key</code></h3><ul><li>PEM 格式的 SSL 证书密钥文件路径,即 <code>--ssl-cert</code> 所指定的证书的私钥。</li><li>默认值:""</li><li>目前 TiDB 不支持加载由密码保护的私钥。</li></ul><h3 id="cluster-ssl-ca" style="position:relative"><a href="#cluster-ssl-ca" aria-label="cluster ssl ca permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>cluster-ssl-ca</code></h3><ul><li>CA 根证书,用于用 tls 连接 TiKV/PD</li><li>默认值:""</li></ul><h3 id="cluster-ssl-cert" style="position:relative"><a href="#cluster-ssl-cert" aria-label="cluster ssl cert permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>cluster-ssl-cert</code></h3><ul><li>ssl 证书文件路径,用于用 tls 连接 TiKV/PD</li><li>默认值:""</li></ul><h3 id="cluster-ssl-key" style="position:relative"><a href="#cluster-ssl-key" aria-label="cluster ssl key permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>cluster-ssl-key</code></h3><ul><li>ssl 私钥文件路径,用于用 tls 连接 TiKV/PD</li><li>默认值:""</li></ul><h3 id="spilled-file-encryption-method" style="position:relative"><a href="#spilled-file-encryption-method" aria-label="spilled file encryption method permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>spilled-file-encryption-method</code></h3><ul><li>内存落盘文件的加密方式。</li><li>默认值:<code>"plaintext"</code>,表示不进行加密。</li><li>可选值:<code>"plaintext"</code>、<code>"aes128-ctr"</code>。</li></ul><h3 id="auto-tls" style="position:relative"><a href="#auto-tls" aria-label="auto tls permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>auto-tls</code></h3><ul><li>控制 TiDB 启动时是否自动生成 TLS 证书。</li><li>默认值:<code>false</code></li></ul><h3 id="tls-version" style="position:relative"><a href="#tls-version" aria-label="tls version permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tls-version</code></h3><ul><li>设置用于连接 MySQL 协议的最低 TLS 版本。</li><li>默认值:"",支持 TLSv1.1 及以上版本。</li><li>可选值:<code>"TLSv1.0"</code>、<code>"TLSv1.1"</code>、<code>"TLSv1.2"</code> 和 <code>"TLSv1.3"</code></li></ul><h3 id="auth-token-jwks-span-classversion-mark从-v640-版本开始引入span" style="position:relative"><a href="#auth-token-jwks-span-classversion-mark%E4%BB%8E-v640-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="auth token jwks span classversion mark从 v640 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>auth-token-jwks</code> <span class="version-mark">从 v6.4.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p><code>tidb_auth_token</code> 认证方式仅用于 TiDB Cloud 内部实现,<strong>不要修改该配置</strong>。</p></div></div></div><ul><li>设置 <code>tidb_auth_token</code> 认证方式的 JSON Web Key Sets (JWKS) 的本地文件路径。</li><li>默认值:""</li></ul><h3 id="auth-token-refresh-interval-span-classversion-mark从-v640-版本开始引入span" style="position:relative"><a href="#auth-token-refresh-interval-span-classversion-mark%E4%BB%8E-v640-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="auth token refresh interval span classversion mark从 v640 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>auth-token-refresh-interval</code> <span class="version-mark">从 v6.4.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p><code>tidb_auth_token</code> 认证方式仅用于 TiDB Cloud 内部实现,<strong>不要修改该配置</strong>。</p></div></div></div><ul><li>设置 <code>tidb_auth_token</code> 认证方式的 JWKS 刷新时间间隔。</li><li>默认值:1h</li></ul><h3 id="disconnect-on-expired-password-span-classversion-mark从-v650-版本开始引入span" style="position:relative"><a href="#disconnect-on-expired-password-span-classversion-mark%E4%BB%8E-v650-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="disconnect on expired password span classversion mark从 v650 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>disconnect-on-expired-password</code> <span class="version-mark">从 v6.5.0 版本开始引入</span></h3><ul><li>对于密码已过期的用户,通过 <code>disconnect-on-expired-password</code> 控制 TiDB 服务端是否直接断开该用户的连接。</li><li>默认值:<code>true</code></li><li>默认值为 "true" 表示 TiDB 服务端将直接断开密码已过期用户的连接。设置为 "false" 时,TiDB 服务端将密码已过期用户的连接置于“沙盒模式”,允许该用户建立连接并执行密码重置操作。</li></ul><h3 id="session-token-signing-cert-span-classversion-mark从-v640-版本开始引入span" style="position:relative"><a href="#session-token-signing-cert-span-classversion-mark%E4%BB%8E-v640-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="session token signing cert span classversion mark从 v640 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>session-token-signing-cert</code> <span class="version-mark">从 v6.4.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>该配置与一个未发布的特性相关。<strong>请勿设置该配置</strong>。</p></div></div></div><ul><li>默认值:""</li></ul><h3 id="session-token-signing-key-span-classversion-mark从-v640-版本开始引入span" style="position:relative"><a href="#session-token-signing-key-span-classversion-mark%E4%BB%8E-v640-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="session token signing key span classversion mark从 v640 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>session-token-signing-key</code> <span class="version-mark">从 v6.4.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>该配置与一个未发布的特性相关。<strong>请勿设置该配置</strong>。</p></div></div></div><ul><li>默认值:""</li></ul><h2 id="performance" style="position:relative"><a href="#performance" aria-label="performance permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>performance</h2><p>性能相关配置。</p><h3 id="max-procs" style="position:relative"><a href="#max-procs" aria-label="max procs permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-procs</code></h3><ul><li>TiDB 的 CPU 使用数量。</li><li>默认值:0</li><li>默认值为 0 表示使用机器上所有的 CPU;如果设置成 n,那么 TiDB 会使用 n 个 CPU 数量。</li></ul><h3 id="server-memory-quota-span-classversion-mark从-v409-版本开始引入span" style="position:relative"><a href="#server-memory-quota-span-classversion-mark%E4%BB%8E-v409-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="server memory quota span classversion mark从 v409 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>server-memory-quota</code> <span class="version-mark">从 v4.0.9 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>自 v6.5.0 起,该配置项被废弃。请使用 <a href="/zh/tidb/v7.2/system-variables#tidb_server_memory_limit-从-v640-版本开始引入"><code>tidb_server_memory_limit</code></a> 系统变量进行设置。</p></div></div></div><ul><li>设置 tidb-server 实例的最大内存用量,单位为字节。</li><li>默认值:0</li><li>默认值为 0 表示无内存限制。</li></ul><h3 id="txn-entry-size-limit-span-classversion-mark从-v50-版本开始引入span" style="position:relative"><a href="#txn-entry-size-limit-span-classversion-mark%E4%BB%8E-v50-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="txn entry size limit span classversion mark从 v50 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>txn-entry-size-limit</code> <span class="version-mark">从 v5.0 版本开始引入</span></h3><ul><li>TiDB 单行数据的大小限制</li><li>默认值:6291456</li><li>单位:Byte</li><li>事务中单个 key-value 记录的大小限制。若超出该限制,TiDB 将会返回 <code>entry too large</code> 错误。该配置项的最大值不超过 <code>125829120</code>(表示 120MB)。</li><li>注意,TiKV 有类似的限制。若单个写入请求的数据量大小超出 <a href="/zh/tidb/v7.2/tikv-configuration-file#raft-entry-max-size"><code>raft-entry-max-size</code></a>,默认为 8MB,TiKV 会拒绝处理该请求。当表的一行记录较大时,需要同时修改这两个配置。</li><li><a href="/zh/tidb/v7.2/system-variables#max_allowed_packet-从-v610-版本开始引入"><code>max_allowed_packet</code></a> (MySQL 协议的最大数据包大小) 的默认值为 <code>67108864</code>(64 MiB)。如果一行记录的大小超过 <code>max_allowed_packet</code>,该行记录会被截断。</li><li><a href="#txn-total-size-limit"><code>txn-total-size-limit</code></a>(TiDB 单个事务大小限制)的默认值为 100 MiB。如果将 <code>txn-entry-size-limit</code> 的值设置为 100 MiB 以上,需要相应地调大 <code>txn-total-size-limit</code> 的值。</li></ul><h3 id="txn-total-size-limit" style="position:relative"><a href="#txn-total-size-limit" aria-label="txn total size limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>txn-total-size-limit</code></h3><ul><li>TiDB 单个事务大小限制</li><li>默认值:104857600</li><li>单位:Byte</li><li>单个事务中,所有 key-value 记录的总大小不能超过该限制。该配置项的最大值不超过 <code>1099511627776</code>(表示 1TB)。注意,如果使用了以 <code>Kafka</code> 为下游消费者的 <code>binlog</code>,如:<code>arbiter</code> 集群,该配置项的值不能超过 <code>1073741824</code>(表示 1GB),因为这是 <code>Kafka</code> 的处理单条消息的最大限制,超过该限制 <code>Kafka</code> 将会报错。</li><li>在 v6.5.0 及之后的版本中,不再推荐使用该配置项,事务的内存大小会被累计计入所在会话的内存使用量中,并由 <a href="/zh/tidb/v7.2/system-variables#tidb_mem_quota_query"><code>tidb_mem_quota_query</code></a> 变量在单个会话内存超阈值时采取控制行为。为了向前兼容,由低版本升级至 v6.5.0 及更高版本时,该配置项的行为如下所述:<ul><li>若该配置项未设置,或设置为默认值 (<code>104857600</code>),升级后事务内存大小将会计入所在会话的内存使用中,由 <code>tidb_mem_quota_query</code> 变量控制。</li><li>若该配置项未设为默认值 (<code>104857600</code>),升级前后该配置项仍生效,对单个事务大小的限制行为不会发生变化,事务内存大小不由 <code>tidb_mem_quota_query</code> 控制。</li></ul></li></ul><h3 id="max-txn-ttl" style="position:relative"><a href="#max-txn-ttl" aria-label="max txn ttl permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-txn-ttl</code></h3><ul><li>单个事务持锁的最长时间,超过该时间,该事务的锁可能会被其他事务清除,导致该事务无法成功提交。</li><li>默认值:3600000</li><li>单位:毫秒</li><li>超过此时间的事务只能执行提交或者回滚,提交不一定能够成功。</li></ul><h3 id="stmt-count-limit" style="position:relative"><a href="#stmt-count-limit" aria-label="stmt count limit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>stmt-count-limit</code></h3><ul><li>TiDB 单个事务允许的最大语句条数限制。</li><li>默认值:5000</li><li>在一个事务中,超过 <code>stmt-count-limit</code> 条语句后还没有 rollback 或者 commit,TiDB 将会返回 <code>statement count 5001 exceeds the transaction limitation, autocommit = false</code> 错误。该限制只在可重试的乐观事务中生效,如果使用悲观事务或者关闭了<a href="/zh/tidb/v7.2/optimistic-transaction#事务的重试">事务重试</a>,事务中的语句数将不受此限制。</li></ul><h3 id="tcp-keep-alive" style="position:relative"><a href="#tcp-keep-alive" aria-label="tcp keep alive permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tcp-keep-alive</code></h3><ul><li>TiDB 在 TCP 层开启 keepalive。</li><li>默认值:true</li></ul><h3 id="tcp-no-delay" style="position:relative"><a href="#tcp-no-delay" aria-label="tcp no delay permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tcp-no-delay</code></h3><ul><li>控制 TiDB 是否在 TCP 层开启 TCP_NODELAY。开启后,TiDB 将禁用 TCP/IP 协议中的 Nagle 算法,允许小数据包的发送,可以降低网络延时,适用于延时敏感型且数据传输量比较小的应用。</li><li>默认值:true</li></ul><h3 id="cross-join" style="position:relative"><a href="#cross-join" aria-label="cross join permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>cross-join</code></h3><ul><li>默认值:true</li><li>默认可以执行在做 join 时两边表没有任何条件(where 字段)的语句;如果设置为 false,则有这样的 join 语句出现时,server 会拒绝执行</li></ul><h3 id="stats-lease" style="position:relative"><a href="#stats-lease" aria-label="stats lease permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>stats-lease</code></h3><ul><li>TiDB 重载统计信息,更新表行数,检查是否需要自动 analyze,利用 feedback 更新统计信息以及加载列的统计信息的时间间隔。</li><li>默认值:3s<ul><li>每隔 <code>stats-lease</code> 时间,TiDB 会检查统计信息是否有更新,如果有会将其更新到内存中</li><li>每隔 <code>20 * stats-lease</code> 时间,TiDB 会将 DML 产生的总行数以及修改的行数变化更新到系统表中</li><li>每隔 <code>stats-lease</code> 时间,TiDB 会检查是否有表或者索引需要自动 analyze</li><li>每隔 <code>stats-lease</code> 时间,TiDB 会检查是否有列的统计信息需要被加载到内存中</li><li>每隔 <code>200 * stats-lease</code> 时间,TiDB 会将内存中缓存的 feedback 写入系统表中</li><li>每隔 <code>5 * stats-lease</code> 时间,TiDB 会读取系统表中的 feedback,更新内存中缓存的统计信息</li></ul></li><li>当 <code>stats-lease</code> 为 0s 时,TiDB 会以 3s 的时间间隔周期性的读取系统表中的统计信息并更新内存中缓存的统计信息。但不会自动修改统计信息相关系统表,具体来说,TiDB 不再自动修改这些表:<ul><li><code>mysql.stats_meta</code>:TiDB 不再自动记录事务中对某张表的修改行数,也不会更新到这个系统表中</li><li><code>mysql.stats_histograms</code>/<code>mysql.stats_buckets</code> 和 <code>mysql.stats_top_n</code>:TiDB 不再自动 analyze 和主动更新统计信息</li><li><code>mysql.stats_feedback</code>:TiDB 不再根据被查询的数据反馈的部分统计信息更新表和索引的统计信息</li></ul></li></ul><h3 id="pseudo-estimate-ratio" style="position:relative"><a href="#pseudo-estimate-ratio" aria-label="pseudo estimate ratio permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>pseudo-estimate-ratio</code></h3><ul><li>修改过的行数/表的总行数的比值,超过该值时系统会认为统计信息已经过期,会采用 pseudo 的统计信息。</li><li>默认值:0.8</li><li>最小值:0</li><li>最大值:1</li></ul><h3 id="force-priority" style="position:relative"><a href="#force-priority" aria-label="force priority permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>force-priority</code></h3><ul><li>把所有的语句优先级设置为 force-priority 的值。</li><li>默认值:NO_PRIORITY</li><li>可选值:默认值 NO_PRIORITY 表示不强制改变执行语句的优先级,其它优先级从低到高可设置为 LOW_PRIORITY、DELAYED 或 HIGH_PRIORITY。</li><li>自 v6.1.0 起,已改用配置项 <a href="/zh/tidb/v7.2/tidb-configuration-file#tidb_force_priority"><code>instance.tidb_force_priority</code></a> 或系统变量 <a href="/zh/tidb/v7.2/system-variables#tidb_force_priority"><code>tidb_force_priority</code></a> 来将所有语句优先级设为 force-priority 的值。<code>force-priority</code> 仍可使用,但如果同时设置了 <code>force-priority</code> 与 <code>instance.tidb_force_priority</code>,TiDB 将采用 <code>instance.tidb_force_priority</code> 的值。</li></ul><h3 id="distinct-agg-push-down" style="position:relative"><a href="#distinct-agg-push-down" aria-label="distinct agg push down permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>distinct-agg-push-down</code></h3><ul><li>设置优化器是否执行将带有 <code>Distinct</code> 的聚合函数(比如 <code>select count(distinct a) from t</code>)下推到 Coprocessor 的优化操作。</li><li>默认值:false</li><li>该变量作为系统变量 <a href="/zh/tidb/v7.2/system-variables#tidb_opt_distinct_agg_push_down"><code>tidb_opt_distinct_agg_push_down</code></a> 的初始值。</li></ul><h3 id="enforce-mpp" style="position:relative"><a href="#enforce-mpp" aria-label="enforce mpp permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enforce-mpp</code></h3><ul><li>用于控制是否忽略优化器代价估算,强制使用 TiFlash 的 MPP 模式执行查询。</li><li>默认值:false</li><li>该配置项可以控制系统变量 <a href="/zh/tidb/v7.2/system-variables#tidb_enforce_mpp-从-v51-版本开始引入"><code>tidb_enforce_mpp</code></a> 的初始值。例如,当设置该配置项为 true 时,<code>tidb_enforce_mpp</code> 的默认值为 ON。</li></ul><h3 id="stats-load-concurrency-span-classversion-mark从-v540-版本开始引入span" style="position:relative"><a href="#stats-load-concurrency-span-classversion-mark%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="stats load concurrency span classversion mark从 v540 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>stats-load-concurrency</code> <span class="version-mark">从 v5.4.0 版本开始引入</span></h3><ul><li>TiDB 统计信息同步加载功能可以并发处理的最大列数</li><li>默认值:5</li><li>目前的合法值范围:<code>[1, 128]</code></li></ul><h3 id="stats-load-queue-size-span-classversion-mark从-v540-版本开始引入span" style="position:relative"><a href="#stats-load-queue-size-span-classversion-mark%E4%BB%8E-v540-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="stats load queue size span classversion mark从 v540 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>stats-load-queue-size</code> <span class="version-mark">从 v5.4.0 版本开始引入</span></h3><ul><li>用于设置 TiDB 统计信息同步加载功能最多可以缓存多少列的请求</li><li>默认值:1000</li><li>目前的合法值范围:<code>[1, 100000]</code></li></ul><h3 id="enable-stats-cache-mem-quota-span-classversion-mark从-v610-版本开始引入span" style="position:relative"><a href="#enable-stats-cache-mem-quota-span-classversion-mark%E4%BB%8E-v610-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="enable stats cache mem quota span classversion mark从 v610 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable-stats-cache-mem-quota</code> <span class="version-mark">从 v6.1.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>该变量为实验特性,不推荐在生产环境中使用。</p></div></div></div><ul><li>用于控制 TiDB 是否开启统计信息缓存的内存上限。</li><li>默认值:false</li></ul><h3 id="lite-init-stats-span-classversion-mark从-v710-版本开始引入span" style="position:relative"><a href="#lite-init-stats-span-classversion-mark%E4%BB%8E-v710-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="lite init stats span classversion mark从 v710 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>lite-init-stats</code> <span class="version-mark">从 v7.1.0 版本开始引入</span></h3><ul><li>用于控制 TiDB 启动时是否采用轻量级的统计信息初始化。</li><li>默认值:在 v7.2.0 之前版本中为 <code>false</code>,在 v7.2.0 及之后的版本中为 <code>true</code>。</li><li>当 <code>lite-init-stats</code> 为 <code>true</code> 时,统计信息初始化时列和索引的直方图、TopN、Count-Min Sketch 均不会加载到内存中。当 <code>lite-init-stats</code> 为 <code>false</code> 时,统计信息初始化时索引和主键的直方图、TopN、Count-Min Sketch 会被加载到内存中,非主键列的直方图、TopN、Count-Min Sketch 不会加载到内存中。当优化器需要某一索引或者列的直方图、TopN、Count-Min Sketch 时,这些统计信息会被同步或异步加载到内存中(由 <a href="/zh/tidb/v7.2/system-variables#tidb_stats_load_sync_wait-从-v540-版本开始引入"><code>tidb_stats_load_sync_wait</code></a> 控制)。</li><li>将 <code>lite-init-stats</code> 设置为 true,可以加速统计信息初始化,避免加载不必要的统计信息,从而降低 TiDB 的内存使用。详情请参考<a href="/zh/tidb/v7.2/statistics#统计信息的加载">统计信息的加载</a>。</li></ul><h3 id="force-init-stats-span-classversion-mark从-v710-版本开始引入span" style="position:relative"><a href="#force-init-stats-span-classversion-mark%E4%BB%8E-v710-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="force init stats span classversion mark从 v710 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>force-init-stats</code> <span class="version-mark">从 v7.1.0 版本开始引入</span></h3><ul><li>用于控制 TiDB 启动时是否在统计信息初始化完成后再对外提供服务。</li><li>默认值:在 v7.2.0 之前版本中为 <code>false</code>,在 v7.2.0 及之后的版本中为 <code>true</code>。</li><li>当 <code>force-init-stats</code> 为 <code>true</code> 时,TiDB 启动时会等到统计信息初始化完成后再对外提供服务。需要注意的是,在表和分区数量较多且 <a href="/zh/tidb/v7.2/tidb-configuration-file#lite-init-stats-从-v710-版本开始引入"><code>lite-init-stats</code></a> 为 <code>false</code> 的情况下,<code>force-init-stats</code> 为 <code>true</code> 可能会导致 TiDB 从启动到开始对外提供服务的时间变长。</li><li>当 <code>force-init-stats</code> 为 <code>false</code> 时,TiDB 在统计信息初始化未完成时即可对外提供服务,但由于统计信息初始化未完成,优化器会用 pseudo 统计信息进行决策,可能会产生不合理的执行计划。</li></ul><h2 id="opentracing" style="position:relative"><a href="#opentracing" aria-label="opentracing permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>opentracing</h2><p>opentracing 的相关的设置。</p><h3 id="enable" style="position:relative"><a href="#enable" aria-label="enable permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable</code></h3><ul><li>开启 opentracing 跟踪 TiDB 部分组件的调用开销。注意开启后会有一定的性能损失。</li><li>默认值:false</li></ul><h3 id="rpc-metrics" style="position:relative"><a href="#rpc-metrics" aria-label="rpc metrics permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>rpc-metrics</code></h3><ul><li>开启 rpc metrics。</li><li>默认值:false</li></ul><h2 id="opentracingsampler" style="position:relative"><a href="#opentracingsampler" aria-label="opentracingsampler permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>opentracing.sampler</h2><p>opentracing.sampler 相关的设置。</p><h3 id="type" style="position:relative"><a href="#type" aria-label="type permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>type</code></h3><ul><li>opentracing 采样器的类型。字符串取值大小写不敏感。</li><li>默认值:"const"</li><li>可选值:"const","probabilistic","ratelimiting",remote"</li></ul><h3 id="param" style="position:relative"><a href="#param" aria-label="param permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>param</code></h3><ul><li>采样器参数。<ul><li>对于 const 类型,可选值为 0 或 1,表示是否开启。</li><li>对于 probabilistic 类型,参数为采样概率,可选值为 0 到 1 之间的浮点数。</li><li>对于 ratelimiting 类型,参数为每秒采样 span 的个数。</li><li>对于 remote 类型,参数为采样概率,可选值为 0 到 1 之间的浮点数。</li></ul></li><li>默认值:1.0</li></ul><h3 id="sampling-server-url" style="position:relative"><a href="#sampling-server-url" aria-label="sampling server url permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>sampling-server-url</code></h3><ul><li>jaeger-agent 采样服务器的 HTTP URL 地址。</li><li>默认值:""</li></ul><h3 id="max-operations" style="position:relative"><a href="#max-operations" aria-label="max operations permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-operations</code></h3><ul><li>采样器可追踪的最大操作数。如果一个操作没有被追踪,会启用默认的 probabilistic 采样器。</li><li>默认值:0</li></ul><h3 id="sampling-refresh-interval" style="position:relative"><a href="#sampling-refresh-interval" aria-label="sampling refresh interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>sampling-refresh-interval</code></h3><ul><li>控制远程轮询 jaeger-agent 采样策略的频率。</li><li>默认值:0</li></ul><h2 id="opentracingreporter" style="position:relative"><a href="#opentracingreporter" aria-label="opentracingreporter permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>opentracing.reporter</h2><p>opentracing.reporter 相关的设置。</p><h3 id="queue-size" style="position:relative"><a href="#queue-size" aria-label="queue size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>queue-size</code></h3><ul><li>reporter 在内存中记录 spans 个数的队列容量。</li><li>默认值:0</li></ul><h3 id="buffer-flush-interval" style="position:relative"><a href="#buffer-flush-interval" aria-label="buffer flush interval permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>buffer-flush-interval</code></h3><ul><li>reporter 缓冲区的刷新频率。</li><li>默认值:0</li></ul><h3 id="log-spans" style="position:relative"><a href="#log-spans" aria-label="log spans permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>log-spans</code></h3><ul><li>是否为所有提交的 span 打印日志。</li><li>默认值:false</li></ul><h3 id="local-agent-host-port" style="position:relative"><a href="#local-agent-host-port" aria-label="local agent host port permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>local-agent-host-port</code></h3><ul><li>reporter 向 jaeger-agent 发送 span 的地址。</li><li>默认值:""</li></ul><h2 id="tikv-client" style="position:relative"><a href="#tikv-client" aria-label="tikv client permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>tikv-client</h2><h3 id="grpc-connection-count" style="position:relative"><a href="#grpc-connection-count" aria-label="grpc connection count permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>grpc-connection-count</code></h3><ul><li>跟每个 TiKV 之间建立的最大连接数。</li><li>默认值:4</li></ul><h3 id="grpc-keepalive-time" style="position:relative"><a href="#grpc-keepalive-time" aria-label="grpc keepalive time permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>grpc-keepalive-time</code></h3><ul><li>TiDB 与 TiKV 节点之间 rpc 连接 keepalive 时间间隔,如果超过该值没有网络包,grpc client 会 ping 一下 TiKV 查看是否存活。</li><li>默认值:10</li><li>单位:秒</li></ul><h3 id="grpc-keepalive-timeout" style="position:relative"><a href="#grpc-keepalive-timeout" aria-label="grpc keepalive timeout permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>grpc-keepalive-timeout</code></h3><ul><li>TiDB 与 TiKV 节点 rpc keepalive 检查的超时时间</li><li>默认值:3</li><li>单位:秒</li></ul><h3 id="grpc-compression-type" style="position:relative"><a href="#grpc-compression-type" aria-label="grpc compression type permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>grpc-compression-type</code></h3><ul><li>控制 TiDB 向 TiKV 节点传输数据使用的压缩算法类型。默认值为 "none" 即不压缩。修改为 "gzip" 可以使用 gzip 算法压缩数据。</li><li>默认值:"none"</li><li>可选值:"none", "gzip"</li></ul><h3 id="commit-timeout" style="position:relative"><a href="#commit-timeout" aria-label="commit timeout permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>commit-timeout</code></h3><ul><li>执行事务提交时,最大的超时时间。</li><li>默认值:41s</li><li>这个值必须是大于两倍 Raft 选举的超时时间。</li></ul><h3 id="max-batch-size" style="position:relative"><a href="#max-batch-size" aria-label="max batch size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-batch-size</code></h3><ul><li>批量发送 rpc 封包的最大数量,如果不为 0,将使用 BatchCommands api 发送请求到 TiKV,可以在并发度高的情况降低 rpc 的延迟,推荐不修改该值。</li><li>默认值:128</li></ul><h3 id="max-batch-wait-time" style="position:relative"><a href="#max-batch-wait-time" aria-label="max batch wait time permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max-batch-wait-time</code></h3><ul><li>等待 <code>max-batch-wait-time</code> 纳秒批量将此期间的数据包封装成一个大包发送给 TiKV 节点,仅在 <code>tikv-client.max-batch-size</code> 值大于 0 时有效,不推荐修改该值。</li><li>默认值:0</li><li>单位:纳秒</li></ul><h3 id="batch-wait-size" style="position:relative"><a href="#batch-wait-size" aria-label="batch wait size permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>batch-wait-size</code></h3><ul><li>批量向 TiKV 发送的封包最大数量,不推荐修改该值。</li><li>默认值:8</li><li>若此值为 0 表示关闭此功能。</li></ul><h3 id="overload-threshold" style="position:relative"><a href="#overload-threshold" aria-label="overload threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>overload-threshold</code></h3><ul><li>TiKV 的负载阈值,如果超过此阈值,会收集更多的 batch 封包,来减轻 TiKV 的压力。仅在 <code>tikv-client.max-batch-size</code> 值大于 0 时有效,不推荐修改该值。</li><li>默认值:200</li></ul><h2 id="tikv-clientcopr-cache-span-classversion-mark从-v400-版本开始引入span" style="position:relative"><a href="#tikv-clientcopr-cache-span-classversion-mark%E4%BB%8E-v400-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="tikv clientcopr cache span classversion mark从 v400 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>tikv-client.copr-cache <span class="version-mark">从 v4.0.0 版本开始引入</span></h2><p>本部分介绍 Coprocessor Cache 相关的配置项。</p><h3 id="capacity-mb" style="position:relative"><a href="#capacity-mb" aria-label="capacity mb permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>capacity-mb</code></h3><ul><li>缓存的总数据量大小。当缓存空间满时,旧缓存条目将被逐出。值为 0.0 时表示关闭 Coprocessor Cache。</li><li>默认值:1000.0</li><li>单位:MB</li><li>类型:Float</li></ul><h2 id="binlog" style="position:relative"><a href="#binlog" aria-label="binlog permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>binlog</h2><p>TiDB Binlog 相关配置。</p><h3 id="enable-1" style="position:relative"><a href="#enable-1" aria-label="enable 1 permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>enable</code></h3><ul><li>binlog 开关。</li><li>默认值:false</li></ul><h3 id="write-timeout" style="position:relative"><a href="#write-timeout" aria-label="write timeout permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>write-timeout</code></h3><ul><li>写 binlog 的超时时间,推荐不修改该值。</li><li>默认值:15s</li><li>单位:秒</li></ul><h3 id="ignore-error" style="position:relative"><a href="#ignore-error" aria-label="ignore error permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>ignore-error</code></h3><ul><li>忽略写 binlog 发生的错误时处理开关,推荐不修改该值。</li><li>默认值:false</li><li>如果设置为 <code>true</code>,发生错误时,TiDB 会停止写入 binlog,并且在监控项 <code>tidb_server_critical_error_total</code> 上计数加 1;如果设置为 <code>false</code>,写入 binlog 失败,会停止整个 TiDB 的服务。</li></ul><h3 id="binlog-socket" style="position:relative"><a href="#binlog-socket" aria-label="binlog socket permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>binlog-socket</code></h3><ul><li>binlog 输出网络地址。</li><li>默认值:""</li></ul><h3 id="strategy" style="position:relative"><a href="#strategy" aria-label="strategy permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>strategy</code></h3><ul><li>binlog 输出时选择 pump 的策略,仅支持 hash,range 方法。</li><li>默认值:"range"</li></ul><h2 id="status" style="position:relative"><a href="#status" aria-label="status permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>status</h2><p>TiDB 服务状态相关配置。</p><h3 id="report-status" style="position:relative"><a href="#report-status" aria-label="report status permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>report-status</code></h3><ul><li>开启 HTTP API 服务的开关。</li><li>默认值:true</li></ul><h3 id="record-db-qps" style="position:relative"><a href="#record-db-qps" aria-label="record db qps permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>record-db-qps</code></h3><ul><li>输出与 database 相关的 QPS metrics 到 Prometheus 的开关。</li><li>默认值:false</li></ul><h2 id="pessimistic-txn" style="position:relative"><a href="#pessimistic-txn" aria-label="pessimistic txn permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>pessimistic-txn</h2><p>悲观事务使用方法请参考 <a href="/zh/tidb/v7.2/pessimistic-transaction">TiDB 悲观事务模式</a>。</p><h3 id="max-retry-count" style="position:relative"><a href="#max-retry-count" aria-label="max retry count permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>max-retry-count</h3><ul><li>悲观事务中单个语句最大重试次数,重试次数超过该限制,语句执行将会报错。</li><li>默认值:256</li></ul><h3 id="deadlock-history-capacity" style="position:relative"><a href="#deadlock-history-capacity" aria-label="deadlock history capacity permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>deadlock-history-capacity</h3><ul><li>单个 TiDB 节点的 <a href="/zh/tidb/v7.2/information-schema-deadlocks"><code>INFORMATION_SCHEMA.DEADLOCKS</code></a> 表最多可记录的死锁事件个数。当表的容量已满时,如果再次发生死锁错误,最早的一次死锁错误的信息将从表中移除。</li><li>默认值:10</li><li>最小值:0</li><li>最大值:10000</li></ul><h3 id="deadlock-history-collect-retryable" style="position:relative"><a href="#deadlock-history-collect-retryable" aria-label="deadlock history collect retryable permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>deadlock-history-collect-retryable</h3><ul><li>控制 <a href="/zh/tidb/v7.2/information-schema-deadlocks"><code>INFORMATION_SCHEMA.DEADLOCKS</code></a> 表中是否收集可重试的死锁错误信息。详见 <code>DEADLOCKS</code> 表文档的<a href="/zh/tidb/v7.2/information-schema-deadlocks#可重试的死锁错误">可重试的死锁错误</a>小节。</li><li>默认值:false</li></ul><h3 id="pessimistic-auto-commit" style="position:relative"><a href="#pessimistic-auto-commit" aria-label="pessimistic auto commit permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>pessimistic-auto-commit</h3><ul><li><p>用来控制开启全局悲观事务模式下 (<code>tidb_txn_mode='pessimistic'</code>) 时,自动提交的事务使用的事务模式。默认情况下,即使开启全局悲观事务模式,自动提交事务依然使用乐观事务模式来执行。当开启该配置项后(设置为 <code>true</code>),在全局悲观事务模式下,自动提交事务将也使用悲观事务模式执行。行为与其他显式提交的悲观事务相同。</p></li><li><p>对于存在冲突的场景,开启本开关可以将自动提交事务纳入全局等锁管理中,从而避免死锁,改善冲突造成死锁带来的时延尖刺。</p></li><li><p>对于不存在冲突的场景,如果有大量自动提交事务(例如自动提交事务数量占业务数量的比例超过一半甚至更多,需要根据实际情况分析)且单个事务操作数据量较大的情况下,开启该配置项会造成性能回退。例如,自动提交的 <code>INSERT INTO SELECT</code> 语句。</p></li><li><p>默认值:false</p></li></ul><h3 id="constraint-check-in-place-pessimistic-span-classversion-mark从-v640-版本开始引入span" style="position:relative"><a href="#constraint-check-in-place-pessimistic-span-classversion-mark%E4%BB%8E-v640-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="constraint check in place pessimistic span classversion mark从 v640 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>constraint-check-in-place-pessimistic <span class="version-mark">从 v6.4.0 版本开始引入</span></h3><ul><li>用来控制系统变量 <a href="/zh/tidb/v7.2/system-variables#tidb_constraint_check_in_place_pessimistic-从-v630-版本开始引入"><code>tidb_constraint_check_in_place_pessimistic</code></a> 的默认值。</li><li>默认值:true</li></ul><h2 id="isolation-read" style="position:relative"><a href="#isolation-read" aria-label="isolation read permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>isolation-read</h2><p>读取隔离相关的配置项。</p><h3 id="engines" style="position:relative"><a href="#engines" aria-label="engines permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>engines</code></h3><ul><li>用于控制 TiDB 节点允许从哪种类型的引擎读取数据。</li><li>默认值:<!-- -->["tikv", "tiflash", "tidb"]<!-- -->,表示由优化器自动选择存储引擎。</li><li>可选值:"tikv", "tiflash", "tidb" 的组合,如:<!-- -->["tikv", "tidb"]<!-- -->、<!-- -->["tiflash", "tidb"]<!-- -->。</li></ul><h2 id="instance" style="position:relative"><a href="#instance" aria-label="instance permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>instance</h2><h3 id="tidb_enable_collect_execution_info" style="position:relative"><a href="#tidb_enable_collect_execution_info" aria-label="tidb_enable_collect_execution_info permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tidb_enable_collect_execution_info</code></h3><ul><li>用于控制是否同时将各个执行算子的执行信息记录入 slow query log 中。</li><li>默认值:true</li><li>在 v6.1.0 之前,该功能通过配置项 <code>enable-collect-execution-info</code> 进行设置。</li></ul><h3 id="tidb_enable_slow_log" style="position:relative"><a href="#tidb_enable_slow_log" aria-label="tidb_enable_slow_log permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tidb_enable_slow_log</code></h3><ul><li>是否开启慢查询日志。</li><li>默认值:true</li><li>可以设置成 <code>true</code> 或 <code>false</code> 来启用或禁用慢查询日志。</li><li>在 v6.1.0 之前,该功能通过配置项 <code>enable-slow-log</code> 进行设置。</li></ul><h3 id="tidb_slow_log_threshold" style="position:relative"><a href="#tidb_slow_log_threshold" aria-label="tidb_slow_log_threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tidb_slow_log_threshold</code></h3><ul><li>输出慢日志的耗时阈值。</li><li>默认值:300</li><li>范围:<code>[-1, 9223372036854775807]</code></li><li>单位:毫秒</li><li>当查询大于这个值,就会当做是一个慢查询,输出到慢查询日志。</li><li>在 v6.1.0 之前,该功能通过配置项 <code>slow-threshold</code> 进行设置。</li></ul><h3 id="tidb_expensive_query_time_threshold" style="position:relative"><a href="#tidb_expensive_query_time_threshold" aria-label="tidb_expensive_query_time_threshold permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tidb_expensive_query_time_threshold</code></h3><ul><li>控制打印 expensive query 日志的阈值时间,默认值是 60 秒。expensive query 日志和慢日志的差别是,慢日志是在语句执行完后才打印,expensive query 日志可以把正在执行中且执行时间超过该阈值的语句及其相关信息打印出来。</li><li>默认值:60</li><li>范围:<code>[10, 2147483647]</code></li><li>单位:秒</li><li>在 v5.4.0 之前,该功能通过配置项 <code>expensive-threshold</code> 进行设置。</li></ul><h3 id="tidb_record_plan_in_slow_log" style="position:relative"><a href="#tidb_record_plan_in_slow_log" aria-label="tidb_record_plan_in_slow_log permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tidb_record_plan_in_slow_log</code></h3><ul><li>在慢日志中记录执行计划。</li><li>默认值:1</li><li>0 表示关闭,1 表示开启,默认开启,该值作为系统变量 <a href="/zh/tidb/v7.2/system-variables#tidb_record_plan_in_slow_log"><code>tidb_record_plan_in_slow_log</code></a> 的初始值。</li><li>在 v6.1.0 之前,该功能通过配置项 <code>record-plan-in-slow-log</code> 进行设置。</li></ul><h3 id="tidb_force_priority" style="position:relative"><a href="#tidb_force_priority" aria-label="tidb_force_priority permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tidb_force_priority</code></h3><ul><li>把所有的语句优先级设置为系统变量 <code>tidb_force_priority</code> 的值。</li><li>默认值:NO_PRIORITY</li><li>默认值 NO_PRIORITY 表示不强制改变执行语句的优先级,其它优先级从低到高可设置为 LOW_PRIORITY、DELAYED 或 HIGH_PRIORITY。</li><li>在 v6.1.0 之前,该功能通过配置项 <code>force-priority</code> 进行设置。</li></ul><h3 id="max_connections" style="position:relative"><a href="#max_connections" aria-label="max_connections permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>max_connections</code></h3><ul><li>TiDB 中同时允许的最大客户端连接数,用于资源控制。</li><li>默认值:0</li><li>取值范围:<code>[0, 100000]</code></li><li>默认情况下,TiDB 不限制客户端连接数。当本配置项的值大于 <code>0</code> 且客户端连接数到达此值时,TiDB 服务端将会拒绝新的客户端连接。</li><li>该值作为系统变量 <a href="/zh/tidb/v7.2/system-variables#max_connections"><code>max_connections</code></a> 的初始值。</li><li>在 v6.2.0 之前,该功能通过配置项 <code>max-server-connections</code> 进行设置。</li></ul><h3 id="tidb_enable_ddl" style="position:relative"><a href="#tidb_enable_ddl" aria-label="tidb_enable_ddl permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tidb_enable_ddl</code></h3><ul><li>用于表示该 tidb-server 是否可以成为 DDL owner。</li><li>默认值:true</li><li>该值作为系统变量 <a href="/zh/tidb/v7.2/system-variables#tidb_enable_ddl-从-v630-版本开始引入"><code>tidb_enable_ddl</code></a> 的初始值。</li><li>在 v6.3.0 之前,该功能由配置项 <code>run-ddl</code> 进行设置。</li></ul><h3 id="tidb_stmt_summary_enable_persistent-span-classversion-mark从-v660-版本开始引入span" style="position:relative"><a href="#tidb_stmt_summary_enable_persistent-span-classversion-mark%E4%BB%8E-v660-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="tidb_stmt_summary_enable_persistent span classversion mark从 v660 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tidb_stmt_summary_enable_persistent</code> <span class="version-mark">从 v6.6.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>statements summary 持久化目前为实验特性,不建议在生产环境中使用。该功能可能会在未事先通知的情况下发生变化或删除。如果发现 bug,请在 GitHub 上提 <a href="https://github.com/pingcap/tidb/issues" target="_blank" referrerpolicy="no-referrer-when-downgrade">issue</a> 反馈。</p></div></div></div><ul><li>用于控制是否开启 statements summary 持久化。</li><li>默认值:false</li><li>详情参考<a href="/zh/tidb/v7.2/statement-summary-tables#持久化-statements-summary">持久化 statements summary</a>。</li></ul><h3 id="tidb_stmt_summary_filename-span-classversion-mark从-v660-版本开始引入span" style="position:relative"><a href="#tidb_stmt_summary_filename-span-classversion-mark%E4%BB%8E-v660-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="tidb_stmt_summary_filename span classversion mark从 v660 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tidb_stmt_summary_filename</code> <span class="version-mark">从 v6.6.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>statements summary 持久化目前为实验特性,不建议在生产环境中使用。该功能可能会在未事先通知的情况下发生变化或删除。如果发现 bug,请在 GitHub 上提 <a href="https://github.com/pingcap/tidb/issues" target="_blank" referrerpolicy="no-referrer-when-downgrade">issue</a> 反馈。</p></div></div></div><ul><li>当开启了 statements summary 持久化时,该配置用于指定持久化数据所写入的文件。</li><li>默认值:"tidb-statements.log"</li></ul><h3 id="tidb_stmt_summary_file_max_days-span-classversion-mark从-v660-版本开始引入span" style="position:relative"><a href="#tidb_stmt_summary_file_max_days-span-classversion-mark%E4%BB%8E-v660-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="tidb_stmt_summary_file_max_days span classversion mark从 v660 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tidb_stmt_summary_file_max_days</code> <span class="version-mark">从 v6.6.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>statements summary 持久化目前为实验特性,不建议在生产环境中使用。该功能可能会在未事先通知的情况下发生变化或删除。如果发现 bug,请在 GitHub 上提 <a href="https://github.com/pingcap/tidb/issues" target="_blank" referrerpolicy="no-referrer-when-downgrade">issue</a> 反馈。</p></div></div></div><ul><li>当开启了 statements summary 持久化时,该配置用于指定持久化数据文件所保留的最大天数。</li><li>默认值:3</li><li>单位:天</li><li>可结合数据保留时长需求与磁盘空间占用适当调整。</li></ul><h3 id="tidb_stmt_summary_file_max_size-span-classversion-mark从-v660-版本开始引入span" style="position:relative"><a href="#tidb_stmt_summary_file_max_size-span-classversion-mark%E4%BB%8E-v660-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="tidb_stmt_summary_file_max_size span classversion mark从 v660 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tidb_stmt_summary_file_max_size</code> <span class="version-mark">从 v6.6.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>statements summary 持久化目前为实验特性,不建议在生产环境中使用。该功能可能会在未事先通知的情况下发生变化或删除。如果发现 bug,请在 GitHub 上提 <a href="https://github.com/pingcap/tidb/issues" target="_blank" referrerpolicy="no-referrer-when-downgrade">issue</a> 反馈。</p></div></div></div><ul><li>当开启了 statements summary 持久化时,该配置用于限制持久化数据单个文件的大小。</li><li>默认值:64</li><li>单位:MiB</li><li>可结合数据保留时长需求与磁盘空间占用适当调整。</li></ul><h3 id="tidb_stmt_summary_file_max_backups-span-classversion-mark从-v660-版本开始引入span" style="position:relative"><a href="#tidb_stmt_summary_file_max_backups-span-classversion-mark%E4%BB%8E-v660-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="tidb_stmt_summary_file_max_backups span classversion mark从 v660 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>tidb_stmt_summary_file_max_backups</code> <span class="version-mark">从 v6.6.0 版本开始引入</span></h3><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>statements summary 持久化目前为实验特性,不建议在生产环境中使用。该功能可能会在未事先通知的情况下发生变化或删除。如果发现 bug,请在 GitHub 上提 <a href="https://github.com/pingcap/tidb/issues" target="_blank" referrerpolicy="no-referrer-when-downgrade">issue</a> 反馈。</p></div></div></div><ul><li>当开启了 statements summary 持久化时,该配置用于限制持久化数据文件最大数量,<code>0</code> 表示不限制。</li><li>默认值:0</li><li>可结合数据保留时长需求与磁盘空间占用适当调整。</li></ul><h2 id="proxy-protocol" style="position:relative"><a href="#proxy-protocol" aria-label="proxy protocol permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>proxy-protocol</h2><p>PROXY 协议相关的配置项。</p><h3 id="networks" style="position:relative"><a href="#networks" aria-label="networks permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>networks</code></h3><ul><li>允许使用 <a href="https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt" target="_blank" referrerpolicy="no-referrer-when-downgrade">PROXY 协议</a>连接 TiDB 的代理服务器地址列表。</li><li>默认值:""</li><li>通常情况下,通过反向代理使用 TiDB 时,TiDB 会将反向代理服务器的 IP 地址视为客户端 IP 地址。对于支持 PROXY 协议的反向代理(如 HAProxy),开启 PROXY 协议后能让反向代理透传客户端真实的 IP 地址给 TiDB。</li><li>配置该参数后,TiDB 将允许配置的源 IP 地址使用 PROXY 协议连接到 TiDB,且拒绝这些源 IP 地址使用非 PROXY 协议连接。若该参数为空,则任何源 IP 地址都不能使用 PROXY 协议连接到 TiDB。地址可以使用 IP 地址格式 (192.168.1.50) 或者 CIDR 格式 (192.168.1.0/24),并可用 <code>,</code> 分隔多个地址,或用 <code>*</code> 代表所有 IP 地址。</li></ul><div class="MuiBox-root css-1weqspv"><div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-standardError MuiAlert-standard css-21rxh6" role="alert"><div class="MuiAlert-icon css-1l54tgj"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1cw4hi4" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="ErrorOutlineIcon"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/></svg></div><div class="MuiAlert-message css-1xsto0d"><div class="MuiTypography-root MuiTypography-body1 MuiTypography-gutterBottom MuiAlertTitle-root css-17ioyuk">警告</div><p>需谨慎使用 <code>*</code> 符号,因为 <code>*</code> 允许来自任何 IP 的客户端自行汇报其 IP 地址,从而可能引入安全风险。另外,<code>*</code> 可能导致部分直接连接 TiDB 的内部组件无法使用,例如 TiDB Dashboard。</p></div></div></div><h3 id="fallbackable-span-classversion-mark从-v651-版本开始引入span" style="position:relative"><a href="#fallbackable-span-classversion-mark%E4%BB%8E-v651-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="fallbackable span classversion mark从 v651 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>fallbackable</code> <span class="version-mark">从 v6.5.1 版本开始引入</span></h3><ul><li>用于控制是否启用 PROXY 协议回退模式。如果设置为 <code>true</code>,TiDB 可以接受属于 <code>proxy-protocol.networks</code> 的客户端使用非 PROXY 协议规范或者没有发送 PROXY 协议头的客户端连接。默认情况下,TiDB 仅接受属于 <code>proxy-protocol.networks</code> 的客户端发送 PROXY 协议头的客户端连接。</li><li>默认:<code>false</code></li></ul><h2 id="experimental" style="position:relative"><a href="#experimental" aria-label="experimental permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a>experimental</h2><p>experimental 部分为 TiDB 实验功能相关的配置。该部分从 v3.1.0 开始引入。</p><h3 id="allow-expression-index-span-classversion-mark从-v400-版本开始引入span" style="position:relative"><a href="#allow-expression-index-span-classversion-mark%E4%BB%8E-v400-%E7%89%88%E6%9C%AC%E5%BC%80%E5%A7%8B%E5%BC%95%E5%85%A5span" aria-label="allow expression index span classversion mark从 v400 版本开始引入span permalink" class="anchor before"><svg aria-hidden="true" focusable="false" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"/></svg></a><code>allow-expression-index</code> <span class="version-mark">从 v4.0.0 版本开始引入</span></h3><ul><li>用于控制是否能创建表达式索引。自 v5.2.0 版本起,如果表达式中的函数是安全的,你可以直接基于该函数创建表达式索引,不需要打开该配置项。如果要创建基于其他函数的表达式索引,可以打开该配置项,但可能存在正确性问题。通过查询 <code>tidb_allow_function_for_expression_index</code> 变量可得到能直接用于创建表达式的安全函数。</li><li>默认值:false</li></ul></div></div></div><style data-emotion="css 11q09s7">.css-11q09s7{width:17.5rem;}@media (min-width:0px){.css-11q09s7{;}}@media (min-width:600px){.css-11q09s7{display:block;}}</style><div class="MuiBox-root css-11q09s7"><style data-emotion="css nljo0q">.css-nljo0q{position:-webkit-sticky;position:sticky;top:5rem;height:100%;max-height:calc(100vh - 5rem);overflow-y:auto;padding-left:1rem;padding-right:1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}</style><div class="MuiBox-root css-nljo0q"><style data-emotion="css 7gtni6">.css-7gtni6{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:2rem 0.5rem 1rem 0.5rem;}.css-7gtni6>:not(style)+:not(style){margin:0;margin-top:8px;}</style><div class="css-7gtni6"><style data-emotion="css w6413i">.css-w6413i{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-text-decoration:none;text-decoration:none;font-size:14px;line-height:1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:0.25rem;}.css-w6413i:hover,.css-w6413i:focus,.css-w6413i:active{color:#0A85C2;}</style><a class="MuiTypography-root MuiTypography-body1 css-w6413i" href="https://download.pingcap.org/tidb-v7.2-zh-manual.pdf" target="_blank" icon="[object Object]" rel="noreferrer" download=""><style data-emotion="css 1dzhlmu">.css-1dzhlmu{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;width:1.25rem;height:1.25rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1dzhlmu" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="SimCardDownloadIcon"><path d="M18 2h-8L4 8v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 15-4-4h3V9.02L13 9v4h3l-4 4z"/></svg>下载 PDF</a></div><style data-emotion="css nyz3gr">.css-nyz3gr{padding-top:1rem;padding-bottom:2rem;}</style><nav class="MuiBox-root css-nyz3gr" id="toc-container" aria-label="toc"><style data-emotion="css tucxab">.css-tucxab{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:#282a36;padding-left:0.5rem;font-family:Helvetica Neue;font-size:0.875rem;font-weight:700;line-height:1.25rem;padding-bottom:0.5rem;}</style><div class="MuiTypography-root MuiTypography-body1 css-tucxab">本页导航</div><style data-emotion="css qoh4zo">.css-qoh4zo{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;list-style:none;padding:0px;}</style><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><style data-emotion="css swx9es">.css-swx9es{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-text-decoration:none;text-decoration:none;font-size:14px;line-height:1.25rem;border-left:1px solid transparent;padding-left:0.5rem;padding-top:0.25rem;padding-bottom:0.25rem;}.css-swx9es:hover{color:#999999;border-left:1px solid #999999;}</style><a class="MuiTypography-root MuiTypography-body1 css-swx9es"/><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><style data-emotion="css o4rcgq">.css-o4rcgq{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-text-decoration:none;text-decoration:none;font-size:14px;line-height:1.25rem;border-left:1px solid transparent;padding-left:1.5rem;padding-top:0.25rem;padding-bottom:0.25rem;}.css-o4rcgq:hover{color:#999999;border-left:1px solid #999999;}</style><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#split-table">split-table</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tidb-max-reuse-chunk-从-v640-版本开始引入">tidb-max-reuse-chunk 从 v6.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tidb-max-reuse-column-从-v640-版本开始引入">tidb-max-reuse-column 从 v6.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#token-limit">token-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#temp-dir-从-v630-版本开始引入">temp-dir 从 v6.3.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#oom-use-tmp-storage">oom-use-tmp-storage</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tmp-storage-path">tmp-storage-path</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tmp-storage-quota">tmp-storage-quota</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#lease">lease</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#compatible-kill-query">compatible-kill-query</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#check-mb4-value-in-utf8">check-mb4-value-in-utf8</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#treat-old-version-utf8-as-utf8mb4">treat-old-version-utf8-as-utf8mb4</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#alter-primary-key已废弃">alter-primary-key(已废弃)</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#server-version">server-version</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#repair-mode">repair-mode</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#repair-table-list">repair-table-list</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#new_collations_enabled_on_first_bootstrap">new_collations_enabled_on_first_bootstrap</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-server-connections">max-server-connections</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-index-length">max-index-length</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#table-column-count-limit-从-v50-版本开始引入">table-column-count-limit 从 v5.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#index-limit-从-v50-版本开始引入">index-limit 从 v5.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-telemetry-从-v402-版本开始引入">enable-telemetry 从 v4.0.2 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-tcp4-only-从-v50-版本开始引入">enable-tcp4-only 从 v5.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-enum-length-limit-从-v50-版本开始引入">enable-enum-length-limit 从 v5.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#graceful-wait-before-shutdown-从-v50-版本开始引入">graceful-wait-before-shutdown 从 v5.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-global-kill-从-v610-版本开始引入">enable-global-kill 从 v6.1.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#initialize-sql-file-从-v660-版本开始引入">initialize-sql-file 从 v6.6.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-forwarding-从-v500-版本开始引入">enable-forwarding 从 v5.0.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-table-lock-从-v400-版本开始引入">enable-table-lock 从 v4.0.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#labels">labels</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#log">log</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#level">level</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#format">format</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-timestamp">enable-timestamp</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-slow-log">enable-slow-log</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#slow-query-file">slow-query-file</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#slow-threshold">slow-threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#record-plan-in-slow-log">record-plan-in-slow-log</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#expensive-threshold">expensive-threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#timeout-从-v710-版本开始引入">timeout 从 v7.1.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#logfile">log.file</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq"/><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><style data-emotion="css 18eqjoz">.css-18eqjoz{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-text-decoration:none;text-decoration:none;font-size:14px;line-height:1.25rem;border-left:1px solid transparent;padding-left:2.5rem;padding-top:0.25rem;padding-bottom:0.25rem;}.css-18eqjoz:hover{color:#999999;border-left:1px solid #999999;}</style><a class="MuiTypography-root MuiTypography-body1 css-18eqjoz" href="#filename">filename</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-18eqjoz" href="#max-size">max-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-18eqjoz" href="#max-days">max-days</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-18eqjoz" href="#max-backups">max-backups</a></li></ul></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#security">security</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-sem">enable-sem</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#ssl-ca">ssl-ca</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#ssl-cert">ssl-cert</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#ssl-key">ssl-key</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#cluster-ssl-ca">cluster-ssl-ca</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#cluster-ssl-cert">cluster-ssl-cert</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#cluster-ssl-key">cluster-ssl-key</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#spilled-file-encryption-method">spilled-file-encryption-method</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#auto-tls">auto-tls</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tls-version">tls-version</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#auth-token-jwks-从-v640-版本开始引入">auth-token-jwks 从 v6.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#auth-token-refresh-interval-从-v640-版本开始引入">auth-token-refresh-interval 从 v6.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#disconnect-on-expired-password-从-v650-版本开始引入">disconnect-on-expired-password 从 v6.5.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#session-token-signing-cert-从-v640-版本开始引入">session-token-signing-cert 从 v6.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#session-token-signing-key-从-v640-版本开始引入">session-token-signing-key 从 v6.4.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#performance">performance</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-procs">max-procs</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#server-memory-quota-从-v409-版本开始引入">server-memory-quota 从 v4.0.9 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#txn-entry-size-limit-从-v50-版本开始引入">txn-entry-size-limit 从 v5.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#txn-total-size-limit">txn-total-size-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-txn-ttl">max-txn-ttl</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#stmt-count-limit">stmt-count-limit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tcp-keep-alive">tcp-keep-alive</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tcp-no-delay">tcp-no-delay</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#cross-join">cross-join</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#stats-lease">stats-lease</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#pseudo-estimate-ratio">pseudo-estimate-ratio</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#force-priority">force-priority</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#distinct-agg-push-down">distinct-agg-push-down</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enforce-mpp">enforce-mpp</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#stats-load-concurrency-从-v540-版本开始引入">stats-load-concurrency 从 v5.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#stats-load-queue-size-从-v540-版本开始引入">stats-load-queue-size 从 v5.4.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-stats-cache-mem-quota-从-v610-版本开始引入">enable-stats-cache-mem-quota 从 v6.1.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#lite-init-stats-从-v710-版本开始引入">lite-init-stats 从 v7.1.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#force-init-stats-从-v710-版本开始引入">force-init-stats 从 v7.1.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#opentracing">opentracing</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable">enable</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#rpc-metrics">rpc-metrics</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#opentracingsampler">opentracing.sampler</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#type">type</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#param">param</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#sampling-server-url">sampling-server-url</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-operations">max-operations</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#sampling-refresh-interval">sampling-refresh-interval</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#opentracingreporter">opentracing.reporter</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#queue-size">queue-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#buffer-flush-interval">buffer-flush-interval</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#log-spans">log-spans</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#local-agent-host-port">local-agent-host-port</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#tikv-client">tikv-client</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#grpc-connection-count">grpc-connection-count</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#grpc-keepalive-time">grpc-keepalive-time</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#grpc-keepalive-timeout">grpc-keepalive-timeout</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#grpc-compression-type">grpc-compression-type</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#commit-timeout">commit-timeout</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-batch-size">max-batch-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-batch-wait-time">max-batch-wait-time</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#batch-wait-size">batch-wait-size</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#overload-threshold">overload-threshold</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#tikv-clientcopr-cache-从-v400-版本开始引入">tikv-client.copr-cache 从 v4.0.0 版本开始引入</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#capacity-mb">capacity-mb</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#binlog">binlog</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#enable-1">enable</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#write-timeout">write-timeout</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#ignore-error">ignore-error</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#binlog-socket">binlog-socket</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#strategy">strategy</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#status">status</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#report-status">report-status</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#record-db-qps">record-db-qps</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#pessimistic-txn">pessimistic-txn</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max-retry-count">max-retry-count</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#deadlock-history-capacity">deadlock-history-capacity</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#deadlock-history-collect-retryable">deadlock-history-collect-retryable</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#pessimistic-auto-commit">pessimistic-auto-commit</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#constraint-check-in-place-pessimistic-从-v640-版本开始引入">constraint-check-in-place-pessimistic 从 v6.4.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#isolation-read">isolation-read</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#engines">engines</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#instance">instance</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tidb_enable_collect_execution_info">tidb_enable_collect_execution_info</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tidb_enable_slow_log">tidb_enable_slow_log</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tidb_slow_log_threshold">tidb_slow_log_threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tidb_expensive_query_time_threshold">tidb_expensive_query_time_threshold</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tidb_record_plan_in_slow_log">tidb_record_plan_in_slow_log</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tidb_force_priority">tidb_force_priority</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#max_connections">max_connections</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tidb_enable_ddl">tidb_enable_ddl</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tidb_stmt_summary_enable_persistent-从-v660-版本开始引入">tidb_stmt_summary_enable_persistent 从 v6.6.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tidb_stmt_summary_filename-从-v660-版本开始引入">tidb_stmt_summary_filename 从 v6.6.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tidb_stmt_summary_file_max_days-从-v660-版本开始引入">tidb_stmt_summary_file_max_days 从 v6.6.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tidb_stmt_summary_file_max_size-从-v660-版本开始引入">tidb_stmt_summary_file_max_size 从 v6.6.0 版本开始引入</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#tidb_stmt_summary_file_max_backups-从-v660-版本开始引入">tidb_stmt_summary_file_max_backups 从 v6.6.0 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#proxy-protocol">proxy-protocol</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#networks">networks</a></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#fallbackable-从-v651-版本开始引入">fallbackable 从 v6.5.1 版本开始引入</a></li></ul></li><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-swx9es" href="#experimental">experimental</a><ul class="MuiTypography-root MuiTypography-body1 css-qoh4zo"><li class="MuiTypography-root MuiTypography-body1 css-tx8jsd"><a class="MuiTypography-root MuiTypography-body1 css-o4rcgq" href="#allow-expression-index-从-v400-版本开始引入">allow-expression-index 从 v4.0.0 版本开始引入</a></li></ul></li></ul></nav></div></div><style data-emotion="css kpren5">.css-kpren5{padding:1rem;}@media (min-width:600px){.css-kpren5{;}}</style><div class="MuiBox-root css-kpren5"><div class="MuiBox-root css-0"><style data-emotion="css 1ea16oy">.css-1ea16oy{text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:5px 15px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;border:1px solid rgba(25, 118, 210, 0.5);color:#1976d2;width:100%;}.css-1ea16oy:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(25, 118, 210, 0.04);border:1px solid #1976d2;}@media (hover: none){.css-1ea16oy:hover{background-color:transparent;}}.css-1ea16oy.Mui-disabled{color:rgba(0, 0, 0, 0.26);border:1px solid rgba(0, 0, 0, 0.12);}</style><style data-emotion="css 1eluyo9">.css-1eluyo9{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-width:64px;padding:5px 15px;border-radius:4px;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;border:1px solid rgba(25, 118, 210, 0.5);color:#1976d2;width:100%;}.css-1eluyo9::-moz-focus-inner{border-style:none;}.css-1eluyo9.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-1eluyo9{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-1eluyo9:hover{-webkit-text-decoration:none;text-decoration:none;background-color:rgba(25, 118, 210, 0.04);border:1px solid #1976d2;}@media (hover: none){.css-1eluyo9:hover{background-color:transparent;}}.css-1eluyo9.Mui-disabled{color:rgba(0, 0, 0, 0.26);border:1px solid rgba(0, 0, 0, 0.12);}</style><button class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium css-1eluyo9" tabindex="0" type="button" id="toc-mobile-button" aria-haspopup="true">本页导航<span class="MuiButton-endIcon MuiButton-iconSizeMedium css-1n4a93h"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="KeyboardArrowDownIcon"><path d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg></span></button></div></div></div><style data-emotion="css 18rapy9">.css-18rapy9{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:fixed;bottom:1rem;right:1rem;}</style><div class="MuiBox-root css-18rapy9"><style data-emotion="css 1ez406v">.css-1ez406v{text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-height:auto;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;border-radius:17px;padding:0 8px;min-width:34px;width:auto;height:34px;z-index:1050;box-shadow:0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12);color:rgba(0, 0, 0, 0.87);background-color:#e0e0e0;;color:#666666;background-color:#eff4f7;border-radius:0.5rem;height:2rem;width:2rem;box-shadow:none;}.css-1ez406v:active{box-shadow:0px 7px 8px -4px rgba(0,0,0,0.2),0px 12px 17px 2px rgba(0,0,0,0.14),0px 5px 22px 4px rgba(0,0,0,0.12);}.css-1ez406v:hover{background-color:#f5f5f5;-webkit-text-decoration:none;text-decoration:none;}@media (hover: none){.css-1ez406v:hover{background-color:#e0e0e0;}}.css-1ez406v.Mui-focusVisible{box-shadow:0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12);}.css-1ez406v.Mui-disabled{color:rgba(0, 0, 0, 0.26);box-shadow:none;background-color:rgba(0, 0, 0, 0.12);}.css-1ez406v:hover{color:#fff;background-color:#0ca6f2;}</style><style data-emotion="css d4rjj9">.css-d4rjj9{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-transform:none;font-family:-apple-system,"Poppins","Helvetica Neue",sans-serif,"Noto Sans","Fira Code","IBM Plex Sans","sans-serif";font-weight:500;font-size:0.875rem;line-height:1.75;min-height:auto;-webkit-transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;border-radius:17px;padding:0 8px;min-width:34px;width:auto;height:34px;z-index:1050;box-shadow:0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12);color:rgba(0, 0, 0, 0.87);background-color:#e0e0e0;;color:#666666;background-color:#eff4f7;border-radius:0.5rem;height:2rem;width:2rem;box-shadow:none;}.css-d4rjj9::-moz-focus-inner{border-style:none;}.css-d4rjj9.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-d4rjj9{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-d4rjj9:active{box-shadow:0px 7px 8px -4px rgba(0,0,0,0.2),0px 12px 17px 2px rgba(0,0,0,0.14),0px 5px 22px 4px rgba(0,0,0,0.12);}.css-d4rjj9:hover{background-color:#f5f5f5;-webkit-text-decoration:none;text-decoration:none;}@media (hover: none){.css-d4rjj9:hover{background-color:#e0e0e0;}}.css-d4rjj9.Mui-focusVisible{box-shadow:0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12);}.css-d4rjj9.Mui-disabled{color:rgba(0, 0, 0, 0.26);box-shadow:none;background-color:rgba(0, 0, 0, 0.12);}.css-d4rjj9:hover{color:#fff;background-color:#0ca6f2;}</style><button class="MuiButtonBase-root MuiFab-root MuiFab-extended MuiFab-sizeSmall MuiFab-default css-d4rjj9" tabindex="0" type="button" id="scroll-to-top" aria-label="scroll-to-top"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="VerticalAlignTopIcon"><path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/></svg></button></div></div></main></div></div><style data-emotion="css meijt3">.css-meijt3{background-color:#20222B;padding:3.5rem 0;}</style><footer class="MuiBox-root css-meijt3"><style data-emotion="css 1qsxih2">.css-1qsxih2{width:100%;margin-left:auto;box-sizing:border-box;margin-right:auto;display:block;padding-left:16px;padding-right:16px;}@media (min-width:600px){.css-1qsxih2{padding-left:24px;padding-right:24px;}}@media (min-width:1200px){.css-1qsxih2{max-width:1200px;}}</style><div class="MuiContainer-root MuiContainer-maxWidthLg css-1qsxih2"><style data-emotion="css ha8tv0">.css-ha8tv0{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;row-gap:4rem;}@media (min-width:0px){.css-ha8tv0{-webkit-box-flex-wrap:wrap;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;}}@media (min-width:900px){.css-ha8tv0{-webkit-box-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;}}</style><div class="css-ha8tv0"><style data-emotion="css 1m5txad">.css-1m5txad{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:2rem;}@media (min-width:0px){.css-1m5txad{;}}@media (min-width:900px){.css-1m5txad{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}}</style><div class="css-1m5txad"><style data-emotion="css 1pmugoj">.css-1pmugoj{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;width:6.125rem;height:1.625rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1pmugoj" focusable="false" aria-hidden="true" viewbox="0 0 98 26" fill="none"><path d="M39.8024 6.68462H38.2456V8.23794H39.8024V6.68462Z" fill="white"/><path d="M39.8024 10.1767H38.2456V19.6531H39.8024V10.1767Z" fill="white"/><path d="M45.8612 9.58899C45.2783 9.57411 44.6988 9.67987 44.1589 9.89959C43.6191 10.1193 43.1308 10.4482 42.7247 10.8656C42.3149 11.2856 41.9939 11.7834 41.7807 12.3295C41.5675 12.8756 41.4664 13.4589 41.4835 14.0448V19.6417H42.9886V13.9169C42.9819 13.5402 43.0543 13.1663 43.2012 12.8192C43.3482 12.4722 43.5663 12.1597 43.8416 11.9018C44.1029 11.6309 44.4167 11.4157 44.7638 11.2694C45.111 11.1231 45.4843 11.0487 45.8612 11.0507C46.2338 11.0465 46.6033 11.1191 46.9465 11.2639C47.2897 11.4087 47.5993 11.6226 47.8559 11.8923C48.1311 12.1509 48.35 12.4633 48.4991 12.8099C48.6481 13.1566 48.7241 13.5302 48.7222 13.9074V19.6417H50.2274V14.0448C50.2442 13.4571 50.1409 12.8722 49.9239 12.3257C49.7069 11.7791 49.3807 11.2823 48.9651 10.8656C48.565 10.4493 48.0824 10.1208 47.5479 9.90096C47.0135 9.68116 46.439 9.57491 45.8612 9.58899Z" fill="white"/><path d="M61.7596 18.7143V14.6459C61.7756 13.9638 61.6477 13.2859 61.3841 12.6564C61.1205 12.0268 60.7272 11.4596 60.2296 10.9916C59.7774 10.5253 59.2376 10.1525 58.6411 9.89442C58.0445 9.63633 57.4028 9.49802 56.7526 9.48739C56.1024 9.47676 55.4565 9.59401 54.8518 9.83245C54.247 10.0709 53.6953 10.4259 53.228 10.8771C53.1687 10.9343 53.1114 10.9935 53.054 11.0526C52.1288 12.0089 51.6213 13.2921 51.6426 14.6211C51.6367 15.3083 51.7691 15.9897 52.0319 16.6249C52.2947 17.2601 52.6826 17.8363 53.1726 18.3193C53.6426 18.8105 54.2127 19.1955 54.8445 19.4484C55.4763 19.7012 56.155 19.8159 56.835 19.7848C57.4825 19.769 58.1204 19.6247 58.7114 19.3603C59.3025 19.0959 59.8348 18.7167 60.2774 18.2448V18.8917M60.2774 18.8784C60.2792 19.3029 60.1895 19.7229 60.0143 20.1098C59.839 20.4967 59.5825 20.8414 59.2619 21.1206C58.947 21.4286 58.5743 21.6715 58.165 21.8353C57.7557 21.999 57.318 22.0804 56.877 22.0747C56.1126 22.0789 55.368 21.8321 54.758 21.3725C54.2743 21.0384 53.885 20.5856 53.6277 20.0577L52.4363 20.7466C52.735 21.3328 53.1594 21.8461 53.6794 22.2503C54.5478 22.9254 55.6137 23.2986 56.7145 23.3132H56.9402C58.1311 23.32 59.2863 22.9079 60.2029 22.1491C60.6874 21.7899 61.0799 21.3213 61.3481 20.7816C61.6163 20.242 61.7528 19.6467 61.7462 19.0444V18.7009M60.2488 14.7337C60.2385 15.6811 59.86 16.5876 59.1931 17.2621C58.8825 17.6017 58.5031 17.8716 58.0801 18.0539C57.6571 18.2362 57.2001 18.3266 56.7393 18.3193C56.267 18.3286 55.7979 18.24 55.3617 18.059C54.9255 17.878 54.5317 17.6086 54.2053 17.2678C53.5237 16.5954 53.1319 15.6842 53.1134 14.728C53.0948 13.7719 53.4509 12.8462 54.1059 12.148C54.4082 11.7918 54.7822 11.5029 55.2036 11.3001C55.625 11.0973 56.0843 10.985 56.5519 10.9706H56.7432C57.2041 10.9639 57.6609 11.0579 58.0815 11.2462C58.5021 11.4344 58.8763 11.7123 59.1778 12.0602C59.5361 12.4039 59.8168 12.8201 60.0008 13.2808C60.1849 13.7416 60.2681 14.2363 60.2449 14.7317L60.2488 14.7337Z" fill="white"/><path d="M73.3512 16.0866L73.3149 16.1362C72.8848 16.8154 72.2936 17.3784 71.5936 17.7754C70.8841 18.2096 70.0697 18.4431 69.2374 18.4509C67.87 18.4509 66.6651 17.9014 65.6726 16.8251C64.7087 15.7657 64.1956 14.3738 64.242 12.9437C64.2483 11.5757 64.773 10.2606 65.7108 9.26268C66.1382 8.77658 66.6651 8.38758 67.256 8.12193C67.8469 7.85627 68.488 7.72014 69.1361 7.72272C70.9434 7.70936 72.2974 8.44785 73.29 9.98782L73.3149 10.0393H73.3397L74.5063 9.31229C74.0185 8.49472 73.3596 7.79176 72.5747 7.25138C71.5806 6.59524 70.416 6.24307 69.224 6.23809C68.3844 6.21999 67.5505 6.38084 66.7781 6.70991C66.0057 7.03898 65.3126 7.52869 64.745 8.14635C63.5 9.42679 62.8631 11.0679 62.8631 13.0067C62.8348 14.8078 63.4994 16.5513 64.7201 17.8785C65.9499 19.2142 67.4416 19.8802 69.1495 19.8802H69.2107C71.4578 19.8306 73.3149 18.7353 74.4929 16.8003L73.3512 16.0866Z" fill="white"/><path d="M82.1104 6.43273H80.5211L74.5924 19.6417H76.4877L78.3179 15.2527L78.9586 13.8883L81.3435 8.29901L83.6786 13.8826H80.3298L79.7159 15.247H84.2198L86.0635 19.636H87.7331L82.1104 6.43273Z" fill="white"/><path d="M96.3947 7.63303C95.4904 6.83506 94.3158 6.41006 93.1091 6.44418H88.8098V19.6398H90.3646V14.4703V13.0811V7.87347H93.1435C93.8829 7.85905 94.6034 8.10726 95.1765 8.5738C95.4521 8.77883 95.6784 9.04265 95.8389 9.34604C95.9993 9.64943 96.0899 9.98473 96.104 10.3275C96.1399 10.7052 96.0833 11.0859 95.9391 11.437C95.7948 11.788 95.5672 12.0988 95.2759 12.3426C94.7187 12.8445 93.9895 13.1136 93.2391 13.0945H91.6135V14.4837H93.4839C94.5638 14.4995 95.6076 14.0958 96.3947 13.3578C96.7877 13.0165 97.103 12.5952 97.3194 12.1222C97.5358 11.6492 97.6483 11.1355 97.6493 10.6156C97.6813 10.056 97.5849 9.49648 97.3675 8.97963C97.1501 8.46277 96.8174 8.00222 96.3947 7.63303Z" fill="white"/><path d="M35.4611 7.63303C34.5559 6.8351 33.3808 6.41014 32.1735 6.44418H27.8819V19.6398H29.4386V14.4703V13.0811V7.87347H32.2232C32.9628 7.85788 33.6838 8.10622 34.2562 8.5738C34.5326 8.77806 34.7595 9.04172 34.9201 9.34527C35.0806 9.64882 35.1707 9.9845 35.1837 10.3275C35.2205 10.7053 35.1643 11.0863 35.02 11.4374C34.8756 11.7886 34.6476 12.0993 34.3556 12.3426C33.7975 12.848 33.0646 13.1176 32.3112 13.0945H30.6932V14.4837H32.5617C33.6423 14.4998 34.6868 14.096 35.4744 13.3578C35.8649 13.017 36.1782 12.5973 36.3939 12.1265C36.6095 11.6558 36.7224 11.1447 36.7252 10.6271C36.76 10.0646 36.664 9.50163 36.4447 8.98225C36.2254 8.46287 35.8888 8.00111 35.4611 7.63303Z" fill="white"/><path d="M45.9376 9.60044C45.3565 9.58541 44.7786 9.69114 44.2406 9.91092C43.7026 10.1307 43.2164 10.4597 42.8126 10.8771C42.403 11.2947 42.0819 11.7905 41.8687 12.3348C41.6554 12.879 41.5543 13.4606 41.5714 14.0448V19.6169H43.0766V13.9074C43.0699 13.5307 43.1423 13.1568 43.2892 12.8097C43.4361 12.4626 43.6542 12.1501 43.9295 11.8923C44.1906 11.621 44.5043 11.4056 44.8515 11.2593C45.1987 11.113 45.5722 11.0387 45.9491 11.0412C46.3208 11.0379 46.6891 11.1119 47.0305 11.2584C47.372 11.405 47.6791 11.6208 47.9324 11.8923C48.2076 12.1508 48.4264 12.4632 48.5752 12.8099C48.7239 13.1566 48.7994 13.5302 48.7968 13.9074V19.6169H50.3038V14.0448C50.3207 13.4605 50.2193 12.8788 50.0057 12.3345C49.7922 11.7903 49.4707 11.2946 49.0607 10.8771C48.6549 10.463 48.1685 10.1361 47.6315 9.9166C47.0944 9.69706 46.518 9.58946 45.9376 9.60044Z" fill="white"/><path d="M20.3582 4.0798L6.31671 0.0610093C6.1291 0.00562615 5.9324 -0.0123436 5.73783 0.00812623C5.54326 0.028596 5.35463 0.0871044 5.18272 0.180311C5.01082 0.273517 4.85899 0.399596 4.73592 0.551349C4.61284 0.703102 4.52093 0.877557 4.46543 1.06475C4.42506 1.19845 4.40445 1.3373 4.40423 1.47694V3.28978L2.65622 2.79172C2.43668 2.72681 2.20475 2.71529 1.97983 2.75811C1.75491 2.80094 1.54354 2.89687 1.36338 3.03789C1.17948 3.17495 1.03015 3.3529 0.927234 3.55762C0.824319 3.76233 0.770656 3.98817 0.770508 4.21719L0.770508 24.5249C0.772032 24.7498 0.824418 24.9714 0.923761 25.1733C1.0231 25.3752 1.16684 25.5521 1.34425 25.6908C1.60756 25.8896 1.92825 25.998 2.25842 25.9999C2.37094 25.9985 2.4828 25.9824 2.59119 25.9522L13.63 23.3227C13.9565 23.2518 14.2487 23.0711 14.4576 22.8109C14.6665 22.5507 14.7795 22.2268 14.7775 21.8934V16.264L20.3008 14.9282C20.6296 14.8562 20.9233 14.6731 21.1324 14.4099C21.3414 14.1467 21.453 13.8195 21.4483 13.4837V5.49572C21.4483 5.17286 21.3414 4.85904 21.1443 4.603C20.9472 4.34696 20.6708 4.16304 20.3582 4.0798ZM6.13503 16.8651C6.08029 16.8782 6.02258 16.8693 5.97438 16.8403C5.95046 16.8258 5.92969 16.8067 5.91327 16.7841C5.89685 16.7615 5.88511 16.7358 5.87875 16.7086C5.87684 16.6909 5.87684 16.673 5.87875 16.6552L5.85963 5.20567L13.0831 7.25132C13.154 7.2719 13.2163 7.31479 13.2607 7.37359C13.3052 7.4324 13.3294 7.50397 13.3298 7.57763V15.1343L6.13503 16.8651ZM5.86154 18.3574H5.88831C6.00362 18.3599 6.11875 18.3471 6.23065 18.3192L13.3298 16.6018V21.3724L13.3183 21.6548C13.3178 21.7314 13.2926 21.8058 13.2464 21.8669C13.2003 21.9281 13.1356 21.9728 13.062 21.9945L2.49174 24.4962C2.46455 24.5029 2.43629 24.5039 2.40867 24.4993C2.38105 24.4948 2.35466 24.4846 2.33109 24.4695C2.30718 24.455 2.28641 24.4359 2.26999 24.4133C2.25357 24.3907 2.24183 24.365 2.23547 24.3379C2.23356 24.3207 2.23356 24.3034 2.23547 24.2863V4.45C2.2344 4.39762 2.25373 4.34687 2.2894 4.30843C2.32507 4.26999 2.3743 4.24686 2.42672 4.24391C2.45024 4.24466 2.47348 4.24917 2.49557 4.25727L4.40805 4.79539V16.8842C4.40629 17.0767 4.44253 17.2676 4.51472 17.4461C4.5869 17.6245 4.69362 17.7871 4.82877 17.9244C4.96391 18.0618 5.12485 18.1712 5.30238 18.2464C5.47991 18.3217 5.67057 18.3614 5.86345 18.3631L5.86154 18.3574ZM13.7027 5.92699L5.86154 3.69433L5.84815 1.71738C5.84814 1.66034 5.87059 1.60557 5.91065 1.56489C5.95072 1.5242 6.00519 1.50084 6.06235 1.49984H6.12546L19.7232 5.37932C19.7972 5.40126 19.8617 5.44709 19.9067 5.50961C19.9517 5.57213 19.9746 5.64779 19.9718 5.72472L19.9833 13.2738C19.9879 13.3477 19.9655 13.4208 19.9201 13.4795C19.8747 13.5381 19.8095 13.5782 19.7366 13.5925L14.7699 14.787V7.35818C14.7696 7.03703 14.6652 6.72459 14.4721 6.46763C14.2791 6.21067 14.0078 6.023 13.6989 5.93272L13.7027 5.92699Z" fill="white"/></svg><style data-emotion="css 151f6uh">.css-151f6uh{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex-wrap:wrap;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}@media (min-width:0px){.css-151f6uh{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;gap:1rem;}}@media (min-width:900px){.css-151f6uh{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:0;}}</style><div class="css-151f6uh"><style data-emotion="css 1odbrpm">.css-1odbrpm{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;color:#e5e5e5;padding-top:0.5rem;padding-bottom:0.5rem;}.css-1odbrpm>:not(style)+:not(style){margin:0;margin-left:16px;}</style><div class="css-1odbrpm"><style data-emotion="css s0h87z">.css-s0h87z{text-align:center;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:1.5rem;padding:8px;border-radius:50%;overflow:visible;color:rgba(0, 0, 0, 0.54);-webkit-transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;}.css-s0h87z:hover{background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-s0h87z:hover{background-color:transparent;}}.css-s0h87z.Mui-disabled{background-color:transparent;color:rgba(0, 0, 0, 0.26);}</style><style data-emotion="css 1deacqj">.css-1deacqj{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;background-color:transparent;outline:0;border:0;margin:0;border-radius:0;padding:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-moz-appearance:none;-webkit-appearance:none;-webkit-text-decoration:none;text-decoration:none;color:inherit;text-align:center;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;font-size:1.5rem;padding:8px;border-radius:50%;overflow:visible;color:rgba(0, 0, 0, 0.54);-webkit-transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;color:inherit;}.css-1deacqj::-moz-focus-inner{border-style:none;}.css-1deacqj.Mui-disabled{pointer-events:none;cursor:default;}@media print{.css-1deacqj{-webkit-print-color-adjust:exact;color-adjust:exact;}}.css-1deacqj:hover{background-color:rgba(0, 0, 0, 0.04);}@media (hover: none){.css-1deacqj:hover{background-color:transparent;}}.css-1deacqj.Mui-disabled{background-color:transparent;color:rgba(0, 0, 0, 0.26);}</style><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="github" href="https://github.com/pingcap" target="_blank"><style data-emotion="css vubbuv">.css-vubbuv{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:1em;height:1em;display:inline-block;fill:currentColor;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;transition:fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;font-size:1.5rem;}</style><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="GitHubIcon"><path d="M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="asktug" href="https://asktug.com/" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 40 40"><g xmlns="http://www.w3.org/2000/svg" data-name="组 4428" fill="currentColor"><g data-name="组 4427"><path d="m11.261 20.637-.172-.172.007.008-.007-.007-.074.068v.044l-.022-.024-.109.109-.043.681.174-.175v.008l.4-.4-.145-.146Z" data-name="路径 13710" transform="translate(-1539 -1382) translate(149 -167) translate(-14 2.909) translate(1415.989 1553.091)"/><path d="M20.011 8.611a8.61 8.61 0 0 0-14.78-6.006L2.695 5.147c-.112.1-.22.211-.321.315L-.001 7.849l.306.33a8.189 8.189 0 0 1 1.772-1.155l.035-.017 1.2-1.2a7.709 7.709 0 0 1 11.02 10.757L13 17.901l-.016.034a8.182 8.182 0 0 1-1.294 1.931l.327.309 2.4-2.4c.2-.183.395-.385.576-.59l2.041-2.05a8.7 8.7 0 0 0 .913-.916l.346-.348-.034-.039a8.641 8.641 0 0 0 1.752-5.221Zm-2.841 2.841A8.627 8.627 0 0 0 5.83 3.279l.042-.042a7.71 7.71 0 0 1 11.449 10.312l-.055.065a7.917 7.917 0 0 1-.551.581 8.622 8.622 0 0 0 .455-2.744Z" data-name="路径 13711" transform="translate(-1539 -1382) translate(149 -167) translate(-14 2.909) translate(1415.989 1553.091)"/></g><path d="M1421.629 1558.829a8.629 8.629 0 0 0-2.129 16.992v5.932l7.775-7.775a8.628 8.628 0 0 0-5.651-15.148Zm-.011 5.995v7.883l-2.266-1.307v-5.269l-2.267 1.309v-2.617l4.533-2.617 2.266 1.308Zm4.554 5.26-2.275 1.313v-5.247l2.275-1.315Z" data-name="路径 13712" transform="translate(-1539 -1382) translate(149 -167) translate(-14 2.909)"/></g></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="twitter" href="https://twitter.com/PingCAP" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="TwitterIcon"><path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"/></svg></a></div><div class="css-1odbrpm"><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="facebook" href="https://facebook.com/pingcap2015" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="FacebookIcon"><path d="M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="linkedin" href="https://linkedin.com/company/pingcap" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="LinkedInIcon"><path d="M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="slack" href="https://slack.tidb.io/invite?team=tidb-community&channel=everyone&ref=pingcap-docs" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24"><path fill="currentColor" d="M6 15a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2h2v2m1 0a2 2 0 0 1 2-2a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2a2 2 0 0 1-2-2v-5m2-8a2 2 0 0 1-2-2a2 2 0 0 1 2-2a2 2 0 0 1 2 2v2H9m0 1a2 2 0 0 1 2 2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2a2 2 0 0 1 2-2h5m8 2a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2h-2v-2m-1 0a2 2 0 0 1-2 2a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2a2 2 0 0 1 2 2v5m-2 8a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2v-2h2m0-1a2 2 0 0 1-2-2a2 2 0 0 1 2-2h5a2 2 0 0 1 2 2a2 2 0 0 1-2 2h-5Z"/></svg></a></div><div class="css-1odbrpm"><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="youtube" href="https://youtube.com/channel/UCuq4puT32DzHKT5rU1IZpIA" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="YouTubeIcon"><path d="M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="stackOverflow" href="https://stackoverflow.com/questions/tagged/tidb" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24"><path fill="currentColor" d="M18.372 20.222v-5.358h1.79V22H4v-7.136h1.79v5.358h12.582Z"/><path fill="currentColor" d="m7.768 14.356l8.79 1.824l.372-1.755L8.14 12.6l-.372 1.756Zm1.162-4.157l8.14 3.764l.744-1.617l-8.14-3.787l-.744 1.64Zm2.256-3.973l6.907 5.705l1.14-1.363l-6.907-5.704l-1.14 1.362ZM15.651 2L14.21 3.062l5.35 7.16L21 9.159L15.651 2Zm-8.07 16.42h8.977v-1.778H7.581v1.778Z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="discord" href="https://discord.gg/DQZ2dy3cuc?utm_source=doc" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24"><path d="M18.9419 5.26946C17.6279 4.66787 16.2407 4.24108 14.8158 4C14.6208 4.34857 14.4443 4.70721 14.2872 5.0744C12.7694 4.84568 11.2258 4.84568 9.70801 5.0744C9.55079 4.70725 9.37437 4.34861 9.17946 4C7.75361 4.24312 6.3655 4.67092 5.05016 5.27261C2.43887 9.13606 1.73099 12.9036 2.08493 16.6176C3.61417 17.7474 5.32582 18.6067 7.14548 19.1581C7.55522 18.607 7.91778 18.0224 8.22933 17.4104C7.63759 17.1894 7.06646 16.9167 6.52255 16.5955C6.6657 16.4917 6.8057 16.3847 6.94098 16.2809C8.52364 17.0252 10.251 17.4111 12 17.4111C13.7489 17.4111 15.4763 17.0252 17.0589 16.2809C17.1958 16.3926 17.3358 16.4996 17.4774 16.5955C16.9324 16.9172 16.3602 17.1904 15.7675 17.412C16.0786 18.0236 16.4412 18.6078 16.8513 19.1581C18.6725 18.6089 20.3855 17.75 21.915 16.6191C22.3303 12.3121 21.2055 8.57919 18.9419 5.26946ZM8.67765 14.3335C7.69134 14.3335 6.87649 13.4384 6.87649 12.3372C6.87649 11.2361 7.66302 10.3332 8.6745 10.3332C9.68598 10.3332 10.4945 11.2361 10.4772 12.3372C10.4599 13.4384 9.68284 14.3335 8.67765 14.3335ZM15.3223 14.3335C14.3344 14.3335 13.5227 13.4384 13.5227 12.3372C13.5227 11.2361 14.3092 10.3332 15.3223 10.3332C16.3353 10.3332 17.1376 11.2361 17.1203 12.3372C17.103 13.4384 16.3275 14.3335 15.3223 14.3335Z" fill="white"/></svg></a></div><div class="css-1odbrpm"><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="reddit" href="https://reddit.com/r/TiDB/" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="RedditIcon"><path d="M22 12.14a2.19 2.19 0 0 0-3.71-1.57 10.93 10.93 0 0 0-5.86-1.87l1-4.7 3.27.71a1.56 1.56 0 1 0 .16-.76l-3.64-.77c-.11-.02-.22 0-.29.06-.09.05-.14.14-.16.26l-1.11 5.22c-2.33.07-4.43.78-5.95 1.86A2.2 2.2 0 0 0 4.19 10a2.16 2.16 0 0 0-.9 4.15 3.6 3.6 0 0 0-.05.66c0 3.37 3.92 6.12 8.76 6.12s8.76-2.73 8.76-6.12c0-.21-.01-.44-.05-.66A2.21 2.21 0 0 0 22 12.14M7 13.7c0-.86.68-1.56 1.54-1.56s1.56.7 1.56 1.56a1.56 1.56 0 0 1-1.56 1.56c-.86.02-1.54-.7-1.54-1.56m8.71 4.14C14.63 18.92 12.59 19 12 19c-.61 0-2.65-.1-3.71-1.16a.4.4 0 0 1 0-.57.4.4 0 0 1 .57 0c.68.68 2.14.91 3.14.91s2.47-.23 3.14-.91a.4.4 0 0 1 .57 0c.14.16.14.41 0 .57m-.29-2.56c-.86 0-1.56-.7-1.56-1.56a1.56 1.56 0 0 1 1.56-1.56c.86 0 1.58.7 1.58 1.56a1.6 1.6 0 0 1-1.58 1.56z"/></svg></a></div></div></div><style data-emotion="css 1yi9cru">.css-1yi9cru{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:0.75rem;min-width:6.75rem;}</style><div class="css-1yi9cru"><style data-emotion="css u73tmc">.css-u73tmc{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:#7E7F86;}</style><div class="MuiTypography-root MuiTypography-body1 css-u73tmc">产品</div><style data-emotion="css 1q3grm8">.css-1q3grm8{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}</style><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://cn.pingcap.com/product/#SelectProduct" style="text-decoration:none"><style data-emotion="css rmfl9z">.css-rmfl9z{margin:0;font-size:1rem;line-height:1.5rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:#e5e5e5;}</style><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">TiDB</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://www.pingcap.com/tidb-cloud" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">TiDB Cloud</div></a></div><div class="css-1yi9cru"><div class="MuiTypography-root MuiTypography-body1 css-u73tmc">生态</div><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://github.com/tikv/tikv" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">TiKV</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://github.com/pingcap/tiflash" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">TiFlash</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://ossinsight.io/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">OSS Insight</div></a></div><div class="css-1yi9cru"><div class="MuiTypography-root MuiTypography-body1 css-u73tmc">资源</div><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://docs.pingcap.com/zh/tidb/dev/tidb-roadmap" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">TiDB 路线图</div></a><a style="text-decoration:none" sx="[object Object]" hreflang="zh" href="/zh/tidb/stable/faq-overview"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">常见问题解答</div></a><a style="text-decoration:none" sx="[object Object]" hreflang="zh" href="/zh/tidb/stable/dev-guide-overview"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">开发者手册</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://cn.pingcap.com/blog/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">博客</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://cn.pingcap.com/education/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">Education</div></a></div><div class="css-1yi9cru"><div class="MuiTypography-root MuiTypography-body1 css-u73tmc">支持</div><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://asktug.com" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">社区</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://cn.pingcap.com/contact/" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">联系我们</div></a></div><div class="css-1yi9cru"><div class="MuiTypography-root MuiTypography-body1 css-u73tmc">公司</div><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://cn.pingcap.com/about-us?tab=companyOverview" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">关于我们</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://careers.pingcap.com" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">招贤纳士</div></a><a class="MuiTypography-root MuiTypography-body1 css-1q3grm8" target="_blank" href="https://cn.pingcap.com/about-us?tab=news" style="text-decoration:none"><div class="MuiTypography-root MuiTypography-body1 css-rmfl9z">新闻报道</div></a></div></div><style data-emotion="css 1207o6v">.css-1207o6v{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-top:4.5rem;gap:2.5rem;}@media (min-width:900px){.css-1207o6v{;}}</style><div class="css-1207o6v"><div class="css-151f6uh"><div class="css-1odbrpm"><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="github" href="https://github.com/pingcap" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="GitHubIcon"><path d="M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="asktug" href="https://asktug.com/" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 40 40"><g xmlns="http://www.w3.org/2000/svg" data-name="组 4428" fill="currentColor"><g data-name="组 4427"><path d="m11.261 20.637-.172-.172.007.008-.007-.007-.074.068v.044l-.022-.024-.109.109-.043.681.174-.175v.008l.4-.4-.145-.146Z" data-name="路径 13710" transform="translate(-1539 -1382) translate(149 -167) translate(-14 2.909) translate(1415.989 1553.091)"/><path d="M20.011 8.611a8.61 8.61 0 0 0-14.78-6.006L2.695 5.147c-.112.1-.22.211-.321.315L-.001 7.849l.306.33a8.189 8.189 0 0 1 1.772-1.155l.035-.017 1.2-1.2a7.709 7.709 0 0 1 11.02 10.757L13 17.901l-.016.034a8.182 8.182 0 0 1-1.294 1.931l.327.309 2.4-2.4c.2-.183.395-.385.576-.59l2.041-2.05a8.7 8.7 0 0 0 .913-.916l.346-.348-.034-.039a8.641 8.641 0 0 0 1.752-5.221Zm-2.841 2.841A8.627 8.627 0 0 0 5.83 3.279l.042-.042a7.71 7.71 0 0 1 11.449 10.312l-.055.065a7.917 7.917 0 0 1-.551.581 8.622 8.622 0 0 0 .455-2.744Z" data-name="路径 13711" transform="translate(-1539 -1382) translate(149 -167) translate(-14 2.909) translate(1415.989 1553.091)"/></g><path d="M1421.629 1558.829a8.629 8.629 0 0 0-2.129 16.992v5.932l7.775-7.775a8.628 8.628 0 0 0-5.651-15.148Zm-.011 5.995v7.883l-2.266-1.307v-5.269l-2.267 1.309v-2.617l4.533-2.617 2.266 1.308Zm4.554 5.26-2.275 1.313v-5.247l2.275-1.315Z" data-name="路径 13712" transform="translate(-1539 -1382) translate(149 -167) translate(-14 2.909)"/></g></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="twitter" href="https://twitter.com/PingCAP" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="TwitterIcon"><path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"/></svg></a></div><div class="css-1odbrpm"><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="facebook" href="https://facebook.com/pingcap2015" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="FacebookIcon"><path d="M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="linkedin" href="https://linkedin.com/company/pingcap" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="LinkedInIcon"><path d="M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="slack" href="https://slack.tidb.io/invite?team=tidb-community&channel=everyone&ref=pingcap-docs" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24"><path fill="currentColor" d="M6 15a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2h2v2m1 0a2 2 0 0 1 2-2a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2a2 2 0 0 1-2-2v-5m2-8a2 2 0 0 1-2-2a2 2 0 0 1 2-2a2 2 0 0 1 2 2v2H9m0 1a2 2 0 0 1 2 2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2a2 2 0 0 1 2-2h5m8 2a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2h-2v-2m-1 0a2 2 0 0 1-2 2a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2a2 2 0 0 1 2 2v5m-2 8a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2v-2h2m0-1a2 2 0 0 1-2-2a2 2 0 0 1 2-2h5a2 2 0 0 1 2 2a2 2 0 0 1-2 2h-5Z"/></svg></a></div><div class="css-1odbrpm"><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="youtube" href="https://youtube.com/channel/UCuq4puT32DzHKT5rU1IZpIA" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="YouTubeIcon"><path d="M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="stackOverflow" href="https://stackoverflow.com/questions/tagged/tidb" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24"><path fill="currentColor" d="M18.372 20.222v-5.358h1.79V22H4v-7.136h1.79v5.358h12.582Z"/><path fill="currentColor" d="m7.768 14.356l8.79 1.824l.372-1.755L8.14 12.6l-.372 1.756Zm1.162-4.157l8.14 3.764l.744-1.617l-8.14-3.787l-.744 1.64Zm2.256-3.973l6.907 5.705l1.14-1.363l-6.907-5.704l-1.14 1.362ZM15.651 2L14.21 3.062l5.35 7.16L21 9.159L15.651 2Zm-8.07 16.42h8.977v-1.778H7.581v1.778Z"/></svg></a><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="discord" href="https://discord.gg/DQZ2dy3cuc?utm_source=doc" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24"><path d="M18.9419 5.26946C17.6279 4.66787 16.2407 4.24108 14.8158 4C14.6208 4.34857 14.4443 4.70721 14.2872 5.0744C12.7694 4.84568 11.2258 4.84568 9.70801 5.0744C9.55079 4.70725 9.37437 4.34861 9.17946 4C7.75361 4.24312 6.3655 4.67092 5.05016 5.27261C2.43887 9.13606 1.73099 12.9036 2.08493 16.6176C3.61417 17.7474 5.32582 18.6067 7.14548 19.1581C7.55522 18.607 7.91778 18.0224 8.22933 17.4104C7.63759 17.1894 7.06646 16.9167 6.52255 16.5955C6.6657 16.4917 6.8057 16.3847 6.94098 16.2809C8.52364 17.0252 10.251 17.4111 12 17.4111C13.7489 17.4111 15.4763 17.0252 17.0589 16.2809C17.1958 16.3926 17.3358 16.4996 17.4774 16.5955C16.9324 16.9172 16.3602 17.1904 15.7675 17.412C16.0786 18.0236 16.4412 18.6078 16.8513 19.1581C18.6725 18.6089 20.3855 17.75 21.915 16.6191C22.3303 12.3121 21.2055 8.57919 18.9419 5.26946ZM8.67765 14.3335C7.69134 14.3335 6.87649 13.4384 6.87649 12.3372C6.87649 11.2361 7.66302 10.3332 8.6745 10.3332C9.68598 10.3332 10.4945 11.2361 10.4772 12.3372C10.4599 13.4384 9.68284 14.3335 8.67765 14.3335ZM15.3223 14.3335C14.3344 14.3335 13.5227 13.4384 13.5227 12.3372C13.5227 11.2361 14.3092 10.3332 15.3223 10.3332C16.3353 10.3332 17.1376 11.2361 17.1203 12.3372C17.103 13.4384 16.3275 14.3335 15.3223 14.3335Z" fill="white"/></svg></a></div><div class="css-1odbrpm"><a class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeMedium css-1deacqj" tabindex="0" aria-label="reddit" href="https://reddit.com/r/TiDB/" target="_blank"><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-vubbuv" focusable="false" aria-hidden="true" viewbox="0 0 24 24" data-testid="RedditIcon"><path d="M22 12.14a2.19 2.19 0 0 0-3.71-1.57 10.93 10.93 0 0 0-5.86-1.87l1-4.7 3.27.71a1.56 1.56 0 1 0 .16-.76l-3.64-.77c-.11-.02-.22 0-.29.06-.09.05-.14.14-.16.26l-1.11 5.22c-2.33.07-4.43.78-5.95 1.86A2.2 2.2 0 0 0 4.19 10a2.16 2.16 0 0 0-.9 4.15 3.6 3.6 0 0 0-.05.66c0 3.37 3.92 6.12 8.76 6.12s8.76-2.73 8.76-6.12c0-.21-.01-.44-.05-.66A2.21 2.21 0 0 0 22 12.14M7 13.7c0-.86.68-1.56 1.54-1.56s1.56.7 1.56 1.56a1.56 1.56 0 0 1-1.56 1.56c-.86.02-1.54-.7-1.54-1.56m8.71 4.14C14.63 18.92 12.59 19 12 19c-.61 0-2.65-.1-3.71-1.16a.4.4 0 0 1 0-.57.4.4 0 0 1 .57 0c.68.68 2.14.91 3.14.91s2.47-.23 3.14-.91a.4.4 0 0 1 .57 0c.14.16.14.41 0 .57m-.29-2.56c-.86 0-1.56-.7-1.56-1.56a1.56 1.56 0 0 1 1.56-1.56c.86 0 1.58.7 1.58 1.56a1.6 1.6 0 0 1-1.58 1.56z"/></svg></a></div></div><svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1pmugoj" focusable="false" aria-hidden="true" viewbox="0 0 98 26" fill="none"><path d="M39.8024 6.68462H38.2456V8.23794H39.8024V6.68462Z" fill="white"/><path d="M39.8024 10.1767H38.2456V19.6531H39.8024V10.1767Z" fill="white"/><path d="M45.8612 9.58899C45.2783 9.57411 44.6988 9.67987 44.1589 9.89959C43.6191 10.1193 43.1308 10.4482 42.7247 10.8656C42.3149 11.2856 41.9939 11.7834 41.7807 12.3295C41.5675 12.8756 41.4664 13.4589 41.4835 14.0448V19.6417H42.9886V13.9169C42.9819 13.5402 43.0543 13.1663 43.2012 12.8192C43.3482 12.4722 43.5663 12.1597 43.8416 11.9018C44.1029 11.6309 44.4167 11.4157 44.7638 11.2694C45.111 11.1231 45.4843 11.0487 45.8612 11.0507C46.2338 11.0465 46.6033 11.1191 46.9465 11.2639C47.2897 11.4087 47.5993 11.6226 47.8559 11.8923C48.1311 12.1509 48.35 12.4633 48.4991 12.8099C48.6481 13.1566 48.7241 13.5302 48.7222 13.9074V19.6417H50.2274V14.0448C50.2442 13.4571 50.1409 12.8722 49.9239 12.3257C49.7069 11.7791 49.3807 11.2823 48.9651 10.8656C48.565 10.4493 48.0824 10.1208 47.5479 9.90096C47.0135 9.68116 46.439 9.57491 45.8612 9.58899Z" fill="white"/><path d="M61.7596 18.7143V14.6459C61.7756 13.9638 61.6477 13.2859 61.3841 12.6564C61.1205 12.0268 60.7272 11.4596 60.2296 10.9916C59.7774 10.5253 59.2376 10.1525 58.6411 9.89442C58.0445 9.63633 57.4028 9.49802 56.7526 9.48739C56.1024 9.47676 55.4565 9.59401 54.8518 9.83245C54.247 10.0709 53.6953 10.4259 53.228 10.8771C53.1687 10.9343 53.1114 10.9935 53.054 11.0526C52.1288 12.0089 51.6213 13.2921 51.6426 14.6211C51.6367 15.3083 51.7691 15.9897 52.0319 16.6249C52.2947 17.2601 52.6826 17.8363 53.1726 18.3193C53.6426 18.8105 54.2127 19.1955 54.8445 19.4484C55.4763 19.7012 56.155 19.8159 56.835 19.7848C57.4825 19.769 58.1204 19.6247 58.7114 19.3603C59.3025 19.0959 59.8348 18.7167 60.2774 18.2448V18.8917M60.2774 18.8784C60.2792 19.3029 60.1895 19.7229 60.0143 20.1098C59.839 20.4967 59.5825 20.8414 59.2619 21.1206C58.947 21.4286 58.5743 21.6715 58.165 21.8353C57.7557 21.999 57.318 22.0804 56.877 22.0747C56.1126 22.0789 55.368 21.8321 54.758 21.3725C54.2743 21.0384 53.885 20.5856 53.6277 20.0577L52.4363 20.7466C52.735 21.3328 53.1594 21.8461 53.6794 22.2503C54.5478 22.9254 55.6137 23.2986 56.7145 23.3132H56.9402C58.1311 23.32 59.2863 22.9079 60.2029 22.1491C60.6874 21.7899 61.0799 21.3213 61.3481 20.7816C61.6163 20.242 61.7528 19.6467 61.7462 19.0444V18.7009M60.2488 14.7337C60.2385 15.6811 59.86 16.5876 59.1931 17.2621C58.8825 17.6017 58.5031 17.8716 58.0801 18.0539C57.6571 18.2362 57.2001 18.3266 56.7393 18.3193C56.267 18.3286 55.7979 18.24 55.3617 18.059C54.9255 17.878 54.5317 17.6086 54.2053 17.2678C53.5237 16.5954 53.1319 15.6842 53.1134 14.728C53.0948 13.7719 53.4509 12.8462 54.1059 12.148C54.4082 11.7918 54.7822 11.5029 55.2036 11.3001C55.625 11.0973 56.0843 10.985 56.5519 10.9706H56.7432C57.2041 10.9639 57.6609 11.0579 58.0815 11.2462C58.5021 11.4344 58.8763 11.7123 59.1778 12.0602C59.5361 12.4039 59.8168 12.8201 60.0008 13.2808C60.1849 13.7416 60.2681 14.2363 60.2449 14.7317L60.2488 14.7337Z" fill="white"/><path d="M73.3512 16.0866L73.3149 16.1362C72.8848 16.8154 72.2936 17.3784 71.5936 17.7754C70.8841 18.2096 70.0697 18.4431 69.2374 18.4509C67.87 18.4509 66.6651 17.9014 65.6726 16.8251C64.7087 15.7657 64.1956 14.3738 64.242 12.9437C64.2483 11.5757 64.773 10.2606 65.7108 9.26268C66.1382 8.77658 66.6651 8.38758 67.256 8.12193C67.8469 7.85627 68.488 7.72014 69.1361 7.72272C70.9434 7.70936 72.2974 8.44785 73.29 9.98782L73.3149 10.0393H73.3397L74.5063 9.31229C74.0185 8.49472 73.3596 7.79176 72.5747 7.25138C71.5806 6.59524 70.416 6.24307 69.224 6.23809C68.3844 6.21999 67.5505 6.38084 66.7781 6.70991C66.0057 7.03898 65.3126 7.52869 64.745 8.14635C63.5 9.42679 62.8631 11.0679 62.8631 13.0067C62.8348 14.8078 63.4994 16.5513 64.7201 17.8785C65.9499 19.2142 67.4416 19.8802 69.1495 19.8802H69.2107C71.4578 19.8306 73.3149 18.7353 74.4929 16.8003L73.3512 16.0866Z" fill="white"/><path d="M82.1104 6.43273H80.5211L74.5924 19.6417H76.4877L78.3179 15.2527L78.9586 13.8883L81.3435 8.29901L83.6786 13.8826H80.3298L79.7159 15.247H84.2198L86.0635 19.636H87.7331L82.1104 6.43273Z" fill="white"/><path d="M96.3947 7.63303C95.4904 6.83506 94.3158 6.41006 93.1091 6.44418H88.8098V19.6398H90.3646V14.4703V13.0811V7.87347H93.1435C93.8829 7.85905 94.6034 8.10726 95.1765 8.5738C95.4521 8.77883 95.6784 9.04265 95.8389 9.34604C95.9993 9.64943 96.0899 9.98473 96.104 10.3275C96.1399 10.7052 96.0833 11.0859 95.9391 11.437C95.7948 11.788 95.5672 12.0988 95.2759 12.3426C94.7187 12.8445 93.9895 13.1136 93.2391 13.0945H91.6135V14.4837H93.4839C94.5638 14.4995 95.6076 14.0958 96.3947 13.3578C96.7877 13.0165 97.103 12.5952 97.3194 12.1222C97.5358 11.6492 97.6483 11.1355 97.6493 10.6156C97.6813 10.056 97.5849 9.49648 97.3675 8.97963C97.1501 8.46277 96.8174 8.00222 96.3947 7.63303Z" fill="white"/><path d="M35.4611 7.63303C34.5559 6.8351 33.3808 6.41014 32.1735 6.44418H27.8819V19.6398H29.4386V14.4703V13.0811V7.87347H32.2232C32.9628 7.85788 33.6838 8.10622 34.2562 8.5738C34.5326 8.77806 34.7595 9.04172 34.9201 9.34527C35.0806 9.64882 35.1707 9.9845 35.1837 10.3275C35.2205 10.7053 35.1643 11.0863 35.02 11.4374C34.8756 11.7886 34.6476 12.0993 34.3556 12.3426C33.7975 12.848 33.0646 13.1176 32.3112 13.0945H30.6932V14.4837H32.5617C33.6423 14.4998 34.6868 14.096 35.4744 13.3578C35.8649 13.017 36.1782 12.5973 36.3939 12.1265C36.6095 11.6558 36.7224 11.1447 36.7252 10.6271C36.76 10.0646 36.664 9.50163 36.4447 8.98225C36.2254 8.46287 35.8888 8.00111 35.4611 7.63303Z" fill="white"/><path d="M45.9376 9.60044C45.3565 9.58541 44.7786 9.69114 44.2406 9.91092C43.7026 10.1307 43.2164 10.4597 42.8126 10.8771C42.403 11.2947 42.0819 11.7905 41.8687 12.3348C41.6554 12.879 41.5543 13.4606 41.5714 14.0448V19.6169H43.0766V13.9074C43.0699 13.5307 43.1423 13.1568 43.2892 12.8097C43.4361 12.4626 43.6542 12.1501 43.9295 11.8923C44.1906 11.621 44.5043 11.4056 44.8515 11.2593C45.1987 11.113 45.5722 11.0387 45.9491 11.0412C46.3208 11.0379 46.6891 11.1119 47.0305 11.2584C47.372 11.405 47.6791 11.6208 47.9324 11.8923C48.2076 12.1508 48.4264 12.4632 48.5752 12.8099C48.7239 13.1566 48.7994 13.5302 48.7968 13.9074V19.6169H50.3038V14.0448C50.3207 13.4605 50.2193 12.8788 50.0057 12.3345C49.7922 11.7903 49.4707 11.2946 49.0607 10.8771C48.6549 10.463 48.1685 10.1361 47.6315 9.9166C47.0944 9.69706 46.518 9.58946 45.9376 9.60044Z" fill="white"/><path d="M20.3582 4.0798L6.31671 0.0610093C6.1291 0.00562615 5.9324 -0.0123436 5.73783 0.00812623C5.54326 0.028596 5.35463 0.0871044 5.18272 0.180311C5.01082 0.273517 4.85899 0.399596 4.73592 0.551349C4.61284 0.703102 4.52093 0.877557 4.46543 1.06475C4.42506 1.19845 4.40445 1.3373 4.40423 1.47694V3.28978L2.65622 2.79172C2.43668 2.72681 2.20475 2.71529 1.97983 2.75811C1.75491 2.80094 1.54354 2.89687 1.36338 3.03789C1.17948 3.17495 1.03015 3.3529 0.927234 3.55762C0.824319 3.76233 0.770656 3.98817 0.770508 4.21719L0.770508 24.5249C0.772032 24.7498 0.824418 24.9714 0.923761 25.1733C1.0231 25.3752 1.16684 25.5521 1.34425 25.6908C1.60756 25.8896 1.92825 25.998 2.25842 25.9999C2.37094 25.9985 2.4828 25.9824 2.59119 25.9522L13.63 23.3227C13.9565 23.2518 14.2487 23.0711 14.4576 22.8109C14.6665 22.5507 14.7795 22.2268 14.7775 21.8934V16.264L20.3008 14.9282C20.6296 14.8562 20.9233 14.6731 21.1324 14.4099C21.3414 14.1467 21.453 13.8195 21.4483 13.4837V5.49572C21.4483 5.17286 21.3414 4.85904 21.1443 4.603C20.9472 4.34696 20.6708 4.16304 20.3582 4.0798ZM6.13503 16.8651C6.08029 16.8782 6.02258 16.8693 5.97438 16.8403C5.95046 16.8258 5.92969 16.8067 5.91327 16.7841C5.89685 16.7615 5.88511 16.7358 5.87875 16.7086C5.87684 16.6909 5.87684 16.673 5.87875 16.6552L5.85963 5.20567L13.0831 7.25132C13.154 7.2719 13.2163 7.31479 13.2607 7.37359C13.3052 7.4324 13.3294 7.50397 13.3298 7.57763V15.1343L6.13503 16.8651ZM5.86154 18.3574H5.88831C6.00362 18.3599 6.11875 18.3471 6.23065 18.3192L13.3298 16.6018V21.3724L13.3183 21.6548C13.3178 21.7314 13.2926 21.8058 13.2464 21.8669C13.2003 21.9281 13.1356 21.9728 13.062 21.9945L2.49174 24.4962C2.46455 24.5029 2.43629 24.5039 2.40867 24.4993C2.38105 24.4948 2.35466 24.4846 2.33109 24.4695C2.30718 24.455 2.28641 24.4359 2.26999 24.4133C2.25357 24.3907 2.24183 24.365 2.23547 24.3379C2.23356 24.3207 2.23356 24.3034 2.23547 24.2863V4.45C2.2344 4.39762 2.25373 4.34687 2.2894 4.30843C2.32507 4.26999 2.3743 4.24686 2.42672 4.24391C2.45024 4.24466 2.47348 4.24917 2.49557 4.25727L4.40805 4.79539V16.8842C4.40629 17.0767 4.44253 17.2676 4.51472 17.4461C4.5869 17.6245 4.69362 17.7871 4.82877 17.9244C4.96391 18.0618 5.12485 18.1712 5.30238 18.2464C5.47991 18.3217 5.67057 18.3614 5.86345 18.3631L5.86154 18.3574ZM13.7027 5.92699L5.86154 3.69433L5.84815 1.71738C5.84814 1.66034 5.87059 1.60557 5.91065 1.56489C5.95072 1.5242 6.00519 1.50084 6.06235 1.49984H6.12546L19.7232 5.37932C19.7972 5.40126 19.8617 5.44709 19.9067 5.50961C19.9517 5.57213 19.9746 5.64779 19.9718 5.72472L19.9833 13.2738C19.9879 13.3477 19.9655 13.4208 19.9201 13.4795C19.8747 13.5381 19.8095 13.5782 19.7366 13.5925L14.7699 14.787V7.35818C14.7696 7.03703 14.6652 6.72459 14.4721 6.46763C14.2791 6.21067 14.0078 6.023 13.6989 5.93272L13.7027 5.92699Z" fill="white"/></svg></div><style data-emotion="css g9p39z">.css-g9p39z{margin:0;font-size:0.875rem;line-height:1.25rem;font-family:"Helvetica Neue","sans-serif";font-weight:400;font-style:normal;color:#666666;color:rgba(255, 255, 255, 0.5);padding-top:3rem;}@media (min-width:0px){.css-g9p39z{text-align:center;}}@media (min-width:900px){.css-g9p39z{text-align:left;}}</style><div class="MuiTypography-root MuiTypography-body2 css-g9p39z">© <!-- -->2023<!-- --> PingCAP. All Rights Reserved.</div></div></footer></div><div id="gatsby-announcer" style="top:0;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0" aria-live="assertive" aria-atomic="true"/></div></body>
推荐文章
刀枪不入的感冒药
·
TiDB CDC同步数据到Kafka,只需要监听delete事件,请问怎么实现呢? - TiDB 的问答社区
5 天前
坐怀不乱的生菜
·
懲教知多啲
2 月前
另类的热水瓶
·
没房也可以上公办!在广州这种情况!可网上申报,教育局统筹安排学位!-上哪学
2 月前
乐观的便当
·
MacOS python3 安装 gevent 模块 | 离沫凌天๓
4 月前
体贴的红酒
·
Kafka Consumer dies after a reconnect following a network hiccup · Issue #1408 · akka/alpakka-kafka
4 月前
玩足球的手术刀
·
Visual Studio Code 1.73 正式发布 - OSCHINA - 中文开源技术交流社区
11 月前