blob: df626e3373e8471676289b499bcb0a1b9d067844 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
SET @start_global_value = @@global.innodb_sync_array_size;
SELECT @start_global_value;
@start_global_value
1
Valid values are between 0 and 1024
SELECT @@global.innodb_sync_array_size between 0 and 1024;
@@global.innodb_sync_array_size between 0 and 1024
1
SELECT @@global.innodb_sync_array_size;
@@global.innodb_sync_array_size
1
SELECT @@session.innodb_sync_array_size;
ERROR HY000: Variable 'innodb_sync_array_size' is a GLOBAL variable
SHOW global variables LIKE 'innodb_sync_array_size';
Variable_name Value
innodb_sync_array_size 1
SHOW session variables LIKE 'innodb_sync_array_size';
Variable_name Value
innodb_sync_array_size 1
SELECT * FROM information_schema.global_variables
where variable_name='innodb_sync_array_size';
VARIABLE_NAME VARIABLE_VALUE
INNODB_SYNC_ARRAY_SIZE 1
SELECT * FROM information_schema.session_variables
where variable_name='innodb_sync_array_size';
VARIABLE_NAME VARIABLE_VALUE
INNODB_SYNC_ARRAY_SIZE 1
SET global innodb_sync_array_size=10;
SELECT @@global.innodb_sync_array_size;
@@global.innodb_sync_array_size
10
SELECT * FROM information_schema.global_variables
where variable_name='innodb_sync_array_size';
VARIABLE_NAME VARIABLE_VALUE
INNODB_SYNC_ARRAY_SIZE 10
SELECT * FROM information_schema.session_variables
where variable_name='innodb_sync_array_size';
VARIABLE_NAME VARIABLE_VALUE
INNODB_SYNC_ARRAY_SIZE 10
SET session innodb_sync_array_size=1;
ERROR HY000: Variable 'innodb_sync_array_size' is a GLOBAL variable and should be set with SET GLOBAL
SET global innodb_sync_array_size=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_sync_array_size'
SET global innodb_sync_array_size=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_sync_array_size'
SET global innodb_sync_array_size="foo";
ERROR 42000: Incorrect argument type to variable 'innodb_sync_array_size'
SET global innodb_sync_array_size=-7;
Warnings:
Warning 1292 Truncated incorrect innodb_sync_array_size value: '-7'
SELECT @@global.innodb_sync_array_size;
@@global.innodb_sync_array_size
1
SELECT * FROM information_schema.global_variables
where variable_name='innodb_sync_array_size';
VARIABLE_NAME VARIABLE_VALUE
INNODB_SYNC_ARRAY_SIZE 1
SET global innodb_sync_array_size=96;
SELECT @@global.innodb_sync_array_size;
@@global.innodb_sync_array_size
96
SELECT * FROM information_schema.global_variables
where variable_name='innodb_sync_array_size';
VARIABLE_NAME VARIABLE_VALUE
INNODB_SYNC_ARRAY_SIZE 96
SET global innodb_sync_array_size=0;
Warnings:
Warning 1292 Truncated incorrect innodb_sync_array_size value: '0'
SELECT @@global.innodb_sync_array_size;
@@global.innodb_sync_array_size
1
SET global innodb_sync_array_size=64;
SELECT @@global.innodb_sync_array_size;
@@global.innodb_sync_array_size
64
SET @@global.innodb_sync_array_size = @start_global_value;
SELECT @@global.innodb_sync_array_size;
@@global.innodb_sync_array_size
1
|