SET @start_value = @@GLOBAL.innodb_cleaner_eviction_factor;
SELECT @@GLOBAL.innodb_cleaner_eviction_factor;
@@GLOBAL.innodb_cleaner_eviction_factor
0
SELECT @@SESSION.innodb_cleaner_eviction_factor;
ERROR HY000: Variable 'innodb_cleaner_eviction_factor' is a GLOBAL variable
SET GLOBAL innodb_cleaner_eviction_factor='OFF';
SELECT @@GLOBAL.innodb_cleaner_eviction_factor;
@@GLOBAL.innodb_cleaner_eviction_factor
0
SET GLOBAL innodb_cleaner_eviction_factor='ON';
SELECT @@GLOBAL.innodb_cleaner_eviction_factor;
@@GLOBAL.innodb_cleaner_eviction_factor
1
SET GLOBAL innodb_cleaner_eviction_factor=0;
SELECT @@GLOBAL.innodb_cleaner_eviction_factor;
@@GLOBAL.innodb_cleaner_eviction_factor
0
SET GLOBAL innodb_cleaner_eviction_factor=1;
SELECT @@GLOBAL.innodb_cleaner_eviction_factor;
@@GLOBAL.innodb_cleaner_eviction_factor
1
SET GLOBAL innodb_cleaner_eviction_factor=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_cleaner_eviction_factor'
SET GLOBAL innodb_cleaner_eviction_factor=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_cleaner_eviction_factor'
SET GLOBAL innodb_cleaner_eviction_factor=2;
ERROR 42000: Variable 'innodb_cleaner_eviction_factor' can't be set to the value of '2'
SET GLOBAL innodb_cleaner_eviction_factor='foo';
ERROR 42000: Variable 'innodb_cleaner_eviction_factor' can't be set to the value of 'foo'
SET GLOBAL innodb_cleaner_eviction_factor = @start_value;
