# # MDEV-9158 file_key_management should support reading from a named pipe # select seq,md5(seq) into outfile 'MYSQLTEST_VARDIR/tmp/fifo-key.txt' fields terminated by ';' from seq_1_to_20000; INSTALL SONAME 'file_key_management'; Warnings: Note 1 Read from MYSQLTEST_VARDIR/tmp/fifo.key, read bytes: 768894, max key file size: 1048576 bytes CREATE TABLE t1(c1 BIGINT NOT NULL, b CHAR(200)) ENGINE=INNODB ENCRYPTED=YES ENCRYPTION_KEY_ID=1; SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `c1` bigint(20) NOT NULL, `b` char(200) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci `ENCRYPTED`=YES `ENCRYPTION_KEY_ID`=1 INSERT t1 VALUES (12345, REPEAT('1234567890', 20)); ALTER TABLE t1 ENCRYPTION_KEY_ID=2; SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `c1` bigint(20) NOT NULL, `b` char(200) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci `ENCRYPTED`=YES `ENCRYPTION_KEY_ID`=2 ALTER TABLE t1 ENCRYPTION_KEY_ID=3; SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `c1` bigint(20) NOT NULL, `b` char(200) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci `ENCRYPTED`=YES `ENCRYPTION_KEY_ID`=3 # Reset mysqld DROP TABLE t1; UNINSTALL SONAME 'file_key_management'; Warnings: Warning 1620 Plugin is busy and will be uninstalled on shutdown # restart