403Webshell
Server IP : 88.99.149.37  /  Your IP : 216.73.216.141
Web Server : nginx/1.31.2
System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64
User : muralimurth ( 1015)
PHP Version : 8.4.23
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/mysql/mysql-test/suite/sys_vars/r/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/mysql/mysql-test/suite/sys_vars/r/query_cache_limit_func.result
** Setup **

SET @global_query_cache_limit = @@global.query_cache_limit;
SET @global_query_cache_size = @@global.query_cache_size;
SET @global_query_cache_type = @@global.query_cache_type;
SET GLOBAL query_cache_type= ON;
SET LOCAL query_cache_type= ON;
** warnings **
DROP TABLE IF EXISTS t;
** creating table **
CREATE TABLE t
(
id INT AUTO_INCREMENT PRIMARY KEY,
c TEXT(30)
);
**inserting value **
INSERT INTO t set c = repeat('x',29);
INSERT INTO t set c = concat(repeat('x',28),'r','x');
INSERT INTO t set c = concat(repeat('x',28),'s','y');
INSERT INTO t set c = concat(repeat('x',28),'g','w');
** Reset cache values **
FLUSH STATUS;
RESET QUERY CACHE;
** On query_cache_type **
SET GLOBAL query_cache_type = ON;
** Allocating cache size **
SET GLOBAL query_cache_size = 131072;
** Reset values
SET GLOBAL query_cache_size = 0;
SET GLOBAL query_cache_size = 131072;
SET GLOBAL query_cache_type = ON;
'#---------------------FN_DYNVARS_132_01----------------------#'
** Reset cache values **
FLUSH STATUS;
RESET QUERY CACHE;
** fetching results **
SELECT * FROM t;
id	c
1	xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2	xxxxxxxxxxxxxxxxxxxxxxxxxxxxrx
3	xxxxxxxxxxxxxxxxxxxxxxxxxxxxsy
4	xxxxxxxxxxxxxxxxxxxxxxxxxxxxgw
** check status on not setting query_cache_limit value **
SHOW STATUS LIKE 'Qcache_not_cached';
Variable_name	Value
Qcache_not_cached	0
SHOW STATUS LIKE 'Qcache_queries_in_cache';
Variable_name	Value
Qcache_queries_in_cache	1
'#---------------------FN_DYNVARS_132_02----------------------#'
** Reset cache values **
FLUSH STATUS;
RESET QUERY CACHE;
** set cache limit **
SET @@GLOBAL.query_cache_limit = 0;
** fetching results **
SELECT * FROM t;
id	c
1	xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2	xxxxxxxxxxxxxxxxxxxxxxxxxxxxrx
3	xxxxxxxxxxxxxxxxxxxxxxxxxxxxsy
4	xxxxxxxxxxxxxxxxxxxxxxxxxxxxgw
** Check status after setting value **
SHOW STATUS LIKE 'Qcache_not_cached';
Variable_name	Value
Qcache_not_cached	1
1 Expected
SHOW STATUS LIKE 'Qcache_queries_in_cache';
Variable_name	Value
Qcache_queries_in_cache	0
0 Expected
'#---------------------FN_DYNVARS_132_03----------------------#'
** set cache limit **
SET @@GLOBAL.query_cache_limit = DEFAULT;
** Reset cache values **
FLUSH STATUS;
RESET QUERY CACHE;
** fetching results **
SELECT * FROM t;
id	c
1	xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2	xxxxxxxxxxxxxxxxxxxxxxxxxxxxrx
3	xxxxxxxxxxxxxxxxxxxxxxxxxxxxsy
4	xxxxxxxxxxxxxxxxxxxxxxxxxxxxgw
SHOW STATUS LIKE 'Qcache_not_cached';
Variable_name	Value
Qcache_not_cached	0
0 Expected
SHOW STATUS LIKE 'Qcache_queries_in_cache';
Variable_name	Value
Qcache_queries_in_cache	1
1 Expected
SET @@GLOBAL.query_cache_limit = 0;
SHOW STATUS LIKE 'Qcache_not_cached';
Variable_name	Value
Qcache_not_cached	0
0 Expected
SHOW STATUS LIKE 'Qcache_queries_in_cache';
Variable_name	Value
Qcache_queries_in_cache	1
1 Expected
** fetching results **
SELECT * FROM t;
id	c
1	xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2	xxxxxxxxxxxxxxxxxxxxxxxxxxxxrx
3	xxxxxxxxxxxxxxxxxxxxxxxxxxxxsy
4	xxxxxxxxxxxxxxxxxxxxxxxxxxxxgw
** Check status after setting value **
SHOW STATUS LIKE 'Qcache_not_cached';
Variable_name	Value
Qcache_not_cached	0
0 Expected
SHOW STATUS LIKE 'Qcache_queries_in_cache';
Variable_name	Value
Qcache_queries_in_cache	1
1 Expected
SET @@GLOBAL.query_cache_limit = @global_query_cache_limit;
SET GLOBAL query_cache_size = @global_query_cache_size;
SET GLOBAL query_cache_type = @global_query_cache_type;
DROP TABLE IF EXISTS t;

Youez - 2016 - github.com/yon3zu
LinuXploit