MySQL 8.4 Release Notes
如果由于某种原因,您希望阻止用户看到他们查询的痕迹,请使用此处显示的选项启动服务器:If, for some reason, you wish to prevent users from seeing traces of their queries, start the server with the options shown here:
--maximum-optimizer-trace-max-mem-size=0 --optimizer-trace-max-mem-size=0
这将最大大小设置为 0,并防止用户更改此限制,从而将所有痕迹截断为 0 字节。This sets the maximum size to 0 and prevents users from changing this limit, thus truncating all traces to 0 bytes.