config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/sys_vars/t/

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
Upload File :
Current File : /home/usr.opt/mysql57/mysql-test/suite/sys_vars/t/gtid_owned_basic.test

--source include/not_embedded.inc

# the variable is controlled in different ways depending on whether
# gtid_mode=on or off.  the behavior when gtid_mode=on is tested in
# rpl_gtid_execution.test
--source include/not_gtid_enabled.inc


SET @start_global_value = @@global.gtid_owned;
SELECT @start_global_value;

#
# exists as global and session.
#
select @@global.gtid_owned;
select @@session.gtid_owned;
show global variables like 'gtid_owned';
show session variables like 'gtid_owned';
--disable_warnings
select * from information_schema.global_variables where variable_name='gtid_owned';
select * from information_schema.session_variables where variable_name='gtid_owned';
--enable_warnings

#
# It is not writable.
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set @@global.gtid_owned = 1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set @@session.gtid_owned = 1;

#
# With GTID_MODE = OFF, gtid_owned stays empty when setting gtid_next
# to anonymous or automatic.
#

set @@session.gtid_next = 'anonymous';
select @@session.gtid_owned;
select @@global.gtid_owned;
ROLLBACK;

set @@session.gtid_next = 'automatic';
select @@session.gtid_owned;
select @@global.gtid_owned;

#
# See rpl_gtid_execution.test for a comprehensive test case with gtid_mode=on.
#

Man Man