403Webshell
Server IP : 45.40.142.9  /  Your IP : 216.73.216.250
Web Server : Apache
System : Linux s45-40-142-9.secureserver.net 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : bayspec ( 506)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/mysql-test/r/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/mysql-test/r/thread_cache_size_functionality.result
'#________________________VAR_06_thread_cache_size__________________#'
echo '##'
--echo '#---------------------WL6372_VAR_6_01----------------------#'
####################################################################
#   Checking default value                                         #
####################################################################
SELECT COUNT(@@GLOBAL.thread_cache_size)
1 Expected
SELECT @@GLOBAL.thread_cache_size;
@@GLOBAL.thread_cache_size
9
9 Expected
'#---------------------WL6372_VAR_6_02----------------------#'
# Restart server with thread_cache_size 1
SELECT @@GLOBAL.thread_cache_size;
@@GLOBAL.thread_cache_size
1
1 Expected
SET @@GLOBAL.thread_cache_size=DEFAULT;
SELECT @@GLOBAL.thread_cache_size;
@@GLOBAL.thread_cache_size
9
9 Expected
'#---------------------WL6372_VAR_6_03----------------------#'
SET @@local.thread_cache_size=1;
ERROR HY000: Variable 'thread_cache_size' is a GLOBAL variable and should be set with SET GLOBAL
Expected error 'Global variable'
SET @@session.thread_cache_size=1;
ERROR HY000: Variable 'thread_cache_size' is a GLOBAL variable and should be set with SET GLOBAL
Expected error 'Global variable'
SET @@GLOBAL.thread_cache_size=1;
SET @@GLOBAL.thread_cache_size=DEFAULT;
SELECT COUNT(@@GLOBAL.thread_cache_size);
COUNT(@@GLOBAL.thread_cache_size)
1
1 Expected
SELECT @@GLOBAL.thread_cache_size;
@@GLOBAL.thread_cache_size
9
9 Expected
'#---------------------WL6372_VAR_6_04----------------------#'
SELECT @@GLOBAL.thread_cache_size = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='thread_cache_size';
@@GLOBAL.thread_cache_size = VARIABLE_VALUE
1
1 Expected
SELECT COUNT(@@GLOBAL.thread_cache_size);
COUNT(@@GLOBAL.thread_cache_size)
1
1 Expected
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='thread_cache_size';
COUNT(VARIABLE_VALUE)
1
1 Expected
'#---------------------WL6372_VAR_6_05----------------------#'
SELECT @@thread_cache_size = @@GLOBAL.thread_cache_size;
@@thread_cache_size = @@GLOBAL.thread_cache_size
1
1 Expected
SELECT COUNT(@@local.thread_cache_size);
ERROR HY000: Variable 'thread_cache_size' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@SESSION.thread_cache_size);
ERROR HY000: Variable 'thread_cache_size' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@GLOBAL.thread_cache_size);
COUNT(@@GLOBAL.thread_cache_size)
1
1 Expected
SELECT thread_cache_size = @@SESSION.thread_cache_size;
ERROR 42S22: Unknown column 'thread_cache_size' in 'field list'
Expected error 'Unknown column thread_cache_size in field list'
'#---------------------WL6372_VAR_6_06----------------------#'
SET @@GLOBAL.thread_cache_size=2;
select variable_value from information_schema.global_status where variable_name ='Threads_connected';
variable_value
1
1 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_created';
variable_value
1
1 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_cached';
variable_value
0
0 Expected
select variable_value from information_schema.global_status where variable_name ='Max_used_connections';
variable_value
1
1 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_connected';
variable_value
2
2 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_created';
variable_value
2
2 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_cached';
variable_value
0
0 Expected
select variable_value from information_schema.global_status where variable_name ='Max_used_connections';
variable_value
2
2 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_connected';
variable_value
3
3 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_created';
variable_value
3
3 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_cached';
variable_value
0
0 Expected
select variable_value from information_schema.global_status where variable_name ='Max_used_connections';
variable_value
3
3 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_connected';
variable_value
1
1 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_created';
variable_value
3
3 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_cached';
variable_value
2
2 Expected
select variable_value from information_schema.global_status where variable_name ='Max_used_connections';
variable_value
3
3 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_connected';
variable_value
2
2 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_created';
variable_value
3
3 Expected
select variable_value from information_schema.global_status where variable_name ='Threads_cached';
variable_value
1
1 Expected
select variable_value from information_schema.global_status where variable_name ='Max_used_connections';
variable_value
3
3 Expected
set @@GLOBAL.thread_cache_size=DEFAULT;

Youez - 2016 - github.com/yon3zu
LinuXploit