InnoDB Encryption Keys
How InnoDB manages encryption keys using 32-bit integer IDs, including the default key ID (`innodb_default_encryption_key_id`), assigning specific keys to tables, and the process of key rotatation.
Encryption Keys
Keys with Manually Encrypted Tablespaces
CREATE TABLE tab1 (
id INT PRIMARY KEY,
str VARCHAR(50)
) ENCRYPTED=YES ENCRYPTION_KEY_ID=100;
SELECT NAME, ENCRYPTION_SCHEME, CURRENT_KEY_ID
FROM information_schema.INNODB_TABLESPACES_ENCRYPTION
WHERE NAME='db1/tab1';
+----------+-------------------+----------------+
| NAME | ENCRYPTION_SCHEME | CURRENT_KEY_ID |
+----------+-------------------+----------------+
| db1/tab1 | 1 | 100 |
+----------+-------------------+----------------+Keys with Automatically Encrypted Tablespaces
Key Rotation
Disabling Background Key Rotation Operations
Pending Encryption Operations
Last updated
Was this helpful?

