config root man

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

SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name LIKE '%offline_mode%';
VARIABLE_NAME	VARIABLE_VALUE
OFFLINE_MODE	ON
SET @global_saved_tmp =  @@global.offline_mode;
CREATE USER 'user1'@'localhost';
SELECT COUNT(USER) FROM INFORMATION_SCHEMA.PROCESSLIST;
COUNT(USER)
1
SHOW STATUS LIKE 'threads_connected';
Variable_name	Value
Threads_connected	1
connect conu4,localhost,root;
SELECT COUNT(USER) FROM INFORMATION_SCHEMA.PROCESSLIST;
COUNT(USER)
2
SHOW STATUS LIKE 'threads_connected';
Variable_name	Value
Threads_connected	2
connection default;
SET GLOBAL offline_mode = OFF;
SELECT COUNT(USER) FROM INFORMATION_SCHEMA.PROCESSLIST;
COUNT(USER)
2
SHOW STATUS LIKE 'threads_connected';
Variable_name	Value
Threads_connected	2
connect conu1,localhost,user1;
SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name LIKE '%offline_mode%';
VARIABLE_NAME	VARIABLE_VALUE
OFFLINE_MODE	OFF
connection default;
SELECT COUNT(USER) FROM INFORMATION_SCHEMA.PROCESSLIST;
COUNT(USER)
3
SHOW STATUS LIKE 'threads_connected';
Variable_name	Value
Threads_connected	3
disconnect conu1;
disconnect conu4;
DROP USER 'user1'@'localhost';
# Restoring the original values.
SET @@global.offline_mode = @global_saved_tmp;

Man Man