SHOW STATUS 创建临时磁盘表

发布于 2024-12-26 16:29:58 字数 152 浏览 2 评论 0原文

显示全局状态,例如“Created_tmp_disk_tables”。

每次我通过 phpmyadmin 运行该查询时,都会创建另一个基于磁盘的临时表。

有办法预防吗?

编辑:看起来在 phpmyadmin 中做的任何事情都是创建临时磁盘表。

SHOW GLOBAL STATUS LIKE 'Created_tmp_disk_tables'.

Everytime I run that query through phpmyadmin another disk based temp table is created.

Is there a way to prevent it?

Edit : Looks like doing anything in phpmyadmin is creating temp disk tables.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

野の 2025-01-02 16:29:58

我不认为是这样...我现在已经在3台服务器上进行了测试(其中2台MySQL 5.1,一台是5.0),我已经运行了几次命令,临时表的数量没有增加。你有哪个 MySQL 版本?在哪个平台上?无论如何,如果这是真的,我会说这是一个错误,因为显示变量不需要创建临时表。

因此,您的服务器上运行的其他一些查询似乎正在创建这些磁盘临时表并增加您的计数。

I don't think it is so... I have now tested on 3 servers (2 of them MySQL 5.1, one is 5.0), I have run the command several times and number of temp tables did not increase. Which MySQL version do you have? On which platform? Anyway, if it would be true, I would say it is a bug, because showing a variable should not need to create a temp table.

So it seems that some other queries which are running on your server are creating those disk temp tables and increasing your count.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文