summaryrefslogtreecommitdiff
path: root/mysql-test/r/max_user_connections_basic.result
blob: 3250b2f03ea9a01822e26721df3f7437a27c6049 (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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
SET @start_global_value = @@global.max_user_connections;
SELECT @start_global_value;
@start_global_value
0
SET @start_session_value = @@session.max_user_connections;
SELECT @start_session_value;
@start_session_value
0
'#--------------------FN_DYNVARS_087_01-------------------------#'
SET @@global.max_user_connections = 1000;
SET @@global.max_user_connections = DEFAULT;
SELECT @@global.max_user_connections;
@@global.max_user_connections
0
SET @@session.max_user_connections = 1000;
ERROR HY000: Variable 'max_user_connections' is a GLOBAL variable and should be set with SET GLOBAL
SET @@session.max_user_connections = DEFAULT;
ERROR 42000: Variable 'max_user_connections' doesn't have a default value
SELECT @@session.max_user_connections;
@@session.max_user_connections
0
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
'#--------------------FN_DYNVARS_087_02-------------------------#'
SET @@global.max_user_connections = DEFAULT;
SELECT @@global.max_user_connections = 0;
@@global.max_user_connections = 0
1
SET @@session.max_user_connections = DEFAULT;
ERROR 42000: Variable 'max_user_connections' doesn't have a default value
SELECT @@session.max_user_connections = 0;
@@session.max_user_connections = 0
1
'#--------------------FN_DYNVARS_087_03-------------------------#'
SET @@global.max_user_connections = 1;
SELECT @@global.max_user_connections;
@@global.max_user_connections
1
SET @@global.max_user_connections = 2;
SELECT @@global.max_user_connections;
@@global.max_user_connections
2
SET @@global.max_user_connections = 65536;
SELECT @@global.max_user_connections;
@@global.max_user_connections
65536
SET @@global.max_user_connections = 4294967295;
SELECT @@global.max_user_connections;
@@global.max_user_connections
4294967295
SET @@global.max_user_connections = 4294967294;
SELECT @@global.max_user_connections;
@@global.max_user_connections
4294967294
'#------------------FN_DYNVARS_087_05-----------------------#'
SET @@global.max_user_connections = -1024;
SELECT @@global.max_user_connections;
@@global.max_user_connections
4294966272
SET @@global.max_user_connections = 4294967296;
SELECT @@global.max_user_connections;
@@global.max_user_connections
0
SET @@global.max_user_connections = -1;
SELECT @@global.max_user_connections;
@@global.max_user_connections
4294967295
SET @@global.max_user_connections = 429496729500;
SELECT @@global.max_user_connections;
@@global.max_user_connections
4294967196
SET @@global.max_user_connections = 65530.34.;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
SELECT @@global.max_user_connections;
@@global.max_user_connections
4294967196
SET @@global.max_user_connections = test;
ERROR 42000: Incorrect argument type to variable 'max_user_connections'
SELECT @@global.max_user_connections;
@@global.max_user_connections
4294967196
'#------------------FN_DYNVARS_087_06-----------------------#'
SELECT @@global.max_user_connections = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='max_user_connections';
@@global.max_user_connections = VARIABLE_VALUE
1
'#------------------FN_DYNVARS_087_08-----------------------#'
SET @@global.max_user_connections = TRUE;
SELECT @@global.max_user_connections;
@@global.max_user_connections
1
SET @@global.max_user_connections = FALSE;
SELECT @@global.max_user_connections;
@@global.max_user_connections
0
'#---------------------FN_DYNVARS_087_09----------------------#'
SET @@global.max_user_connections = 20;
SELECT @@max_user_connections = @@global.max_user_connections;
@@max_user_connections = @@global.max_user_connections
1
'#---------------------FN_DYNVARS_087_11----------------------#'
SET @@global.max_user_connections = 102;
SELECT @@max_user_connections;
@@max_user_connections
102
SELECT local.max_user_connections;
ERROR 42S02: Unknown table 'local' in field list
SELECT session.max_user_connections;
ERROR 42S02: Unknown table 'session' in field list
SELECT max_user_connections = @@session.max_user_connections;
ERROR 42S22: Unknown column 'max_user_connections' in 'field list'
SET @@global.max_user_connections = @start_global_value;
SELECT @@global.max_user_connections;
@@global.max_user_connections
0