call mtr.add_suppression("Skip re-populating collations and character sets tables in InnoDB read-only mode.");
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1);
SET GLOBAL innodb_fast_shutdown = 0;
# restart: --innodb-read-only
ANALYZE TABLE t1;
Table	Op	Msg_type	Msg_text
test.t1	analyze	Warning	InnoDB: Running in read-only mode
test.t1	analyze	Error	Running in read-only mode
test.t1	analyze	Error	Unable to store dynamic table statistics into data dictionary.
test.t1	analyze	status	Unable to write table statistics to DD tables
# restart
DROP TABLE t1;
