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 116 117 118 119 120 121
|
SET @start_global_value = @@global.innodb_ft_enable_stopword;
SELECT @start_global_value;
@start_global_value
1
Valid values are 'ON' and 'OFF'
select @@global.innodb_ft_enable_stopword in (0, 1);
@@global.innodb_ft_enable_stopword in (0, 1)
1
select @@global.innodb_ft_enable_stopword;
@@global.innodb_ft_enable_stopword
1
select @@session.innodb_ft_enable_stopword in (0, 1);
@@session.innodb_ft_enable_stopword in (0, 1)
1
select @@session.innodb_ft_enable_stopword;
@@session.innodb_ft_enable_stopword
1
show global variables like 'innodb_ft_enable_stopword';
Variable_name Value
innodb_ft_enable_stopword ON
show session variables like 'innodb_ft_enable_stopword';
Variable_name Value
innodb_ft_enable_stopword ON
select * from information_schema.global_variables where variable_name='innodb_ft_enable_stopword';
VARIABLE_NAME VARIABLE_VALUE
INNODB_FT_ENABLE_STOPWORD ON
select * from information_schema.session_variables where variable_name='innodb_ft_enable_stopword';
VARIABLE_NAME VARIABLE_VALUE
INNODB_FT_ENABLE_STOPWORD ON
set global innodb_ft_enable_stopword='OFF';
set session innodb_ft_enable_stopword='OFF';
select @@global.innodb_ft_enable_stopword;
@@global.innodb_ft_enable_stopword
0
select @@session.innodb_ft_enable_stopword;
@@session.innodb_ft_enable_stopword
0
select * from information_schema.global_variables where variable_name='innodb_ft_enable_stopword';
VARIABLE_NAME VARIABLE_VALUE
INNODB_FT_ENABLE_STOPWORD OFF
select * from information_schema.session_variables where variable_name='innodb_ft_enable_stopword';
VARIABLE_NAME VARIABLE_VALUE
INNODB_FT_ENABLE_STOPWORD OFF
set @@global.innodb_ft_enable_stopword=1;
set @@session.innodb_ft_enable_stopword=1;
select @@global.innodb_ft_enable_stopword;
@@global.innodb_ft_enable_stopword
1
select @@session.innodb_ft_enable_stopword;
@@session.innodb_ft_enable_stopword
1
select * from information_schema.global_variables where variable_name='innodb_ft_enable_stopword';
VARIABLE_NAME VARIABLE_VALUE
INNODB_FT_ENABLE_STOPWORD ON
select * from information_schema.session_variables where variable_name='innodb_ft_enable_stopword';
VARIABLE_NAME VARIABLE_VALUE
INNODB_FT_ENABLE_STOPWORD ON
set global innodb_ft_enable_stopword=0;
set session innodb_ft_enable_stopword=0;
select @@global.innodb_ft_enable_stopword;
@@global.innodb_ft_enable_stopword
0
select @@session.innodb_ft_enable_stopword;
@@session.innodb_ft_enable_stopword
0
select * from information_schema.global_variables where variable_name='innodb_ft_enable_stopword';
VARIABLE_NAME VARIABLE_VALUE
INNODB_FT_ENABLE_STOPWORD OFF
select * from information_schema.session_variables where variable_name='innodb_ft_enable_stopword';
VARIABLE_NAME VARIABLE_VALUE
INNODB_FT_ENABLE_STOPWORD OFF
set @@global.innodb_ft_enable_stopword='ON';
set @@session.innodb_ft_enable_stopword='ON';
select @@global.innodb_ft_enable_stopword;
@@global.innodb_ft_enable_stopword
1
select @@session.innodb_ft_enable_stopword;
@@session.innodb_ft_enable_stopword
1
select * from information_schema.global_variables where variable_name='innodb_ft_enable_stopword';
VARIABLE_NAME VARIABLE_VALUE
INNODB_FT_ENABLE_STOPWORD ON
select * from information_schema.session_variables where variable_name='innodb_ft_enable_stopword';
VARIABLE_NAME VARIABLE_VALUE
INNODB_FT_ENABLE_STOPWORD ON
set global innodb_ft_enable_stopword=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_ft_enable_stopword'
set session innodb_ft_enable_stopword=1.1;
ERROR 42000: Incorrect argument type to variable 'innodb_ft_enable_stopword'
set global innodb_ft_enable_stopword=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_ft_enable_stopword'
set session innodb_ft_enable_stopword=1e1;
ERROR 42000: Incorrect argument type to variable 'innodb_ft_enable_stopword'
set global innodb_ft_enable_stopword=2;
ERROR 42000: Variable 'innodb_ft_enable_stopword' can't be set to the value of '2'
set session innodb_ft_enable_stopword=2;
ERROR 42000: Variable 'innodb_ft_enable_stopword' can't be set to the value of '2'
set global innodb_ft_enable_stopword='AUTO';
ERROR 42000: Variable 'innodb_ft_enable_stopword' can't be set to the value of 'AUTO'
set session innodb_ft_enable_stopword='AUTO';
ERROR 42000: Variable 'innodb_ft_enable_stopword' can't be set to the value of 'AUTO'
set global innodb_ft_enable_stopword=-3;
ERROR 42000: Variable 'innodb_ft_enable_stopword' can't be set to the value of '-3'
set session innodb_ft_enable_stopword=-7;
ERROR 42000: Variable 'innodb_ft_enable_stopword' can't be set to the value of '-7'
select @@global.innodb_ft_enable_stopword;
@@global.innodb_ft_enable_stopword
1
select @@session.innodb_ft_enable_stopword;
@@session.innodb_ft_enable_stopword
1
select * from information_schema.global_variables where variable_name='innodb_ft_enable_stopword';
VARIABLE_NAME VARIABLE_VALUE
INNODB_FT_ENABLE_STOPWORD ON
select * from information_schema.session_variables where variable_name='innodb_ft_enable_stopword';
VARIABLE_NAME VARIABLE_VALUE
INNODB_FT_ENABLE_STOPWORD ON
SET @@global.innodb_ft_enable_stopword = @start_global_value;
SELECT @@global.innodb_ft_enable_stopword;
@@global.innodb_ft_enable_stopword
1
|