| 1 |
select @@binlog_encryption; |
| 2 |
@@binlog_encryption |
| 3 |
1 |
| 4 |
select @@innodb_redo_log_encrypt; |
| 5 |
@@innodb_redo_log_encrypt |
| 6 |
1 |
| 7 |
select @@innodb_undo_log_encrypt; |
| 8 |
@@innodb_undo_log_encrypt |
| 9 |
1 |
| 10 |
create table t1 (f1 int, f2 blob) ENCRYPTION='Y'; |
| 11 |
show create table t1; |
| 12 |
Table Create Table |
| 13 |
t1 CREATE TABLE `t1` ( |
| 14 |
`f1` int DEFAULT NULL, |
| 15 |
`f2` blob |
| 16 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ENCRYPTION='Y' |
| 17 |
START TRANSACTION; |
| 18 |
INSERT INTO t1 VALUES(1, repeat('#',12)); |
| 19 |
INSERT INTO t1 VALUES(2, repeat('+',12)); |
| 20 |
INSERT INTO t1 VALUES(3, repeat('/',12)); |
| 21 |
INSERT INTO t1 VALUES(4, repeat('-',12)); |
| 22 |
INSERT INTO t1 VALUES(5, repeat('.',12)); |
| 23 |
COMMIT WORK; |
| 24 |
# Ensure that dirty pages of table t1 is flushed. |
| 25 |
FLUSH TABLES t1 FOR EXPORT; |
| 26 |
UNLOCK TABLES; |
| 27 |
# Kill and restart |
| 28 |
select 2; |
| 29 |
2 |
| 30 |
2 |
| 31 |
SET SESSION innodb_interpreter = 'init'; |
| 32 |
SET SESSION innodb_interpreter = 'print_dblwr_has_encrypted_pages'; |
| 33 |
SET SESSION innodb_interpreter = 'destroy'; |
| 34 |
Pattern "Double write file has encrypted pages" found |
| 35 |
Pattern "\[Note\] \[MY-\d+\] \[InnoDB\] Recovered page \[page id: space=\d+, page number=\d+\] from the doublewrite buffer" not found |
| 36 |
DROP TABLE t1; |
| 37 |
# Test End |