mirror of
https://github.com/MariaDB/server.git
synced 2025-05-05 16:59:35 +03:00
* rename all debugging related command-line options and variables to start from "debug-", and made them all OFF by default. * replace "MySQL" with "MariaDB" in error messages * "Cast ... converted ... integer to it's ... complement" is now a note, not a warning * @@query_cache_strip_comments now has a session scope, not global.
45 lines
1.8 KiB
Plaintext
45 lines
1.8 KiB
Plaintext
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;
|