1include/master-slave.inc
2Warnings:
3Note	####	Sending passwords in plain text without SSL/TLS is extremely insecure.
4Note	####	Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
5[connection master]
6select @@global.relay_log_index;
7@@global.relay_log_index
8REPLACED
9select @@session.relay_log_index;
10ERROR HY000: Variable 'relay_log_index' is a GLOBAL variable
11show global variables like 'relay_log_index';
12Variable_name	Value
13relay_log_index	REPLACED
14show session variables like 'relay_log_index';
15Variable_name	Value
16relay_log_index	REPLACED
17select * from information_schema.global_variables where variable_name='relay_log_index';
18VARIABLE_NAME	VARIABLE_VALUE
19RELAY_LOG_INDEX	REPLACED
20select * from information_schema.session_variables where variable_name='relay_log_index';
21VARIABLE_NAME	VARIABLE_VALUE
22RELAY_LOG_INDEX	REPLACED
23set global relay_log_index=1;
24ERROR HY000: Variable 'relay_log_index' is a read only variable
25set session relay_log_index=1;
26ERROR HY000: Variable 'relay_log_index' is a read only variable
27include/rpl_end.inc
28