Current Path : /compat/linux/proc/68247/root/compat/linux/proc/68247/root/compat/linux/proc/3760/cwd/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 |
Current File : //compat/linux/proc/68247/root/compat/linux/proc/68247/root/compat/linux/proc/3760/cwd/usr/opt/mysql57/mysql-test/r/server_offline_1.result |
SET @global_saved_tmp = @@global.offline_mode; CREATE USER 'user1'@'localhost'; CREATE USER 'user2'@'localhost'; CREATE USER 'user3'@'localhost'; connect conu1,localhost,user1; connect conu2,localhost,user2; connect conu3,localhost,user3; SET GLOBAL offline_mode = ON; ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation 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 error ER_SERVER_OFFLINE_MODE connection conu1; connection default; SELECT COUNT(USER) FROM INFORMATION_SCHEMA.PROCESSLIST; COUNT(USER) 1 SHOW STATUS LIKE 'threads_connected'; Variable_name Value Threads_connected 1 SET GLOBAL offline_mode = OFF; 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 disconnect conu1; disconnect conu2; disconnect conu3; connect conu1,localhost,user1; connect conu2,localhost,user2; connect conu3,localhost,user3; connection default; 1 SELECT COUNT(USER) FROM INFORMATION_SCHEMA.PROCESSLIST; COUNT(USER) 5 SHOW STATUS LIKE 'threads_connected'; Variable_name Value Threads_connected 5 SET GLOBAL offline_mode = ON; SELECT COUNT(USER) FROM INFORMATION_SCHEMA.PROCESSLIST; COUNT(USER) 2 SHOW STATUS LIKE 'threads_connected'; Variable_name Value Threads_connected 2 disconnect conu1; disconnect conu2; disconnect conu3; disconnect conu4; DROP USER 'user1'@'localhost'; DROP USER 'user2'@'localhost'; DROP USER 'user3'@'localhost'; # Restoring the original values. SET @@global.offline_mode = @global_saved_tmp;