mirror of
https://github.com/MariaDB/server.git
synced 2025-08-24 14:48:09 +03:00
MySQL 5.7 supports only one shared temporary tablespace. MariaDB 10.2 does not support any other shared InnoDB tablespaces than the two predefined tablespaces: the persistent InnoDB system tablespace (default file name ibdata1) and the temporary tablespace (default file name ibtmp1). InnoDB is unnecessarily allocating a tablespace ID for the predefined temporary tablespace on every startup, and it is in several places testing whether a tablespace ID matches this dynamically generated ID. We should use a compile-time constant to reduce code size and to avoid unnecessary updates to the DICT_HDR page at every startup. Using a hard-coded tablespace ID will should make it easier to remove the TEMPORARY flag from FSP_SPACE_FLAGS in MDEV-11202.
22 lines
782 B
Plaintext
22 lines
782 B
Plaintext
set global innodb_encrypt_tables=ON;
|
|
show variables like 'innodb_encrypt%';
|
|
Variable_name Value
|
|
innodb_encrypt_log ON
|
|
innodb_encrypt_tables ON
|
|
innodb_encryption_rotate_key_age 2
|
|
innodb_encryption_rotation_iops 100
|
|
innodb_encryption_threads 4
|
|
select space,name,current_key_version from information_schema.innodb_tablespaces_encryption order by space;
|
|
space name current_key_version
|
|
0 NULL 1
|
|
1 mysql/innodb_table_stats 1
|
|
2 mysql/innodb_index_stats 1
|
|
set global debug_key_management_version=10;
|
|
select space,name,current_key_version from information_schema.innodb_tablespaces_encryption order by space;
|
|
space name current_key_version
|
|
0 NULL 10
|
|
1 mysql/innodb_table_stats 10
|
|
2 mysql/innodb_index_stats 10
|
|
set global innodb_encrypt_tables=OFF;
|
|
set global debug_key_management_version=1;
|