blob: 4b30036a26a850eb977fe229445eec3a30ca0dd7 (
plain)
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
32
33
34
35
36
37
38
39
|
SET @start_global_value = @@global.aria_page_checksum;
select @@global.aria_page_checksum;
@@global.aria_page_checksum
1
select @@session.aria_page_checksum;
ERROR HY000: Variable 'aria_page_checksum' is a GLOBAL variable
show global variables like 'aria_page_checksum';
Variable_name Value
aria_page_checksum ON
show session variables like 'aria_page_checksum';
Variable_name Value
aria_page_checksum ON
select * from information_schema.global_variables where variable_name='aria_page_checksum';
VARIABLE_NAME VARIABLE_VALUE
ARIA_PAGE_CHECKSUM ON
select * from information_schema.session_variables where variable_name='aria_page_checksum';
VARIABLE_NAME VARIABLE_VALUE
ARIA_PAGE_CHECKSUM ON
set global aria_page_checksum=ON;
select @@global.aria_page_checksum;
@@global.aria_page_checksum
1
set global aria_page_checksum=OFF;
select @@global.aria_page_checksum;
@@global.aria_page_checksum
0
set global aria_page_checksum=1;
select @@global.aria_page_checksum;
@@global.aria_page_checksum
1
set session aria_page_checksum=1;
ERROR HY000: Variable 'aria_page_checksum' is a GLOBAL variable and should be set with SET GLOBAL
set global aria_page_checksum=1.1;
ERROR 42000: Incorrect argument type to variable 'aria_page_checksum'
set global aria_page_checksum=1e1;
ERROR 42000: Incorrect argument type to variable 'aria_page_checksum'
set global aria_page_checksum="foo";
ERROR 42000: Variable 'aria_page_checksum' can't be set to the value of 'foo'
SET @@global.aria_page_checksum = @start_global_value;
|