SET @start_global_value = @@global.innodb_disable_sort_file_cache;
SELECT @start_global_value;
@start_global_value
0
Valid values are 'ON' and 'OFF' 
select @@global.innodb_disable_sort_file_cache in (0, 1);
@@global.innodb_disable_sort_file_cache in (0, 1)
1
select @@global.innodb_disable_sort_file_cache;
@@global.innodb_disable_sort_file_cache
0
select @@session.innodb_disable_sort_file_cache;
ERROR HY000: Variable 'innodb_disable_sort_file_cache' is a GLOBAL variable
show global variables like 'innodb_disable_sort_file_cache';
Variable_name	Value
innodb_disable_sort_file_cache	OFF
show session variables like 'innodb_disable_sort_file_cache';
Variable_name	Value
innodb_disable_sort_file_cache	OFF
select * from information_schema.global_variables where variable_name='innodb_disable_sort_file_cache';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_DISABLE_SORT_FILE_CACHE	OFF
select * from information_schema.session_variables where variable_name='innodb_disable_sort_file_cache';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_DISABLE_SORT_FILE_CACHE	OFF
set global innodb_disable_sort_file_cache='OFF';
select @@global.innodb_disable_sort_file_cache;
@@global.innodb_disable_sort_file_cache
0
select * from information_schema.global_variables where variable_name='innodb_disable_sort_file_cache';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_DISABLE_SORT_FILE_CACHE	OFF
select * from information_schema.session_variables where variable_name='innodb_disable_sort_file_cache';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_DISABLE_SORT_FILE_CACHE	OFF
set @@global.innodb_disable_sort_file_cache=1;
select @@global.innodb_disable_sort_file_cache;
@@global.innodb_disable_sort_file_cache
1
select * from information_schema.global_variables where variable_name='innodb_disable_sort_file_cache';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_DISABLE_SORT_FILE_CACHE	ON
select * from information_schema.session_variables where variable_name='innodb_disable_sort_file_cache';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_DISABLE_SORT_FILE_CACHE	ON
set global innodb_disable_sort_file_cache=0;
select @@global.innodb_disable_sort_file_cache;
@@global.innodb_disable_sort_file_cache
0
select * from information_schema.global_variables where variable_name='innodb_disable_sort_file_cache';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_DISABLE_SORT_FILE_CACHE	OFF
select * from information_schema.session_variables where variable_name='innodb_disable_sort_file_cache';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_DISABLE_SORT_FILE_CACHE	OFF
set @@global.innodb_disable_sort_file_cache='ON';
select @@global.innodb_disable_sort_file_cache;
@@global.innodb_disable_sort_file_cache
1
select * from information_schema.global_variables where variable_name='innodb_disable_sort_file_cache';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_DISABLE_SORT_FILE_CACHE	ON
select * from information_schema.session_variables where variable_name='innodb_disable_sort_file_cache';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_DISABLE_SORT_FILE_CACHE	ON
set session innodb_disable_sort_file_cache='OFF';
ERROR HY000: Variable 'innodb_disable_sort_file_cache' is a GLOBAL variable and should be set with SET GLOBAL
set @@session.innodb_disable_sort_file_cache='ON';
ERROR HY000: Variable 'innodb_disable_sort_file_cache' is a GLOBAL variable and should be set with SET GLOBAL
set global innodb_disable_sort_file_cache=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_disable_sort_file_cache'
set global innodb_disable_sort_file_cache=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_disable_sort_file_cache'
set global innodb_disable_sort_file_cache=2;
ERROR 42000: Variable 'innodb_disable_sort_file_cache' can't be set to the value of '2'
set global innodb_disable_sort_file_cache=-3;
ERROR 42000: Variable 'innodb_disable_sort_file_cache' can't be set to the value of '-3'
select @@global.innodb_disable_sort_file_cache;
@@global.innodb_disable_sort_file_cache
1
select * from information_schema.global_variables where variable_name='innodb_disable_sort_file_cache';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_DISABLE_SORT_FILE_CACHE	ON
select * from information_schema.session_variables where variable_name='innodb_disable_sort_file_cache';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_DISABLE_SORT_FILE_CACHE	ON
set global innodb_disable_sort_file_cache='AUTO';
ERROR 42000: Variable 'innodb_disable_sort_file_cache' can't be set to the value of 'AUTO'
SET @@global.innodb_disable_sort_file_cache = @start_global_value;
SELECT @@global.innodb_disable_sort_file_cache;
@@global.innodb_disable_sort_file_cache
0
