set GLOBAL query_cache_size=1355776; drop table if exists t1; create table t1 (a int not null); insert into t1 values (1),(2),(3); flush query cache; flush query cache; reset query cache; flush status; ( select * from t1 ); a 1 2 3 /*!40101 SET @OLD_SQL_MODE := @@SQL_MODE, @@SQL_MODE := REPLACE(REPLACE(@@SQL_MODE, 'ANSI_QUOTES', ''), ',,', ','), @OLD_QUOTE := @@SQL_QUOTE_SHOW_CREATE, @@SQL_QUOTE_SHOW_CREATE := 1 */; /* only comment */; # only comment ; -- only comment ; DROP TABLE t1; SET GLOBAL query_cache_size= default;