| 1 |
call mtr.add_suppression("Plugin 'file_key_management' init function returned error"); |
| 2 |
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed"); |
| 3 |
call mtr.add_suppression("InnoDB: Table `test`\\.`t[12]` has an unreadable root page"); |
| 4 |
call mtr.add_suppression("Table .*t[12].* is corrupted"); |
| 5 |
call mtr.add_suppression("InnoDB: The page \\[page id: space=[1-9][0-9]*, page number=[1-9][0-9]*\\] in file '.*test.t[12]\\.ibd' cannot be decrypted; key_version=1"); |
| 6 |
call mtr.add_suppression("InnoDB: Failed to read page [1-9][0-9]* from file '.*test/t[12]\\.ibd'"); |
| 7 |
call mtr.add_suppression("InnoDB: Encrypted page \\[page id: space=[1-9][0-9]*, page number=3\\] in file .*test.t1.ibd looks corrupted; key_version=1"); |
| 8 |
call mtr.add_suppression("InnoDB: File '.*test/t[12]\\.ibd' is corrupted"); |
| 9 |
call mtr.add_suppression("Table `test`\\.`t[12]` is corrupted"); |
| 10 |
call mtr.add_suppression("File '.*mysql-test.std_data.keysbad3\\.txt' not found"); |
| 11 |
call mtr.add_suppression("File '.*mariadb-test.std_data.keysbad3\\.txt' not found"); |
| 12 |
call mtr.add_suppression("\\[ERROR\\] InnoDB: Cannot decrypt \\[page id: space="); |
| 13 |
# Start server with keys2.txt |
| 14 |
# restart: --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys2.txt |
| 15 |
CREATE TABLE t1 (c VARCHAR(8)) ENGINE=InnoDB ENCRYPTED=YES ENCRYPTION_KEY_ID=2; |
| 16 |
INSERT INTO t1 VALUES ('foobar'); |
| 17 |
ALTER TABLE t1 ADD COLUMN c2 INT; |
| 18 |
INSERT INTO t1 VALUES ('foobar',2); |
| 19 |
SELECT * FROM t1; |
| 20 |
c c2 |
| 21 |
foobar NULL |
| 22 |
foobar 2 |
| 23 |
TRUNCATE TABLE t1; |
| 24 |
SELECT * FROM t1; |
| 25 |
c c2 |
| 26 |
INSERT INTO t1 VALUES ('foobar',1); |
| 27 |
INSERT INTO t1 VALUES ('foobar',2); |
| 28 |
FLUSH TABLE WITH READ LOCK; |
| 29 |
SELECT * FROM t1; |
| 30 |
c c2 |
| 31 |
foobar 1 |
| 32 |
foobar 2 |
| 33 |
|
| 34 |
# Restart server with keysbad3.txt |
| 35 |
# restart: --file-key-management-filename=MYSQL_TEST_DIR/std_data/keysbad3.txt |
| 36 |
SELECT * FROM t1; |
| 37 |
ERROR HY000: Table `test`.`t1` is corrupted. Please drop the table and recreate. |
| 38 |
# restart: --file-key-management-filename=MYSQL_TEST_DIR/std_data/keysbad3.txt |
| 39 |
DROP TABLE t1; |
| 40 |
# Start server with keys3.txt |
| 41 |
# restart: --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys3.txt |
| 42 |
SET GLOBAL innodb_default_encryption_key_id=5; |
| 43 |
CREATE TABLE t2 (c VARCHAR(8), id int not null primary key, b int, key(b)) ENGINE=InnoDB ENCRYPTED=YES; |
| 44 |
INSERT INTO t2 VALUES ('foobar',1,2); |
| 45 |
|
| 46 |
# Restart server with keys2.txt |
| 47 |
# restart: --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys2.txt |
| 48 |
SELECT * FROM t2; |
| 49 |
ERROR HY000: Table `test`.`t2` is corrupted. Please drop the table and recreate. |
| 50 |
SELECT * FROM t2 where id = 1; |
| 51 |
ERROR HY000: Table `test`.`t2` is corrupted. Please drop the table and recreate. |
| 52 |
SELECT * FROM t2 where b = 1; |
| 53 |
ERROR HY000: Table `test`.`t2` is corrupted. Please drop the table and recreate. |
| 54 |
INSERT INTO t2 VALUES ('tmp',3,3); |
| 55 |
ERROR HY000: Table `test`.`t2` is corrupted. Please drop the table and recreate. |
| 56 |
DELETE FROM t2 where b = 3; |
| 57 |
ERROR HY000: Table `test`.`t2` is corrupted. Please drop the table and recreate. |
| 58 |
DELETE FROM t2 where id = 3; |
| 59 |
ERROR HY000: Table `test`.`t2` is corrupted. Please drop the table and recreate. |
| 60 |
UPDATE t2 set b = b +1; |
| 61 |
ERROR HY000: Table `test`.`t2` is corrupted. Please drop the table and recreate. |
| 62 |
OPTIMIZE TABLE t2; |
| 63 |
Table Op Msg_type Msg_text |
| 64 |
test.t2 optimize Error Table `test`.`t2` is corrupted. Please drop the table and recreate. |
| 65 |
test.t2 optimize error Corrupt |
| 66 |
ALTER TABLE t2 ADD COLUMN d INT; |
| 67 |
ERROR HY000: Table `test`.`t2` is corrupted. Please drop the table and recreate. |
| 68 |
ANALYZE TABLE t2; |
| 69 |
Table Op Msg_type Msg_text |
| 70 |
test.t2 analyze Error Table `test`.`t2` is corrupted. Please drop the table and recreate. |
| 71 |
test.t2 analyze error Corrupt |
| 72 |
TRUNCATE TABLE t2; |
| 73 |
ERROR HY000: Table `test`.`t2` is corrupted. Please drop the table and recreate. |
| 74 |
DROP TABLE t2; |
| 75 |
|
| 76 |
# Start server with keys2.txt |
| 77 |
# restart: --file-key-management-filename=MYSQL_TEST_DIR/std_data/keys2.txt |