Mysql 缓存

Mysql 缓存

select count(id) from zut_t_userinfo where role = 1 and id in (select uid from zut_t_user_group_middle  where groupid = 149 and realname like '%%');


mysql 5.5.27
1.my.ini:
#read_buffer_size=64K
#read_rnd_buffer_size=256K
read_buffer_size=4M
read_rnd_buffer_size=1M

2.
show variables like '%query_cache%';
query_cache_limit
set global query_cache_size = 600000;
SHOW VARIABLES LIKE 'have_query_cache';
set session query_cache_type = ON;
show status like ‘%Qcache%’;
SHOW STATUS LIKE 'Qcache%';
show variables like '%cache%';
select @@global.query_cache_limit;
select @@global.query_cache_size;




http://www.cnblogs.com/feichexia/archive/2012/11/27/mysqlconf.html


http://dev.mysql.com/doc/refman/5.1/zh/database-administration.html#query-cache

http://blog.csdn.net/zhouqi_2011/article/details/8751636



你可能感兴趣的:(mysql)