mirror of
https://github.com/MariaDB/server.git
synced 2025-04-23 07:05:53 +03:00
Add a test related to the Encrypted Key File by following instructions in kb example https://mariadb.com/kb/en/file-key-management-encryption-plugin/#creating-the-key-file Reviewed by Daniel Black (with minor formatting and re-org of duplicate close(f) calls).
14 lines
393 B
Plaintext
14 lines
393 B
Plaintext
-- source include/have_innodb.inc
|
|
-- source filekeys_plugin.inc
|
|
|
|
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypted=yes encryption_key_id=1;
|
|
show create table t1;
|
|
insert t1 values (12345, repeat('1234567890', 20));
|
|
|
|
alter table t1 encryption_key_id=2;
|
|
show create table t1;
|
|
|
|
drop table t1;
|
|
|
|
--echo # Test checks if opening an too large secret does not crash the server.
|