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/innodb_compress_debug_basic.test

# 2014-03-16 - Added
#

--source include/have_perfschema.inc
--source include/have_innodb.inc
--source include/have_debug.inc

# The default depends on whatever the server is started with.
# We force it to 'none' here.
SET @backup_global_value = @@global.innodb_compress_debug;
set global innodb_compress_debug="none";

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

#
# Exists as global only
#
--echo Valid value none, zlib, lz4
select @@global.innodb_compress_debug <= 2;
select @@global.innodb_compress_debug;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_compress_debug;
show global variables like 'innodb_compress_debug';
show session variables like 'innodb_compress_debug';
select * from performance_schema.global_variables where variable_name='innodb_compress_debug';
select * from performance_schema.session_variables where variable_name='innodb_compress_debug';

#
# show that it's writable
#
set global innodb_compress_debug="lz4";
select @@global.innodb_compress_debug;
select * from performance_schema.global_variables where variable_name='innodb_compress_debug';
select * from performance_schema.session_variables where variable_name='innodb_compress_debug';
--error ER_GLOBAL_VARIABLE
set session innodb_compress_debug="none";

#
# incorrect types and values
#
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_compress_debug=1.1;
--error ER_WRONG_TYPE_FOR_VAR
set global innodb_compress_debug=1e1;
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_compress_debug=10;
select @@global.innodb_compress_debug;
select * from performance_schema.global_variables where variable_name='innodb_compress_debug';
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_compress_debug=-7;
select @@global.innodb_compress_debug;
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_compress_debug="blah";
select @@global.innodb_compress_debug;
select * from performance_schema.global_variables where variable_name='innodb_compress_debug';

#
# Correct values
#
set global innodb_compress_debug="none";
select @@global.innodb_compress_debug;
set global innodb_compress_debug="zlib";
select @@global.innodb_compress_debug;
set global innodb_compress_debug="lz4";
select @@global.innodb_compress_debug;

#
# cleanup
#

SET @@global.innodb_compress_debug = @backup_global_value;
SELECT @@global.innodb_compress_debug;

Man Man