gpt4 book ai didi

MySQL table_cache 拒绝更改值

转载 作者:行者123 更新时间:2023-11-30 23:11:02 25 4
gpt4 key购买 nike

由于一些非常奇怪的原因,我的 table_cache 以及 my.cnf 文件中的 query_cache_limit 值甚至拒绝更改值尽管我修改了它们。

例如在 mysqltuner 中显示以下建议:

query_cache_limit (> 1M, or use smaller result sets)
table_cache (> 400)

但是在 my.cnf 文件中我有:

query-cache-limit              = 8G
table-open-cache = 2048

我已经重新启动了 mysql、apache 和服务器,但这些值拒绝更新。我在 mysql 服务器中使用 Percona 5.5 drop。

非常欢迎任何提示或建议。

谢谢

最佳答案

因为可能会更改全局配置文件,所以您设置的值很可能会被更具体的配置文件覆盖,如 stated in the docs

Keep in mind that even if MySQL does locate a my.cnf file in /etc/my.cnf (global to all MySQL servers on that machine), it will continue its search for a server-specific file, and then a user-specific file. You can think of the final configuration settings as being the result of the /etc/my.cnf, mysql-data-dir/my.cnf, and ~/.my.cnf files

您可以删除在更具体的文件中设置的任何值,或者在 mysql 用户的特定配置文件中设置值。

关于MySQL table_cache 拒绝更改值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19705738/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com