call mtr.add_suppression("Redo log encryption mode can't be switched without stopping the server and recreating the redo logs");
SELECT @@innodb_redo_log_encrypt;
@@innodb_redo_log_encrypt
MASTER_KEY
SET GLOBAL innodb_redo_log_encrypt=KEYRING_KEY;
Warnings:
Warning	11009	InnoDB: Redo log encryption mode can't be switched without stopping the server and recreating the redo logs. Current mode is master_key, requested keyring_key.
SELECT @@innodb_redo_log_encrypt;
@@innodb_redo_log_encrypt
MASTER_KEY
SET GLOBAL innodb_redo_log_encrypt=OFF;
SET GLOBAL innodb_redo_log_encrypt=KEYRING_KEY;
Warnings:
Warning	11009	InnoDB: Redo log encryption mode can't be switched without stopping the server and recreating the redo logs. Current mode is master_key, requested keyring_key.
SELECT @@innodb_redo_log_encrypt;
@@innodb_redo_log_encrypt
OFF
include/assert_grep.inc [Check that there is a warning in the error log]
include/assert_grep.inc [Check that there is a warning in the error log]
CREATE TABLE t1(c1 INT, c2 char(20)) ENCRYPTION="Y" ENGINE = InnoDB;
INSERT INTO t1 VALUES(0, "aaaaa");
INSERT INTO t1 VALUES(1, "bbbbb");
INSERT INTO t1 VALUES(2, "ccccc");
# Kill the server
include/assert_grep.inc [Check that there is a warning in the error log]
DROP TABLE t1;
SET GLOBAL innodb_redo_log_encrypt=MASTER_KEY;
