config root man

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

SET @saved_value_super= @@GLOBAL.SUPER_READ_ONLY;
SET @saved_value= @@GLOBAL.read_only;
CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (1);
BEGIN;
UPDATE t1 SET a = 1 where a =1;
SET GLOBAL SUPER_READ_ONLY=1;
COMMIT;
ERROR HY000: The MySQL server is running with the --super-read-only option so it cannot execute this statement
SET GLOBAL SUPER_READ_ONLY=0;
CREATE TEMPORARY TABLE t2 (a INT) ENGINE=INNODB;
BEGIN;
UPDATE t1 SET a = 1 where a = 1;
INSERT INTO t2 values(10);
SET GLOBAL SUPER_READ_ONLY=1;
COMMIT;
ERROR HY000: The MySQL server is running with the --super-read-only option so it cannot execute this statement
DROP TABLE t2;
SET GLOBAL SUPER_READ_ONLY=0;
SET GLOBAL READ_ONLY=0;
CREATE USER test@localhost;
GRANT CREATE TEMPORARY TABLES, UPDATE, DROP ON *.* TO test@localhost;
BEGIN;
UPDATE t1 SET a = 1 where a =1;
SET GLOBAL READ_ONLY=1;
COMMIT;
ERROR HY000: The MySQL server is running with the --read-only option so it cannot execute this statement
SET GLOBAL READ_ONLY=0;
CREATE TEMPORARY TABLE t2 (a INT) ENGINE=INNODB;
BEGIN;
UPDATE t1 SET a = 1 where a = 1;
INSERT INTO t2 values(10);
SET GLOBAL READ_ONLY=1;
COMMIT;
ERROR HY000: The MySQL server is running with the --read-only option so it cannot execute this statement
DROP TABLE t2;
DROP USER test@localhost;
SET GLOBAL SUPER_READ_ONLY= @saved_value_super;
SET GLOBAL read_only= @saved_value;
DROP TABLE t1;

Man Man