config root man

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

SET @start_global_value = @@global.optimizer_trace;
SELECT @start_global_value;
@start_global_value
enabled=off,one_line=off
select @@global.optimizer_trace;
@@global.optimizer_trace
enabled=off,one_line=off
select @@session.optimizer_trace;
@@session.optimizer_trace
enabled=off,one_line=off
show global variables like 'optimizer_trace';
Variable_name	Value
optimizer_trace	enabled=off,one_line=off
show session variables like 'optimizer_trace';
Variable_name	Value
optimizer_trace	enabled=off,one_line=off
select * from information_schema.global_variables where variable_name='optimizer_trace';
VARIABLE_NAME	VARIABLE_VALUE
OPTIMIZER_TRACE	enabled=off,one_line=off
select * from information_schema.session_variables where variable_name='optimizer_trace';
VARIABLE_NAME	VARIABLE_VALUE
OPTIMIZER_TRACE	enabled=off,one_line=off
set global optimizer_trace=1;
select @@global.optimizer_trace;
@@global.optimizer_trace
enabled=on,one_line=off
set session optimizer_trace=1;
select @@session.optimizer_trace;
@@session.optimizer_trace
enabled=on,one_line=off
set global optimizer_trace=0;
select @@global.optimizer_trace;
@@global.optimizer_trace
enabled=off,one_line=off
set session optimizer_trace=0;
select @@session.optimizer_trace;
@@session.optimizer_trace
enabled=off,one_line=off
set session optimizer_trace=default;
select @@session.optimizer_trace;
@@session.optimizer_trace
enabled=off,one_line=off
set global optimizer_trace=1.1;
ERROR 42000: Incorrect argument type to variable 'optimizer_trace'
set global optimizer_trace=1e1;
ERROR 42000: Incorrect argument type to variable 'optimizer_trace'
set session optimizer_trace="foobar";
ERROR 42000: Variable 'optimizer_trace' can't be set to the value of 'foobar'
SET @@global.optimizer_trace = @start_global_value;
SELECT @@global.optimizer_trace;
@@global.optimizer_trace
enabled=off,one_line=off

Man Man