config root man

Current Path : /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 : //usr/opt/mysql57/mysql-test/suite/sys_vars/t/show_compatibility_56_basic.test

--source include/not_embedded.inc
--source include/have_perfschema.inc

#
# Only global
#

--disable_query_log
select @@global.show_compatibility_56 into @orig;
--enable_query_log

select @@global.show_compatibility_56;

--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.show_compatibility_56;

show global variables like 'show_compatibility_56';

show session variables like 'show_compatibility_56';

--disable_warnings
select * from information_schema.global_variables
  where variable_name='show_compatibility_56';

select * from information_schema.session_variables
  where variable_name='show_compatibility_56';
--enable_warnings

#
# ON, OFF, 1, 0, TRUE, FALSE
#
set global show_compatibility_56=1;
--disable_warnings
show variables like "show_compatibility_56";
--enable_warnings

set global show_compatibility_56=0;
--disable_warnings
show variables like "show_compatibility_56";
--enable_warnings

set global show_compatibility_56=ON;
--disable_warnings
show variables like "show_compatibility_56";
--enable_warnings

set global show_compatibility_56=OFF;
--disable_warnings
show variables like "show_compatibility_56";
--enable_warnings

set global show_compatibility_56=TRUE;
--disable_warnings
show variables like "show_compatibility_56";
--enable_warnings

set global show_compatibility_56=FALSE;
--disable_warnings
show variables like "show_compatibility_56";
--enable_warnings

--error ER_WRONG_VALUE_FOR_VAR
set global show_compatibility_56=999;

--error ER_GLOBAL_VARIABLE
set session show_compatibility_56=1;

#
# Restore original setting
#
--disable_query_log
set @@global.show_compatibility_56 = @orig;
--enable_query_log

Man Man