mirror of
https://github.com/MariaDB/server.git
synced 2025-07-04 01:23:45 +03:00
The following options will be removed: innodb_file_format innodb_file_format_check innodb_file_format_max innodb_large_prefix They have been deprecated in MySQL 5.7.7 (and MariaDB 10.2.2) in WL#7703. The file_format column in two INFORMATION_SCHEMA tables will be removed: innodb_sys_tablespaces innodb_sys_tables Code to update the file format tag at the end of page 0:5 (TRX_SYS_PAGE in the InnoDB system tablespace) will be removed. When initializing a new database, the bytes will remain 0. All references to the Barracuda file format will be removed. Some references to the Antelope file format (meaning ROW_FORMAT=REDUNDANT or ROW_FORMAT=COMPACT) will remain. This basically ports WL#7704 from MySQL 8.0.0 to MariaDB 10.3.1: commit 4a69dc2a95995501ed92d59a1de74414a38540c6 Author: Marko Mäkelä <marko.makela@oracle.com> Date: Wed Mar 11 22:19:49 2015 +0200
72 lines
2.4 KiB
Plaintext
72 lines
2.4 KiB
Plaintext
SET GLOBAL innodb_file_per_table = ON;
|
|
create table t1 (a varchar(255)) engine=innodb encrypted=yes;
|
|
create table t2 (a varchar(255)) engine=innodb;
|
|
show warnings;
|
|
Level Code Message
|
|
create table t3 (a varchar(255)) engine=innodb encrypted=no;
|
|
insert t1 values (repeat('foobarsecret', 12));
|
|
insert t2 values (repeat('tempsecret', 12));
|
|
insert t3 values (repeat('dummysecret', 12));
|
|
# Wait max 10 min for key encryption threads to encrypt all spaces
|
|
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;
|
|
NAME
|
|
test/t3
|
|
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
|
|
NAME
|
|
mysql/innodb_table_stats
|
|
mysql/innodb_index_stats
|
|
test/t1
|
|
test/t2
|
|
innodb_system
|
|
# t1 yes on expecting NOT FOUND
|
|
NOT FOUND /foobarsecret/ in t1.ibd
|
|
# t2 ... on expecting NOT FOUND
|
|
NOT FOUND /tempsecret/ in t2.ibd
|
|
# t3 no on expecting FOUND
|
|
FOUND 12 /dummysecret/ in t3.ibd
|
|
# ibdata1 expecting NOT FOUND
|
|
NOT FOUND /foobarsecret/ in ibdata1
|
|
# Now turn off encryption and wait for threads to decrypt everything
|
|
SET GLOBAL innodb_encrypt_tables = off;
|
|
# Wait max 10 min for key encryption threads to decrypt all spaces
|
|
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;
|
|
NAME
|
|
mysql/innodb_table_stats
|
|
mysql/innodb_index_stats
|
|
test/t2
|
|
test/t3
|
|
innodb_system
|
|
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
|
|
NAME
|
|
test/t1
|
|
# t1 yes on expecting NOT FOUND
|
|
NOT FOUND /foobarsecret/ in t1.ibd
|
|
# t2 ... default expecting FOUND
|
|
FOUND 12 /tempsecret/ in t2.ibd
|
|
# t3 no on expecting FOUND
|
|
FOUND 12 /dummysecret/ in t3.ibd
|
|
# ibdata1 expecting NOT FOUND
|
|
NOT FOUND /foobarsecret/ in ibdata1
|
|
# Now turn on encryption and wait for threads to encrypt all spaces
|
|
SET GLOBAL innodb_encrypt_tables = on;
|
|
# Wait max 10 min for key encryption threads to encrypt all spaces
|
|
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0;
|
|
NAME
|
|
test/t3
|
|
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
|
|
NAME
|
|
mysql/innodb_table_stats
|
|
mysql/innodb_index_stats
|
|
test/t1
|
|
test/t2
|
|
innodb_system
|
|
# t1 yes on expecting NOT FOUND
|
|
NOT FOUND /foobarsecret/ in t1.ibd
|
|
# t2 ... on expecting NOT FOUND
|
|
NOT FOUND /tempsecret/ in t2.ibd
|
|
# t3 no on expecting FOUND
|
|
FOUND 12 /dummysecret/ in t3.ibd
|
|
# ibdata1 expecting NOT FOUND
|
|
NOT FOUND /foobarsecret/ in ibdata1
|
|
drop table t1, t2, t3;
|