blob: 5c9eb69de50bf114f818af2256329318afd1e3f2 (
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
80
81
82
83
84
85
86
87
88
|
SET @start_global_value = @@global.innodb_log_write_ahead_size;
SET global innodb_log_write_ahead_size=4096;
Valid values are positive number
SELECT @@global.innodb_log_write_ahead_size >= 512;
@@global.innodb_log_write_ahead_size >= 512
1
SELECT @@global.innodb_log_write_ahead_size <= 16*1024;
@@global.innodb_log_write_ahead_size <= 16*1024
1
SELECT @@session.innodb_log_write_ahead_size;
ERROR HY000: Variable 'innodb_log_write_ahead_size' is a GLOBAL variable
SHOW global variables LIKE 'innodb_log_write_ahead_size';
Variable_name Value
innodb_log_write_ahead_size 4096
SHOW session variables LIKE 'innodb_log_write_ahead_size';
Variable_name Value
innodb_log_write_ahead_size 4096
SELECT * FROM information_schema.global_variables
WHERE variable_name='innodb_log_write_ahead_size';
VARIABLE_NAME VARIABLE_VALUE
INNODB_LOG_WRITE_AHEAD_SIZE 4096
SELECT * FROM information_schema.session_variables
WHERE variable_name='innodb_log_write_ahead_size';
VARIABLE_NAME VARIABLE_VALUE
INNODB_LOG_WRITE_AHEAD_SIZE 4096
SET global innodb_log_write_ahead_size=1024;
SELECT @@global.innodb_log_write_ahead_size;
@@global.innodb_log_write_ahead_size
1024
SELECT * FROM information_schema.global_variables
WHERE variable_name='innodb_log_write_ahead_size';
VARIABLE_NAME VARIABLE_VALUE
INNODB_LOG_WRITE_AHEAD_SIZE 1024
SELECT * FROM information_schema.session_variables
WHERE variable_name='innodb_log_write_ahead_size';
VARIABLE_NAME VARIABLE_VALUE
INNODB_LOG_WRITE_AHEAD_SIZE 1024
SET session innodb_log_write_ahead_size=2048;
ERROR HY000: Variable 'innodb_log_write_ahead_size' is a GLOBAL variable and should be set with SET GLOBAL
SET global innodb_log_write_ahead_size=512;
SELECT @@global.innodb_log_write_ahead_size;
@@global.innodb_log_write_ahead_size
512
SET global innodb_log_write_ahead_size=2048;
SELECT @@global.innodb_log_write_ahead_size;
@@global.innodb_log_write_ahead_size
2048
SET global innodb_log_write_ahead_size=4096;
SELECT @@global.innodb_log_write_ahead_size;
@@global.innodb_log_write_ahead_size
4096
SET global innodb_log_write_ahead_size=0;
Warnings:
Warning 1292 Truncated incorrect innodb_log_write_ahead_size value: '0'
SELECT @@global.innodb_log_write_ahead_size;
@@global.innodb_log_write_ahead_size
512
SET global innodb_log_write_ahead_size=-1024;
Warnings:
Warning 1292 Truncated incorrect innodb_log_write_ahead_size value: '-1024'
SELECT @@global.innodb_log_write_ahead_size;
@@global.innodb_log_write_ahead_size
512
SET global innodb_log_write_ahead_size=3000;
Warnings:
Warning 1292 Truncated incorrect innodb_log_write_ahead_size value: '3000'
Warning 1210 innodb_log_write_ahead_size should be set 2^n value and larger than 512.
Warning 1210 Setting innodb_log_write_ahead_size to 4096
SELECT @@global.innodb_log_write_ahead_size;
@@global.innodb_log_write_ahead_size
4096
SET global innodb_log_write_ahead_size=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_log_write_ahead_size'
SET global innodb_log_write_ahead_size=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_log_write_ahead_size'
SET global innodb_log_write_ahead_size="foo";
ERROR 42000: Incorrect argument type to variable 'innodb_log_write_ahead_size'
SET global innodb_log_write_ahead_size=-7;
Warnings:
Warning 1292 Truncated incorrect innodb_log_write_ahead_size value: '-7'
SELECT @@global.innodb_log_write_ahead_size;
@@global.innodb_log_write_ahead_size
512
SELECT * FROM information_schema.global_variables
WHERE variable_name='innodb_log_write_ahead_size';
VARIABLE_NAME VARIABLE_VALUE
INNODB_LOG_WRITE_AHEAD_SIZE 512
SET @@global.innodb_log_write_ahead_size = @start_global_value;
|