Current Path : /home/usr.opt/mysql57/mysql-test/suite/sys_vars/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/sys_vars/r/gtid_purged_basic.result |
RESET MASTER; SET @start_global_value = @@global.gtid_purged; SELECT @start_global_value; @start_global_value SET @sql_log_bin_start_value = @@session.sql_log_bin; select @@global.gtid_purged; @@global.gtid_purged select @@session.gtid_purged; ERROR HY000: Variable 'gtid_purged' is a GLOBAL variable show global variables like 'gtid_purged'; Variable_name Value gtid_purged show session variables like 'gtid_purged'; Variable_name Value gtid_purged select * from information_schema.global_variables where variable_name='gtid_purged'; VARIABLE_NAME VARIABLE_VALUE GTID_PURGED select * from information_schema.session_variables where variable_name='gtid_purged'; VARIABLE_NAME VARIABLE_VALUE GTID_PURGED set @@global.gtid_purged = NULL; ERROR 42000: Variable 'gtid_purged' can't be set to the value of 'NULL' select @@global.gtid_purged; @@global.gtid_purged set @@global.gtid_purged = default; ERROR 42000: Variable 'gtid_purged' doesn't have a default value select @@global.gtid_purged; @@global.gtid_purged SET @@global.gtid_purged= '11111111-1111-1111-1111-111111111111:1-2'; SELECT @@global.gtid_purged; @@global.gtid_purged 11111111-1111-1111-1111-111111111111:1-2 SET @@global.gtid_purged= '11111111-1111-1111-1111-111111111111:3'; ERROR HY000: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED is empty. SELECT @@global.gtid_purged; @@global.gtid_purged 11111111-1111-1111-1111-111111111111:1-2 RESET MASTER; SET AUTOCOMMIT= OFF; SET @@global.gtid_purged= '11111111-1111-1111-1111-111111111111:4-5'; SET @@session.sql_log_bin= @sql_log_bin_start_value; SET AUTOCOMMIT= ON; RESET MASTER; SELECT @@global.gtid_purged; @@global.gtid_purged