403Webshell
Server IP : 172.67.216.182  /  Your IP : 172.70.189.142
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/mysql/src/mysql-test/suite/sys_vars/r/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/sys_vars/r/query_cache_limit_func.result
** Setup **

SET @global_query_cache_limit = @@global.query_cache_limit;
Warnings:
Warning	1287	'@@query_cache_limit' is deprecated and will be removed in a future release.
SET @global_query_cache_size = @@global.query_cache_size;
Warnings:
Warning	1287	'@@query_cache_size' is deprecated and will be removed in a future release.
SET @global_query_cache_type = @@global.query_cache_type;
Warnings:
Warning	1287	'@@query_cache_type' is deprecated and will be removed in a future release.
** 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;
Warnings:
Warning	1681	'RESET QUERY CACHE' is deprecated and will be removed in a future release.
** On query_cache_type **
SET GLOBAL query_cache_type = ON;
Warnings:
Warning	1287	'@@query_cache_type' is deprecated and will be removed in a future release.
** Allocating cache size **
SET GLOBAL query_cache_size = 131072;
Warnings:
Warning	1287	'@@query_cache_size' is deprecated and will be removed in a future release.
** Reset values
SET GLOBAL query_cache_size = 0;
Warnings:
Warning	1287	'@@query_cache_size' is deprecated and will be removed in a future release.
SET GLOBAL query_cache_size = 131072;
Warnings:
Warning	1287	'@@query_cache_size' is deprecated and will be removed in a future release.
SET GLOBAL query_cache_type = ON;
Warnings:
Warning	1287	'@@query_cache_type' is deprecated and will be removed in a future release.
'#---------------------FN_DYNVARS_132_01----------------------#'
** Reset cache values **
FLUSH STATUS;
RESET QUERY CACHE;
Warnings:
Warning	1681	'RESET QUERY CACHE' is deprecated and will be removed in a future release.
** 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;
Warnings:
Warning	1681	'RESET QUERY CACHE' is deprecated and will be removed in a future release.
** set cache limit **
SET @@GLOBAL.query_cache_limit = 0;
Warnings:
Warning	1287	'@@query_cache_limit' is deprecated and will be removed in a future release.
** 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;
Warnings:
Warning	1287	'@@query_cache_limit' is deprecated and will be removed in a future release.
** Reset cache values **
FLUSH STATUS;
RESET QUERY CACHE;
Warnings:
Warning	1681	'RESET QUERY CACHE' is deprecated and will be removed in a future release.
** 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;
Warnings:
Warning	1287	'@@query_cache_limit' is deprecated and will be removed in a future release.
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;
Warnings:
Warning	1287	'@@query_cache_limit' is deprecated and will be removed in a future release.
SET GLOBAL query_cache_size = @global_query_cache_size;
Warnings:
Warning	1287	'@@query_cache_size' is deprecated and will be removed in a future release.
SET GLOBAL query_cache_type = @global_query_cache_type;
Warnings:
Warning	1287	'@@query_cache_type' is deprecated and will be removed in a future release.
DROP TABLE IF EXISTS t;

Youez - 2016 - github.com/yon3zu
LinuXploit