blob: 2233092fa415dd3044990d3a2307f1f50c3b6a7a (
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
40
41
42
43
44
45
|
SET @start_global_value = @@global.aria_pagecache_division_limit;
select @@global.aria_pagecache_division_limit;
@@global.aria_pagecache_division_limit
100
select @@session.aria_pagecache_division_limit;
ERROR HY000: Variable 'aria_pagecache_division_limit' is a GLOBAL variable
show global variables like 'aria_pagecache_division_limit';
Variable_name Value
aria_pagecache_division_limit 100
show session variables like 'aria_pagecache_division_limit';
Variable_name Value
aria_pagecache_division_limit 100
select * from information_schema.global_variables where variable_name='aria_pagecache_division_limit';
VARIABLE_NAME VARIABLE_VALUE
ARIA_PAGECACHE_DIVISION_LIMIT 100
select * from information_schema.session_variables where variable_name='aria_pagecache_division_limit';
VARIABLE_NAME VARIABLE_VALUE
ARIA_PAGECACHE_DIVISION_LIMIT 100
set global aria_pagecache_division_limit=20;
select @@global.aria_pagecache_division_limit;
@@global.aria_pagecache_division_limit
20
set session aria_pagecache_division_limit=1;
ERROR HY000: Variable 'aria_pagecache_division_limit' is a GLOBAL variable and should be set with SET GLOBAL
set global aria_pagecache_division_limit=1.1;
ERROR 42000: Incorrect argument type to variable 'aria_pagecache_division_limit'
set global aria_pagecache_division_limit=1e1;
ERROR 42000: Incorrect argument type to variable 'aria_pagecache_division_limit'
set global aria_pagecache_division_limit="foo";
ERROR 42000: Incorrect argument type to variable 'aria_pagecache_division_limit'
set global aria_pagecache_division_limit=0;
Warnings:
Warning 1292 Truncated incorrect aria_pagecache_division_limit value: '0'
select @@global.aria_pagecache_division_limit;
@@global.aria_pagecache_division_limit
1
set global aria_pagecache_division_limit=cast(-1 as unsigned int);
Warnings:
Warning 1105 Cast to unsigned converted negative integer to it's positive complement
Warning 1105 Cast to unsigned converted negative integer to it's positive complement
Warning 1292 Truncated incorrect aria_pagecache_division_limit value: '18446744073709551615'
select @@global.aria_pagecache_division_limit;
@@global.aria_pagecache_division_limit
100
SET @@global.aria_pagecache_division_limit = @start_global_value;
|