2015-04-09 17:59:34 +02:00
|
|
|
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypted=yes encryption_key_id=1;
|
2015-03-30 18:00:50 +02:00
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE `t1` (
|
|
|
|
`c1` bigint(20) NOT NULL,
|
|
|
|
`b` char(200) DEFAULT NULL
|
2015-04-09 17:59:34 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypted`=yes `encryption_key_id`=1
|
2015-03-30 18:00:50 +02:00
|
|
|
insert t1 values (12345, repeat('1234567890', 20));
|
2015-04-09 19:27:40 +02:00
|
|
|
alter table t1 encryption_key_id=2;
|
2015-03-30 18:00:50 +02:00
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE `t1` (
|
|
|
|
`c1` bigint(20) NOT NULL,
|
|
|
|
`b` char(200) DEFAULT NULL
|
2015-04-09 17:59:34 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypted`=yes `encryption_key_id`=2
|
2015-04-09 19:27:40 +02:00
|
|
|
alter table t1 encryption_key_id=3;
|
2015-03-30 18:00:50 +02:00
|
|
|
ERROR HY000: Can't create table `test`.`#sql-temporary` (errno: 140 "Wrong create options")
|
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE `t1` (
|
|
|
|
`c1` bigint(20) NOT NULL,
|
|
|
|
`b` char(200) DEFAULT NULL
|
2015-04-09 17:59:34 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypted`=yes `encryption_key_id`=2
|
2015-04-09 19:27:40 +02:00
|
|
|
alter table t1 encryption_key_id=33;
|
2015-03-30 18:00:50 +02:00
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE `t1` (
|
|
|
|
`c1` bigint(20) NOT NULL,
|
|
|
|
`b` char(200) DEFAULT NULL
|
2015-04-09 17:59:34 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypted`=yes `encryption_key_id`=33
|
2015-04-09 19:27:40 +02:00
|
|
|
alter table t1 encryption_key_id=4;
|
2015-03-30 18:00:50 +02:00
|
|
|
show create table t1;
|
|
|
|
Table Create Table
|
|
|
|
t1 CREATE TABLE `t1` (
|
|
|
|
`c1` bigint(20) NOT NULL,
|
|
|
|
`b` char(200) DEFAULT NULL
|
2015-04-09 17:59:34 +02:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypted`=yes `encryption_key_id`=4
|
2015-03-30 18:00:50 +02:00
|
|
|
drop table t1;
|