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