1select @@global.log_bin_index;
2@@global.log_bin_index
3REPLACED
4select @@session.log_bin_index;
5ERROR HY000: Variable 'log_bin_index' is a GLOBAL variable
6show global variables like 'log_bin_index';
7Variable_name	Value
8log_bin_index	REPLACED
9show session variables like 'log_bin_index';
10Variable_name	Value
11log_bin_index	REPLACED
12select * from information_schema.global_variables where variable_name='log_bin_index';
13VARIABLE_NAME	VARIABLE_VALUE
14LOG_BIN_INDEX	REPLACED
15select * from information_schema.session_variables where variable_name='log_bin_index';
16VARIABLE_NAME	VARIABLE_VALUE
17LOG_BIN_INDEX	REPLACED
18set global log_bin_index=1;
19ERROR HY000: Variable 'log_bin_index' is a read only variable
20set session log_bin_index=1;
21ERROR HY000: Variable 'log_bin_index' is a read only variable
22