开发者

Creating CACHE on single database - MySQL

开发者 https://www.devze.com 2023-02-25 19:10 出处:网络
Can i create cache on just a single database, not on all the databases ? I开发者_StackOverflow社区f yes, how to do it ?

Can i create cache on just a single database, not on all the databases ?

I开发者_StackOverflow社区f yes, how to do it ?

set global query_cache_size=500000000;

As it is the SQL to create query on all the database i tried this

set 'DB_NAME' query_cache_size=500000000;

But failed !

can you help me on this ?


I think there is no way to do that. Because when I check docs of related topic, it is said that query_cache_size is a system variable, it affects globally, not for database. And if you want to make some database to use query cache, I advice you to optimize your sql instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号