mirror of
https://github.com/MariaDB/server.git
synced 2025-05-07 04:01:59 +03:00
93 lines
4.0 KiB
Plaintext
93 lines
4.0 KiB
Plaintext
SET @start_global_value = @@global.innodb_stats_traditional;
|
|
SELECT @start_global_value;
|
|
@start_global_value
|
|
1
|
|
Valid values are 'ON' and 'OFF'
|
|
select @@global.innodb_stats_traditional in (0, 1);
|
|
@@global.innodb_stats_traditional in (0, 1)
|
|
1
|
|
select @@global.innodb_stats_traditional;
|
|
@@global.innodb_stats_traditional
|
|
1
|
|
select @@session.innodb_stats_traditional;
|
|
ERROR HY000: Variable 'innodb_stats_traditional' is a GLOBAL variable
|
|
show global variables like 'innodb_stats_traditional';
|
|
Variable_name Value
|
|
innodb_stats_traditional ON
|
|
show session variables like 'innodb_stats_traditional';
|
|
Variable_name Value
|
|
innodb_stats_traditional ON
|
|
select * from information_schema.global_variables where variable_name='innodb_stats_traditional';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
INNODB_STATS_TRADITIONAL ON
|
|
select * from information_schema.session_variables where variable_name='innodb_stats_traditional';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
INNODB_STATS_TRADITIONAL ON
|
|
set global innodb_stats_traditional='OFF';
|
|
select @@global.innodb_stats_traditional;
|
|
@@global.innodb_stats_traditional
|
|
0
|
|
select * from information_schema.global_variables where variable_name='innodb_stats_traditional';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
INNODB_STATS_TRADITIONAL OFF
|
|
select * from information_schema.session_variables where variable_name='innodb_stats_traditional';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
INNODB_STATS_TRADITIONAL OFF
|
|
set @@global.innodb_stats_traditional=1;
|
|
select @@global.innodb_stats_traditional;
|
|
@@global.innodb_stats_traditional
|
|
1
|
|
select * from information_schema.global_variables where variable_name='innodb_stats_traditional';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
INNODB_STATS_TRADITIONAL ON
|
|
select * from information_schema.session_variables where variable_name='innodb_stats_traditional';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
INNODB_STATS_TRADITIONAL ON
|
|
set global innodb_stats_traditional=0;
|
|
select @@global.innodb_stats_traditional;
|
|
@@global.innodb_stats_traditional
|
|
0
|
|
select * from information_schema.global_variables where variable_name='innodb_stats_traditional';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
INNODB_STATS_TRADITIONAL OFF
|
|
select * from information_schema.session_variables where variable_name='innodb_stats_traditional';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
INNODB_STATS_TRADITIONAL OFF
|
|
set @@global.innodb_stats_traditional='ON';
|
|
select @@global.innodb_stats_traditional;
|
|
@@global.innodb_stats_traditional
|
|
1
|
|
select * from information_schema.global_variables where variable_name='innodb_stats_traditional';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
INNODB_STATS_TRADITIONAL ON
|
|
select * from information_schema.session_variables where variable_name='innodb_stats_traditional';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
INNODB_STATS_TRADITIONAL ON
|
|
set session innodb_stats_traditional='OFF';
|
|
ERROR HY000: Variable 'innodb_stats_traditional' is a GLOBAL variable and should be set with SET GLOBAL
|
|
set @@session.innodb_stats_traditional='ON';
|
|
ERROR HY000: Variable 'innodb_stats_traditional' is a GLOBAL variable and should be set with SET GLOBAL
|
|
set global innodb_stats_traditional=1.1;
|
|
ERROR 42000: Incorrect argument type to variable 'innodb_stats_traditional'
|
|
set global innodb_stats_traditional=1e1;
|
|
ERROR 42000: Incorrect argument type to variable 'innodb_stats_traditional'
|
|
set global innodb_stats_traditional=2;
|
|
ERROR 42000: Variable 'innodb_stats_traditional' can't be set to the value of '2'
|
|
set global innodb_stats_traditional=-3;
|
|
ERROR 42000: Variable 'innodb_stats_traditional' can't be set to the value of '-3'
|
|
select @@global.innodb_stats_traditional;
|
|
@@global.innodb_stats_traditional
|
|
1
|
|
select * from information_schema.global_variables where variable_name='innodb_stats_traditional';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
INNODB_STATS_TRADITIONAL ON
|
|
select * from information_schema.session_variables where variable_name='innodb_stats_traditional';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
INNODB_STATS_TRADITIONAL ON
|
|
set global innodb_stats_traditional='AUTO';
|
|
ERROR 42000: Variable 'innodb_stats_traditional' can't be set to the value of 'AUTO'
|
|
SET @@global.innodb_stats_traditional = @start_global_value;
|
|
SELECT @@global.innodb_stats_traditional;
|
|
@@global.innodb_stats_traditional
|
|
1
|