SET @start_global_value = @@global.sync_relay_log_info; Warnings: Warning 1287 '@@sync_relay_log_info' is deprecated and will be removed in a future release. SELECT @start_global_value; @start_global_value 10000 select @@global.sync_relay_log_info; @@global.sync_relay_log_info 10000 Warnings: Warning 1287 '@@sync_relay_log_info' is deprecated and will be removed in a future release. select @@session.sync_relay_log_info; ERROR HY000: Variable 'sync_relay_log_info' is a GLOBAL variable show global variables like 'sync_relay_log_info'; Variable_name Value sync_relay_log_info 10000 show session variables like 'sync_relay_log_info'; Variable_name Value sync_relay_log_info 10000 select * from performance_schema.global_variables where variable_name='sync_relay_log_info'; VARIABLE_NAME VARIABLE_VALUE sync_relay_log_info 10000 select * from performance_schema.session_variables where variable_name='sync_relay_log_info'; VARIABLE_NAME VARIABLE_VALUE sync_relay_log_info 10000 set global sync_relay_log_info=1; Warnings: Warning 1287 '@@sync_relay_log_info' is deprecated and will be removed in a future release. select @@global.sync_relay_log_info; @@global.sync_relay_log_info 1 Warnings: Warning 1287 '@@sync_relay_log_info' is deprecated and will be removed in a future release. set session sync_relay_log_info=1; ERROR HY000: Variable 'sync_relay_log_info' is a GLOBAL variable and should be set with SET GLOBAL set global sync_relay_log_info=1.1; ERROR 42000: Incorrect argument type to variable 'sync_relay_log_info' set global sync_relay_log_info=1e1; ERROR 42000: Incorrect argument type to variable 'sync_relay_log_info' set global sync_relay_log_info="foo"; ERROR 42000: Incorrect argument type to variable 'sync_relay_log_info' set global sync_relay_log_info=0; Warnings: Warning 1287 '@@sync_relay_log_info' is deprecated and will be removed in a future release. select @@global.sync_relay_log_info; @@global.sync_relay_log_info 0 Warnings: Warning 1287 '@@sync_relay_log_info' is deprecated and will be removed in a future release. set global sync_relay_log_info=cast(-1 as unsigned int); Warnings: Warning 1287 '@@sync_relay_log_info' is deprecated and will be removed in a future release. Warning 1292 Truncated incorrect sync_relay_log_info value: '18446744073709551615' select @@global.sync_relay_log_info; @@global.sync_relay_log_info 4294967295 Warnings: Warning 1287 '@@sync_relay_log_info' is deprecated and will be removed in a future release. SET @@global.sync_relay_log_info = @start_global_value; Warnings: Warning 1287 '@@sync_relay_log_info' is deprecated and will be removed in a future release. SELECT @@global.sync_relay_log_info; @@global.sync_relay_log_info 10000 Warnings: Warning 1287 '@@sync_relay_log_info' is deprecated and will be removed in a future release.