config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/innodb/t/

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/suite/innodb/t/readonly.test

--source include/have_innodb.inc
# Embedded server does not support restarting
--source include/not_embedded.inc

--echo #
--echo # Bug#19904800 - MISSING DBUG_RETURN IN HA_INNOBASE::UPDATE_ROW
--echo #

CREATE TABLE t1(a int PRIMARY KEY) ENGINE=InnoDB;
CREATE TABLE t2(b int PRIMARY KEY) ENGINE=InnoDB;

INSERT INTO t1 VALUES(1);
INSERT INTO t2 VALUES(2);

SET GLOBAL innodb_fast_shutdown=0;
let $restart_parameters = restart: --innodb-read-only;
--source include/restart_mysqld.inc

--error ER_OPEN_AS_READONLY
UPDATE t1,t2 SET t1.a = 2, t2.b = 2 WHERE t1.a = 1;

# Restart in normal mode to drop tables
let $restart_parameters = restart;
--source include/restart_mysqld.inc

DROP TABLE t1;
DROP TABLE t2;

--echo #
--echo # Bug#20578834 - INNODB READ ONLY MODE AND NON EXISTENT TMP DIR CRASHES SERVER
--echo #

CREATE TABLE t1(a int PRIMARY KEY) ENGINE=InnoDB;

INSERT INTO t1 VALUES(1);

SET GLOBAL innodb_fast_shutdown=0;
let $restart_parameters = restart: --tmpdir=/non/existent/dir/ --innodb-read-only;
--source include/restart_mysqld.inc

SELECT * FROM t1;

# Restart in normal mode to drop tables
let $restart_parameters = restart;
--source include/restart_mysqld.inc

DROP TABLE t1;

Man Man