1
- call mtr.add_suppression("InnoDB: New log files created");
2
- call mtr.add_suppression("InnoDB: Creating foreign key constraint system tables.");
3
1
SET @start_global_value = @@global.innodb_encryption_threads;
4
2
SHOW VARIABLES LIKE 'innodb_encrypt%';
5
3
Variable_name Value
@@ -14,13 +12,17 @@ SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_
14
12
NAME
15
13
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
16
14
NAME
15
+ mysql/innodb_table_stats
16
+ mysql/innodb_index_stats
17
17
innodb_system
18
18
# Success!
19
19
# Now turn off encryption and wait for threads to decrypt everything
20
20
SET GLOBAL innodb_encrypt_tables = off;
21
21
# Wait max 10 min for key encryption threads to encrypt all spaces
22
22
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;
23
23
NAME
24
+ mysql/innodb_table_stats
25
+ mysql/innodb_index_stats
24
26
innodb_system
25
27
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
26
28
NAME
@@ -33,6 +35,8 @@ SET GLOBAL innodb_encrypt_tables = on;
33
35
# Wait 15s to check that nothing gets encrypted
34
36
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;
35
37
NAME
38
+ mysql/innodb_table_stats
39
+ mysql/innodb_index_stats
36
40
innodb_system
37
41
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
38
42
NAME
@@ -44,6 +48,8 @@ SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_
44
48
NAME
45
49
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
46
50
NAME
51
+ mysql/innodb_table_stats
52
+ mysql/innodb_index_stats
47
53
innodb_system
48
54
# Success!
49
55
# Restart mysqld --innodb_encrypt_tables=0 --innodb_encryption_threads=0
@@ -56,6 +62,8 @@ innodb_encryption_rotation_iops 100
56
62
innodb_encryption_threads 0
57
63
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
58
64
NAME
65
+ mysql/innodb_table_stats
66
+ mysql/innodb_index_stats
59
67
innodb_system
60
68
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;
61
69
NAME
0 commit comments