config root man

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

SET @start_value = @@global.read_only;
SELECT @start_value;
@start_value
0
'#--------------------FN_DYNVARS_139_01------------------------#'
SET @@global.read_only = 1;
SET @@global.read_only = DEFAULT;
SELECT @@global.read_only;
@@global.read_only
0
'#---------------------FN_DYNVARS_139_02-------------------------#'
SET @@global.read_only = @start_value;
SELECT @@global.read_only = 0;
@@global.read_only = 0
1
'#--------------------FN_DYNVARS_139_03------------------------#'
SET @@global.read_only = 0;
SELECT @@global.read_only;
@@global.read_only
0
SET @@global.read_only = 1;
SELECT @@global.read_only;
@@global.read_only
1
SET @@global.read_only = TRUE;
SELECT @@global.read_only;
@@global.read_only
1
SET @@global.read_only = FALSE;
SELECT @@global.read_only;
@@global.read_only
0
SET @@global.read_only = ON;
SELECT @@global.read_only;
@@global.read_only
1
SET @@global.read_only = OFF;
SELECT @@global.read_only;
@@global.read_only
0
'#--------------------FN_DYNVARS_139_04-------------------------#'
SET @@global.read_only = -1;
ERROR 42000: Variable 'read_only' can't be set to the value of '-1'
SELECT @@global.read_only;
@@global.read_only
0
SET @@global.read_only = 4294967296;
ERROR 42000: Variable 'read_only' can't be set to the value of '4294967296'
SELECT @@global.read_only;
@@global.read_only
0
SET @@global.read_only = 10240022115;
ERROR 42000: Variable 'read_only' can't be set to the value of '10240022115'
SELECT @@global.read_only;
@@global.read_only
0
SET @@global.read_only = 10000.01;
ERROR 42000: Incorrect argument type to variable 'read_only'
SELECT @@global.read_only;
@@global.read_only
0
SET @@global.read_only = -1024;
ERROR 42000: Variable 'read_only' can't be set to the value of '-1024'
SELECT @@global.read_only;
@@global.read_only
0
SET @@global.read_only = 42949672950;
ERROR 42000: Variable 'read_only' can't be set to the value of '42949672950'
SELECT @@global.read_only;
@@global.read_only
0
SET @@global.read_only = 'test';
ERROR 42000: Variable 'read_only' can't be set to the value of 'test'
SELECT @@global.read_only;
@@global.read_only
0
'#-------------------FN_DYNVARS_139_05----------------------------#'
SET @@session.read_only = 0;
ERROR HY000: Variable 'read_only' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@read_only;
@@read_only
0
'#----------------------FN_DYNVARS_139_06------------------------#'
SELECT IF(@@global.read_only, "ON", "OFF") = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='read_only';
IF(@@global.read_only, "ON", "OFF") = VARIABLE_VALUE
1
SELECT IF(@@read_only, "ON", "OFF") = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.SESSION_VARIABLES 
WHERE VARIABLE_NAME='read_only';
IF(@@read_only, "ON", "OFF") = VARIABLE_VALUE
1
'#---------------------FN_DYNVARS_139_07----------------------#'
SET @@global.read_only = 1;
SELECT @@read_only = @@global.read_only;
@@read_only = @@global.read_only
1
'#---------------------FN_DYNVARS_139_08----------------------#'
SET read_only = 1;
ERROR HY000: Variable 'read_only' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@read_only;
@@read_only
1
SET local.read_only = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'local.read_only = 1' at line 1
SELECT local.read_only;
ERROR 42S02: Unknown table 'local' in field list
SET global.read_only = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'global.read_only = 1' at line 1
SELECT global.read_only;
ERROR 42S02: Unknown table 'global' in field list
SELECT read_only = @@session.read_only;
ERROR 42S22: Unknown column 'read_only' in 'field list'
SET @@global.read_only = @start_value;
SELECT @@global.read_only;
@@global.read_only
0

Man Man