| 1 |
SET @start_global_value = @@global.innodb_spin_wait_delay; |
| 2 |
SELECT @start_global_value; |
| 3 |
@start_global_value |
| 4 |
4 |
| 5 |
Valid values are zero or above |
| 6 |
select @@global.innodb_spin_wait_delay >=0; |
| 7 |
@@global.innodb_spin_wait_delay >=0 |
| 8 |
1 |
| 9 |
select @@global.innodb_spin_wait_delay; |
| 10 |
@@global.innodb_spin_wait_delay |
| 11 |
4 |
| 12 |
select @@session.innodb_spin_wait_delay; |
| 13 |
ERROR HY000: Variable 'innodb_spin_wait_delay' is a GLOBAL variable |
| 14 |
show global variables like 'innodb_spin_wait_delay'; |
| 15 |
Variable_name Value |
| 16 |
innodb_spin_wait_delay 4 |
| 17 |
show session variables like 'innodb_spin_wait_delay'; |
| 18 |
Variable_name Value |
| 19 |
innodb_spin_wait_delay 4 |
| 20 |
select * from information_schema.global_variables where variable_name='innodb_spin_wait_delay'; |
| 21 |
VARIABLE_NAME VARIABLE_VALUE |
| 22 |
INNODB_SPIN_WAIT_DELAY 4 |
| 23 |
select * from information_schema.session_variables where variable_name='innodb_spin_wait_delay'; |
| 24 |
VARIABLE_NAME VARIABLE_VALUE |
| 25 |
INNODB_SPIN_WAIT_DELAY 4 |
| 26 |
set global innodb_spin_wait_delay=10; |
| 27 |
select @@global.innodb_spin_wait_delay; |
| 28 |
@@global.innodb_spin_wait_delay |
| 29 |
10 |
| 30 |
select * from information_schema.global_variables where variable_name='innodb_spin_wait_delay'; |
| 31 |
VARIABLE_NAME VARIABLE_VALUE |
| 32 |
INNODB_SPIN_WAIT_DELAY 10 |
| 33 |
select * from information_schema.session_variables where variable_name='innodb_spin_wait_delay'; |
| 34 |
VARIABLE_NAME VARIABLE_VALUE |
| 35 |
INNODB_SPIN_WAIT_DELAY 10 |
| 36 |
set session innodb_spin_wait_delay=1; |
| 37 |
ERROR HY000: Variable 'innodb_spin_wait_delay' is a GLOBAL variable and should be set with SET GLOBAL |
| 38 |
set global innodb_spin_wait_delay=DEFAULT; |
| 39 |
select @@global.innodb_spin_wait_delay; |
| 40 |
@@global.innodb_spin_wait_delay |
| 41 |
4 |
| 42 |
set global innodb_spin_wait_delay=0; |
| 43 |
select @@global.innodb_spin_wait_delay; |
| 44 |
@@global.innodb_spin_wait_delay |
| 45 |
0 |
| 46 |
set global innodb_spin_wait_delay=5000; |
| 47 |
select @@global.innodb_spin_wait_delay; |
| 48 |
@@global.innodb_spin_wait_delay |
| 49 |
5000 |
| 50 |
set global innodb_spin_wait_delay=65535; |
| 51 |
Warnings: |
| 52 |
Warning 1292 Truncated incorrect innodb_spin_wait_delay value: '65535' |
| 53 |
select @@global.innodb_spin_wait_delay; |
| 54 |
@@global.innodb_spin_wait_delay |
| 55 |
6000 |
| 56 |
set global innodb_spin_wait_delay=4294967295; |
| 57 |
Warnings: |
| 58 |
Warning 1292 Truncated incorrect innodb_spin_wait_delay value: '4294967295' |
| 59 |
select @@global.innodb_spin_wait_delay; |
| 60 |
@@global.innodb_spin_wait_delay |
| 61 |
6000 |
| 62 |
set @@global.innodb_spin_wait_delay = 4294967296; |
| 63 |
Warnings: |
| 64 |
Warning 1292 Truncated incorrect innodb_spin_wait_delay value: '4294967296' |
| 65 |
select @@global.innodb_spin_wait_delay; |
| 66 |
@@global.innodb_spin_wait_delay |
| 67 |
6000 |
| 68 |
set @@global.innodb_spin_wait_delay = 12345678901; |
| 69 |
Warnings: |
| 70 |
Warning 1292 Truncated incorrect innodb_spin_wait_delay value: '12345678901' |
| 71 |
select @@global.innodb_spin_wait_delay; |
| 72 |
@@global.innodb_spin_wait_delay |
| 73 |
6000 |
| 74 |
set @@global.innodb_spin_wait_delay = 18446744073709551615; |
| 75 |
Warnings: |
| 76 |
Warning 1292 Truncated incorrect innodb_spin_wait_delay value: '18446744073709551615' |
| 77 |
select @@global.innodb_spin_wait_delay; |
| 78 |
@@global.innodb_spin_wait_delay |
| 79 |
6000 |
| 80 |
set global innodb_spin_wait_delay=1.1; |
| 81 |
ERROR 42000: Incorrect argument type to variable 'innodb_spin_wait_delay' |
| 82 |
set global innodb_spin_wait_delay=1e1; |
| 83 |
ERROR 42000: Incorrect argument type to variable 'innodb_spin_wait_delay' |
| 84 |
set global innodb_spin_wait_delay="foo"; |
| 85 |
ERROR 42000: Incorrect argument type to variable 'innodb_spin_wait_delay' |
| 86 |
set global innodb_spin_wait_delay=' '; |
| 87 |
ERROR 42000: Incorrect argument type to variable 'innodb_spin_wait_delay' |
| 88 |
select @@global.innodb_spin_wait_delay; |
| 89 |
@@global.innodb_spin_wait_delay |
| 90 |
6000 |
| 91 |
set global innodb_spin_wait_delay=" "; |
| 92 |
ERROR 42000: Incorrect argument type to variable 'innodb_spin_wait_delay' |
| 93 |
select @@global.innodb_spin_wait_delay; |
| 94 |
@@global.innodb_spin_wait_delay |
| 95 |
6000 |
| 96 |
set global innodb_spin_wait_delay=-7; |
| 97 |
Warnings: |
| 98 |
Warning 1292 Truncated incorrect innodb_spin_wait_delay value: '-7' |
| 99 |
select @@global.innodb_spin_wait_delay; |
| 100 |
@@global.innodb_spin_wait_delay |
| 101 |
0 |
| 102 |
set global innodb_spin_wait_delay=-1024; |
| 103 |
Warnings: |
| 104 |
Warning 1292 Truncated incorrect innodb_spin_wait_delay value: '-1024' |
| 105 |
select @@global.innodb_spin_wait_delay; |
| 106 |
@@global.innodb_spin_wait_delay |
| 107 |
0 |
| 108 |
select * from information_schema.global_variables where variable_name='innodb_spin_wait_delay'; |
| 109 |
VARIABLE_NAME VARIABLE_VALUE |
| 110 |
INNODB_SPIN_WAIT_DELAY 0 |
| 111 |
SET @@global.innodb_spin_wait_delay = @start_global_value; |
| 112 |
SELECT @@global.innodb_spin_wait_delay; |
| 113 |
@@global.innodb_spin_wait_delay |
| 114 |
4 |