时间:2021-07-01 10:21:17 帮助过:18人阅读
mysql> use zzlp; mysql> show tables;
mysql> select count(*) from user;
#Qcache_hits表示sql查询在缓存中命中的累计次数,是累加值 mysql> SHOW STATUS LIKE ‘Qcache_hits‘;
#连续查询两次 mysql> select count(*) from user; mysql> select count(*) from user;
mysql> insert into user (id) select id from article; --插入数据后,跟这个表所有相关的sql缓存就会被清空掉 mysql> select count(*) from user;
mysql> SHOW STATUS LIKE ‘Qcache_hits‘;
mysql> select count(*) from user;
mysql> select count(*) from user; mysql> SHOW STATUS LIKE ‘Qcache_hits‘;
MySQL知识总结(缓存)
标签:drop 缓存 改变 将不 连续 tle blank 数据库 大量