mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
call mtr.add_suppression("InnoDB: The page \\[page id: space=[1-9][0-9]*, page number=[1-9][0-9]*\\] in file '.*test.t[15]\\.ibd' cannot be decrypted\\.");
 | 
						|
call mtr.add_suppression("failed to read or decrypt \\[page id: space=[1-9][0-9]*, page number=[1-9][0-9]*\\]");
 | 
						|
call mtr.add_suppression("Couldn't load plugins from 'file_key_management");
 | 
						|
create table t5 (
 | 
						|
`intcol1` int(32) DEFAULT NULL,
 | 
						|
`intcol2` int(32) DEFAULT NULL,
 | 
						|
`charcol1` varchar(128) DEFAULT NULL,
 | 
						|
`charcol2` varchar(128) DEFAULT NULL,
 | 
						|
`charcol3` varchar(128) DEFAULT NULL
 | 
						|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 | 
						|
insert into t5 values (1,2,'maria','db','encryption');
 | 
						|
CREATE TABLE `t1` (
 | 
						|
`intcol1` int(32) DEFAULT NULL,
 | 
						|
`intcol2` int(32) DEFAULT NULL,
 | 
						|
`charcol1` varchar(128) DEFAULT NULL,
 | 
						|
`charcol2` varchar(128) DEFAULT NULL,
 | 
						|
`charcol3` varchar(128) DEFAULT NULL
 | 
						|
) ENGINE=InnoDB;
 | 
						|
insert into t1 values (1,2,'maria','db','encryption');
 | 
						|
alter table t1 encrypted='yes' `encryption_key_id`=1;
 | 
						|
select * from t1;
 | 
						|
ERROR HY000: Got error 192 'Table encrypted but decryption failed. This could be because correct encryption management plugin is not loaded, used encryption key is not available or encryption method does not match.' from InnoDB
 | 
						|
select * from t5;
 | 
						|
ERROR HY000: Got error 192 'Table encrypted but decryption failed. This could be because correct encryption management plugin is not loaded, used encryption key is not available or encryption method does not match.' from InnoDB
 | 
						|
drop table t1;
 | 
						|
drop table t5;
 |