2

当我尝试在 mysql 中设置 query_cache_size 时,它​​显示警告并将缓存大小重置为 0

 +---------+------+-----------------------------------------------------------------+
| Level   | Code | Message                                                         |
+---------+------+-----------------------------------------------------------------+
| Warning | 1282 | Query cache failed to set size 41984; new query cache size is 0 |
+-
--------+------+-----------------------------------------------------------------+

我试过查询

设置全局查询缓存大小 = 41984;

我正在使用 MySQL服务器版本:5.5.35-0ubuntu0.12.04.2 (Ubuntu)

所以请帮我设置查询缓存大小..

4

1 回答 1

0

你需要先query_cache_type = 1在my.cnf中设置并重启MySQL,然后设置query_cache_size。

请查看如何在 MySQL 中设置查询缓存。

于 2014-02-19T12:50:20.450 回答