MOON
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4
System: Linux vps.panamaemb.org.sg 3.10.0-1160.80.1.vz7.191.4 #1 SMP Thu Dec 15 20:31:06 MSK 2022 x86_64
User: panama (500)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/cwd/usr/share/mysql-test/suite/sys_vars/r/table_open_cache_instances_basic.result
####################################################################
#   Displaying default value                                       #
####################################################################
SELECT @@GLOBAL.table_open_cache_instances;
@@GLOBAL.table_open_cache_instances
1
####################################################################
# Check that value cannot be set (this variable is settable only   #
# at start-up).                                                    #
####################################################################
SET @@GLOBAL.table_open_cache_instances=1;
ERROR HY000: Variable 'table_open_cache_instances' is a read only variable
SELECT @@GLOBAL.table_open_cache_instances;
@@GLOBAL.table_open_cache_instances
1
#################################################################
# Check if the value in GLOBAL Table matches value in variable  #
#################################################################
SELECT @@GLOBAL.table_open_cache_instances = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='table_open_cache_instances';
@@GLOBAL.table_open_cache_instances = VARIABLE_VALUE
1
SELECT @@GLOBAL.table_open_cache_instances;
@@GLOBAL.table_open_cache_instances
1
SELECT VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='table_open_cache_instances';
VARIABLE_VALUE
1
######################################################################
#  Check if accessing variable with and without GLOBAL point to same #
#  variable                                                          #
######################################################################
SELECT @@table_open_cache_instances = @@GLOBAL.table_open_cache_instances;
@@table_open_cache_instances = @@GLOBAL.table_open_cache_instances
1
######################################################################
#  Check if variable has only the GLOBAL scope                       #
######################################################################
SELECT @@table_open_cache_instances;
@@table_open_cache_instances
1
SELECT @@GLOBAL.table_open_cache_instances;
@@GLOBAL.table_open_cache_instances
1
SELECT @@local.table_open_cache_instances;
ERROR HY000: Variable 'table_open_cache_instances' is a GLOBAL variable
SELECT @@SESSION.table_open_cache_instances;
ERROR HY000: Variable 'table_open_cache_instances' is a GLOBAL variable