blob: 8e4caae00887a76efa4f1082ee4802310440e315 (
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
|
#
# 2014-03-26 - Added
#
--source include/have_innodb.inc
#
# show the global and session values;
#
select @@global.innodb_fill_factor;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_fill_factor;
show global variables like 'innodb_fill_factor';
show session variables like 'innodb_fill_factor';
--disable_warnings
select * from information_schema.global_variables where variable_name='innodb_fill_factor';
select * from information_schema.session_variables where variable_name='innodb_fill_factor';
--enable_warnings
#
# test default, min, max value
#
let $innodb_fill_factor_orig=`select @@innodb_fill_factor`;
set global innodb_fill_factor=9;
select @@innodb_fill_factor;
set global innodb_fill_factor=10;
select @@innodb_fill_factor;
set global innodb_fill_factor=75;
select @@innodb_fill_factor;
set global innodb_fill_factor=100;
select @@innodb_fill_factor;
set global innodb_fill_factor=101;
select @@innodb_fill_factor;
eval set global innodb_fill_factor=$innodb_fill_factor_orig;
|