config root man

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

SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name LIKE '%offline_mode%';
VARIABLE_NAME	VARIABLE_VALUE
OFFLINE_MODE	OFF
CREATE USER 'user1'@'localhost';
CREATE USER 'user2'@'localhost';
CREATE USER 'user3'@'localhost';
connect conu1,localhost,user1;
connect conu2,localhost,user2;
connect conu3,localhost,user3;
connection default;
SELECT COUNT(USER) FROM INFORMATION_SCHEMA.PROCESSLIST;
COUNT(USER)
4
SHOW STATUS LIKE 'threads_connected';
Variable_name	Value
Threads_connected	4
SET GLOBAL offline_mode = ON;
SELECT COUNT(USER) FROM INFORMATION_SCHEMA.PROCESSLIST;
COUNT(USER)
1
SHOW STATUS LIKE 'threads_connected';
Variable_name	Value
Threads_connected	1
disconnect default;
disconnect conu1;
ERROR HY000: The server is currently in offline mode
connect(conu1,localhost,user1)
connect(root,localhost,root)
SELECT COUNT(USER) FROM INFORMATION_SCHEMA.PROCESSLIST;
COUNT(USER)
1
connect(default,localhost,root)
SHOW VARIABLES LIKE '%offline_mode%';
Variable_name	Value
offline_mode	ON
SELECT COUNT(USER) FROM INFORMATION_SCHEMA.PROCESSLIST;
COUNT(USER)
2
SHOW STATUS LIKE 'threads_connected';
Variable_name	Value
Threads_connected	2
DROP USER 'user1'@'localhost';
DROP USER 'user2'@'localhost';
DROP USER 'user3'@'localhost';
# Restoring the original values.
SET @@global.offline_mode = 0;

Man Man