⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 query_cache.result

📁 这是linux下运行的mysql软件包,可用于linux 下安装 php + mysql + apach 的网络配置
💻 RESULT
字号:
set GLOBAL query_cache_size=1355776;flush query cache;flush query cache;reset query cache;flush status;drop table if exists t1,t2,t3,t4,t11,t21;drop database if exists mysqltest;create table t1 (a int not null);insert into t1 values (1),(2),(3);select * from t1;a123select * from t1;a123select sql_no_cache * from t1;a123select length(now()) from t1;length(now())191919show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	1show status like "Qcache_inserts";Variable_name	ValueQcache_inserts	1show status like "Qcache_hits";Variable_name	ValueQcache_hits	1drop table t1;show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	0create table t1 (a int not null);insert into t1 values (1),(2),(3);create table t2 (a int not null);insert into t2 values (4),(5),(6);create table t3 (a int not null) engine=MERGE UNION=(t1,t2) INSERT_METHOD=FIRST;select * from t3;a123456select * from t3;a123456show status like "Qcache_hits";Variable_name	ValueQcache_hits	2show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	1insert into t2  values (7);show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	0select * from t1;a123select * from t1;a123show status like "Qcache_hits";Variable_name	ValueQcache_hits	3show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	1insert into t3 values (8);show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	0select * from t3;a12384567show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	1update t2 set a=9 where a=7;show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	0select * from t1;a1238show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	1update t3 set a=10 where a=1;show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	0select * from t3;a102384569show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	1delete from t2 where a=9;show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	0select * from t1;a10238show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	1delete from t3 where a=10;show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	0drop table t1, t2, t3;set query_cache_type=demand;create table t1 (a int not null);insert into t1 values (1),(2),(3);select * from t1;a123show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	0select sql_cache * from t1 union select * from t1;a123set query_cache_type=2;select sql_cache * from t1 union select * from t1;a123select * from t1 union select sql_cache * from t1;a123show status like "Qcache_hits";Variable_name	ValueQcache_hits	4show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	2set query_cache_type=on;reset query cache;show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	0select sql_no_cache * from t1;a123show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	0drop table t1;create table t1 (a text not null);select CONNECTION_ID() from t1;CONNECTION_ID()select FOUND_ROWS();FOUND_ROWS()0select NOW() from t1;NOW()select CURDATE() from t1;CURDATE()select CURTIME() from t1;CURTIME()select DATABASE() from t1;DATABASE()select ENCRYPT("test") from t1;ENCRYPT("test")select LAST_INSERT_ID() from t1;LAST_INSERT_ID()select RAND() from t1;RAND()select UNIX_TIMESTAMP() from t1;UNIX_TIMESTAMP()select USER() from t1;USER()select CURRENT_USER() from t1;CURRENT_USER()select benchmark(1,1) from t1;benchmark(1,1)explain extended select benchmark(1,1) from t1;id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra1	SIMPLE	t1	system	NULL	NULL	NULL	NULL	0	const row not foundWarnings:Note	1003	select sql_no_cache benchmark(1,1) AS `benchmark(1,1)` from `test`.`t1`show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	0create table t2 (a text not null);insert into t1 values("1111111111111111111111111111111111111111111111111111");insert into t2 select * from t1;insert into t1 select * from t2;insert into t2 select * from t1;insert into t1 select * from t2;insert into t2 select * from t1;insert into t1 select * from t2;insert into t2 select * from t1;insert into t1 select * from t2;insert into t2 select * from t1;insert into t1 select * from t2;insert into t2 select * from t1;insert into t1 select * from t2;insert into t2 select * from t1;insert into t1 select * from t2;insert into t2 select * from t1;insert into t1 select * from t2;insert into t2 select * from t1;insert into t1 select * from t2;show status like "Qcache_hits";Variable_name	ValueQcache_hits	4show status like "Qcache_lowmem_prunes";Variable_name	ValueQcache_lowmem_prunes	0select a as a1, a as a2 from t1;select a as a2, a as a3 from t1;select a as a3, a as a4 from t1;select a as a1, a as a2 from t1;show status like "Qcache_hits";Variable_name	ValueQcache_hits	4show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	2show status like "Qcache_lowmem_prunes";Variable_name	ValueQcache_lowmem_prunes	2reset query cache;insert into t2 select * from t1;insert into t1 select * from t2;insert into t2 select * from t1;insert into t1 select * from t2;insert into t2 select * from t1;insert into t1 select * from t2;insert into t2 select * from t1;insert into t1 select * from t2;insert into t2 select * from t1;insert into t1 select * from t2;select * from t1;show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	0drop table t1,t2;create database mysqltest;create table mysqltest.t1 (i int not null auto_increment, a int, primary key (i));insert into mysqltest.t1 (a) values (1);select * from mysqltest.t1 where i is null;i	a1	1create table t1(a int);select * from t1;ashow status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	1select * from mysqltest.t1;i	a1	1show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	2drop database mysqltest;show status like "Qcache_queries_in_cache";Variable_name	ValueQcache_queries_in_cache	1drop table t1;create table t1 (a char(1) not null collate koi8r_general_ci);insert into t1 values(_koi8r"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -