在运行时更改MySQL innodb_buffer_pool_size?

发布于 2024-08-14 09:12:32 字数 185 浏览 2 评论 0原文

这可能是一个愚蠢的问题,但是是否可以在运行时更改 MySQL 配置选项,例如 innodb_buffer_pool_size ?

或者,是否有一种方法可以在不关闭现有连接或拒绝新连接的情况下重新加载 MySQL(就像您可以对 Apache 所做的那样)?

Linux_32 (2.6.26) + MySQL 5.0.24a

This may be a dumb question, but is it possible to change the MySQL configuration options such as innodb_buffer_pool_size at runtime?

Or, equivalently, is there a way to reload MySQL without closing existing connections or refusing new connections (like you can do with Apache)?

Linux_32 (2.6.26) + MySQL 5.0.24a

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

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

发布评论

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

评论(2

樱花坊 2024-08-21 09:12:32

根据 这个 MySQL 论坛帖子,它不是可以在运行时设置innodb_buffer_pool_size

所以问题仍然存在:是否可以更改 MySQL 配置并以对其用户透明的方式重新加载守护进程?

According to this MySQL forum post, it is not possible to set innodb_buffer_pool_size at runtime.

So the question remains: is it possible to change the MySQL configuration and reload the daemon transparently to its users?

想挽留 2024-08-21 09:12:32

是的,您可以(取决于您的服务器版本)。

innodb_buffer_pool_size 从 5.7.5 开始是一个动态变量 this手动输入说。

这里是一些关于更改大小时服务器的行为。

Yes, you can (depending on your server version).

The innodb_buffer_pool_size is a dynamic variable since 5.7.5 as this manual entry says.

Here is some further information about the server's behaviour when changing the size.

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