SET @start_global_value = @@global.innodb_change_buffering;
SELECT @start_global_value;
@start_global_value
all
Valid values are 'all', 'deletes', 'changes', 'inserts', 'none', 'purges'
select @@global.innodb_change_buffering in ('all', 'deletes', 'changes', 'inserts', 'none', 'purges');
@@global.innodb_change_buffering in ('all', 'deletes', 'changes', 'inserts', 'none', 'purges')
1
select @@global.innodb_change_buffering;
@@global.innodb_change_buffering
all
select @@session.innodb_change_buffering;
ERROR HY000: Variable 'innodb_change_buffering' is a GLOBAL variable
show global variables like 'innodb_change_buffering';
Variable_name	Value
innodb_change_buffering	all
show session variables like 'innodb_change_buffering';
Variable_name	Value
innodb_change_buffering	all
select * from information_schema.global_variables where variable_name='innodb_change_buffering';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_CHANGE_BUFFERING	all
select * from information_schema.session_variables where variable_name='innodb_change_buffering';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_CHANGE_BUFFERING	all
set global innodb_change_buffering='none';
select @@global.innodb_change_buffering;
@@global.innodb_change_buffering
none
select * from information_schema.global_variables where variable_name='innodb_change_buffering';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_CHANGE_BUFFERING	none
select * from information_schema.session_variables where variable_name='innodb_change_buffering';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_CHANGE_BUFFERING	none
set @@global.innodb_change_buffering='inserts';
select @@global.innodb_change_buffering;
@@global.innodb_change_buffering
inserts
select * from information_schema.global_variables where variable_name='innodb_change_buffering';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_CHANGE_BUFFERING	inserts
select * from information_schema.session_variables where variable_name='innodb_change_buffering';
VARIABLE_NAME	VARIABLE_VALUE
INNODB_CHANGE_BUFFERING	inserts
set session innodb_change_buffering='some';
ERROR HY000: Variable 'innodb_change_buffering' is a GLOBAL variable and should be set with SET GLOBAL
set @@session.innodb_change_buffering='some';
ERROR HY000: Variable 'innodb_change_buffering' is a GLOBAL variable and should be set with SET GLOBAL
set global innodb_change_buffering=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_change_buffering'
set global innodb_change_buffering=1;
ERROR 42000: Incorrect argument type to variable 'innodb_change_buffering'
set global innodb_change_buffering=-2;
ERROR 42000: Incorrect argument type to variable 'innodb_change_buffering'
set global innodb_change_buffering=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_change_buffering'
set global innodb_change_buffering='some';
ERROR 42000: Variable 'innodb_change_buffering' can't be set to the value of 'some'
SET @@global.innodb_change_buffering = @start_global_value;
SELECT @@global.innodb_change_buffering;
@@global.innodb_change_buffering
all
