1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
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;
|