Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
bc9f118e
Commit
bc9f118e
authored
Apr 09, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename table attribute ENCRYPTION=ON/OFF to ENCRYPTED=YES/NO
parent
ea764f5f
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
105 additions
and
105 deletions
+105
-105
mysql-test/suite/innodb/r/innodb-page_encryption-32k.result
mysql-test/suite/innodb/r/innodb-page_encryption-32k.result
+9
-9
mysql-test/suite/innodb/r/innodb-page_encryption.result
mysql-test/suite/innodb/r/innodb-page_encryption.result
+16
-16
mysql-test/suite/innodb/r/innodb-page_encryption_compression.result
.../suite/innodb/r/innodb-page_encryption_compression.result
+6
-6
mysql-test/suite/innodb/r/innodb-page_encryption_log_encryption.result
...ite/innodb/r/innodb-page_encryption_log_encryption.result
+12
-12
mysql-test/suite/innodb/t/innodb-page_encryption-32k.test
mysql-test/suite/innodb/t/innodb-page_encryption-32k.test
+6
-6
mysql-test/suite/innodb/t/innodb-page_encryption.test
mysql-test/suite/innodb/t/innodb-page_encryption.test
+10
-10
mysql-test/suite/innodb/t/innodb-page_encryption_compression.test
...st/suite/innodb/t/innodb-page_encryption_compression.test
+4
-4
mysql-test/suite/innodb/t/innodb-page_encryption_log_encryption.test
...suite/innodb/t/innodb-page_encryption_log_encryption.test
+8
-8
mysql-test/suite/plugins/r/filekeys_encfile.result
mysql-test/suite/plugins/r/filekeys_encfile.result
+6
-6
mysql-test/suite/plugins/r/filekeys_encfile_bad.result
mysql-test/suite/plugins/r/filekeys_encfile_bad.result
+1
-1
mysql-test/suite/plugins/r/filekeys_encfile_badfile.result
mysql-test/suite/plugins/r/filekeys_encfile_badfile.result
+1
-1
mysql-test/suite/plugins/r/filekeys_encfile_file.result
mysql-test/suite/plugins/r/filekeys_encfile_file.result
+6
-6
mysql-test/suite/plugins/r/filekeys_encfile_no.result
mysql-test/suite/plugins/r/filekeys_encfile_no.result
+1
-1
mysql-test/suite/plugins/r/filekeys_nofile.result
mysql-test/suite/plugins/r/filekeys_nofile.result
+1
-1
mysql-test/suite/plugins/r/filekeys_syntax.result
mysql-test/suite/plugins/r/filekeys_syntax.result
+13
-13
mysql-test/suite/plugins/r/filekeys_unencfile.result
mysql-test/suite/plugins/r/filekeys_unencfile.result
+1
-1
mysql-test/suite/plugins/t/filekeys_badtest.inc
mysql-test/suite/plugins/t/filekeys_badtest.inc
+1
-1
mysql-test/suite/plugins/t/filekeys_goodtest.inc
mysql-test/suite/plugins/t/filekeys_goodtest.inc
+1
-1
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+1
-1
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+1
-1
No files found.
mysql-test/suite/innodb/r/innodb-page_encryption-32k.result
View file @
bc9f118e
...
...
@@ -2,27 +2,27 @@ call mtr.add_suppression("InnoDB: Warning: innodb_page_size has been changed fro
SET GLOBAL innodb_file_format = `Barracuda`;
SET GLOBAL innodb_file_per_table = ON;
create table innodb_normal(c1 bigint not null, b char(200)) engine=innodb;
create table innodb_compact(c1 bigint not null, b char(200)) engine=innodb row_format=compact encrypt
ion='ON'
encryption_key_id=1;
create table innodb_dynamic(c1 bigint not null, b char(200)) engine=innodb row_format=dynamic encrypt
ion='ON'
encryption_key_id=3;
create table innodb_redundant(c1 bigint not null, b char(200)) engine=innodb row_format=redundant encrypt
ion='ON'
encryption_key_id=4;
create table innodb_compact(c1 bigint not null, b char(200)) engine=innodb row_format=compact encrypt
ed=yes
encryption_key_id=1;
create table innodb_dynamic(c1 bigint not null, b char(200)) engine=innodb row_format=dynamic encrypt
ed=yes
encryption_key_id=3;
create table innodb_redundant(c1 bigint not null, b char(200)) engine=innodb row_format=redundant encrypt
ed=yes
encryption_key_id=4;
show create table innodb_compact;
Table Create Table
innodb_compact CREATE TABLE `innodb_compact` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT `encrypt
ion`='ON'
`encryption_key_id`=1
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT `encrypt
ed`=yes
`encryption_key_id`=1
show create table innodb_dynamic;
Table Create Table
innodb_dynamic CREATE TABLE `innodb_dynamic` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC `encrypt
ion`='ON'
`encryption_key_id`=3
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC `encrypt
ed`=yes
`encryption_key_id`=3
show create table innodb_redundant;
Table Create Table
innodb_redundant CREATE TABLE `innodb_redundant` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT `encrypt
ion`='ON'
`encryption_key_id`=4
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT `encrypt
ed`=yes
`encryption_key_id`=4
create procedure innodb_insert_proc (repeat_count int)
begin
declare current_num int;
...
...
@@ -64,14 +64,14 @@ count(*)
select count(*) from innodb_redundant where c1 < 1500000;
count(*)
5000
alter table innodb_compact engine=innodb encrypt
ion
=DEFAULT encryption_key_id=DEFAULT;
alter table innodb_compact engine=innodb encrypt
ed
=DEFAULT encryption_key_id=DEFAULT;
show create table innodb_compact;
Table Create Table
innodb_compact CREATE TABLE `innodb_compact` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
alter table innodb_dynamic engine=innodb encrypt
ion
=DEFAULT encryption_key_id=DEFAULT;
alter table innodb_dynamic engine=innodb encrypt
ed
=DEFAULT encryption_key_id=DEFAULT;
Warnings:
Warning 1478 InnoDB: ROW_FORMAT=DYNAMIC requires innodb_file_format > Antelope.
Warning 1478 InnoDB: assuming ROW_FORMAT=COMPACT.
...
...
@@ -81,7 +81,7 @@ innodb_dynamic CREATE TABLE `innodb_dynamic` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
alter table innodb_redundant engine=innodb encrypt
ion
=DEFAULT encryption_key_id=DEFAULT;
alter table innodb_redundant engine=innodb encrypt
ed
=DEFAULT encryption_key_id=DEFAULT;
show create table innodb_redundant;
Table Create Table
innodb_redundant CREATE TABLE `innodb_redundant` (
...
...
mysql-test/suite/innodb/r/innodb-page_encryption.result
View file @
bc9f118e
SET GLOBAL innodb_file_format = `Barracuda`;
SET GLOBAL innodb_file_per_table = ON;
create table innodb_normal(c1 bigint not null, b char(200)) engine=innodb;
create table innodb_compact(c1 bigint not null, b char(200)) engine=innodb row_format=compact encrypt
ion='ON'
encryption_key_id=1;
create table innodb_compressed(c1 bigint not null, b char(200)) engine=innodb row_format=compressed encrypt
ion='ON'
encryption_key_id=2;
create table innodb_dynamic(c1 bigint not null, b char(200)) engine=innodb row_format=dynamic encrypt
ion='ON'
encryption_key_id=3;
create table innodb_compact(c1 bigint not null, b char(200)) engine=innodb row_format=compact encrypt
ed=yes
encryption_key_id=1;
create table innodb_compressed(c1 bigint not null, b char(200)) engine=innodb row_format=compressed encrypt
ed=yes
encryption_key_id=2;
create table innodb_dynamic(c1 bigint not null, b char(200)) engine=innodb row_format=dynamic encrypt
ed=yes
encryption_key_id=3;
ERROR HY000: Can't create table `test`.`innodb_dynamic` (errno: 140 "Wrong create options")
create table innodb_dynamic(c1 bigint not null, b char(200)) engine=innodb row_format=dynamic encrypt
ion='ON'
encryption_key_id=33;
create table innodb_redundant(c1 bigint not null, b char(200)) engine=innodb row_format=redundant encrypt
ion='ON'
encryption_key_id=4;
create table innodb_dynamic(c1 bigint not null, b char(200)) engine=innodb row_format=dynamic encrypt
ed=yes
encryption_key_id=33;
create table innodb_redundant(c1 bigint not null, b char(200)) engine=innodb row_format=redundant encrypt
ed=yes
encryption_key_id=4;
set innodb_default_encryption_key_id = 5;
create table innodb_defkey(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='ON'
;
create table innodb_defkey(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
;
show create table innodb_defkey;
Table Create Table
innodb_defkey CREATE TABLE `innodb_defkey` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ion`='ON'
`ENCRYPTION_KEY_ID`=5
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ed`=yes
`ENCRYPTION_KEY_ID`=5
show create table innodb_compact;
Table Create Table
innodb_compact CREATE TABLE `innodb_compact` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT `encrypt
ion`='ON'
`encryption_key_id`=1
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT `encrypt
ed`=yes
`encryption_key_id`=1
show create table innodb_compressed;
Table Create Table
innodb_compressed CREATE TABLE `innodb_compressed` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED `encrypt
ion`='ON'
`encryption_key_id`=2
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED `encrypt
ed`=yes
`encryption_key_id`=2
show create table innodb_dynamic;
Table Create Table
innodb_dynamic CREATE TABLE `innodb_dynamic` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC `encrypt
ion`='ON'
`encryption_key_id`=33
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC `encrypt
ed`=yes
`encryption_key_id`=33
show create table innodb_redundant;
Table Create Table
innodb_redundant CREATE TABLE `innodb_redundant` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT `encrypt
ion`='ON'
`encryption_key_id`=4
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT `encrypt
ed`=yes
`encryption_key_id`=4
create procedure innodb_insert_proc (repeat_count int)
begin
declare current_num int;
...
...
@@ -154,28 +154,28 @@ variable_value >= 0
SELECT variable_value >= 0 FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_num_pages_decrypted';
variable_value >= 0
1
alter table innodb_compact engine=innodb encrypt
ion
=DEFAULT encryption_key_id=DEFAULT;
alter table innodb_compact engine=innodb encrypt
ed
=DEFAULT encryption_key_id=DEFAULT;
show create table innodb_compact;
Table Create Table
innodb_compact CREATE TABLE `innodb_compact` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
alter table innodb_compressed engine=innodb encrypt
ion
=DEFAULT encryption_key_id=DEFAULT;
alter table innodb_compressed engine=innodb encrypt
ed
=DEFAULT encryption_key_id=DEFAULT;
show create table innodb_compressed;
Table Create Table
innodb_compressed CREATE TABLE `innodb_compressed` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED
alter table innodb_dynamic engine=innodb encrypt
ion
=DEFAULT encryption_key_id=DEFAULT;
alter table innodb_dynamic engine=innodb encrypt
ed
=DEFAULT encryption_key_id=DEFAULT;
show create table innodb_dynamic;
Table Create Table
innodb_dynamic CREATE TABLE `innodb_dynamic` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
alter table innodb_redundant engine=innodb encrypt
ion
=DEFAULT encryption_key_id=DEFAULT;
alter table innodb_redundant engine=innodb encrypt
ed
=DEFAULT encryption_key_id=DEFAULT;
show create table innodb_redundant;
Table Create Table
innodb_redundant CREATE TABLE `innodb_redundant` (
...
...
@@ -213,7 +213,7 @@ Table Create Table
innodb_defkey CREATE TABLE `innodb_defkey` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ion`='ON'
`ENCRYPTION_KEY_ID`=5
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ed`=yes
`ENCRYPTION_KEY_ID`=5
update innodb_normal set c1 = c1 +1;
update innodb_compact set c1 = c1 + 1;
update innodb_compressed set c1 = c1 + 1;
...
...
mysql-test/suite/innodb/r/innodb-page_encryption_compression.result
View file @
bc9f118e
...
...
@@ -2,8 +2,8 @@ SET GLOBAL innodb_file_format = `Barracuda`;
SET GLOBAL innodb_file_per_table = ON;
set global innodb_compression_algorithm = 1;
create table innodb_normal(c1 bigint not null, b char(200)) engine=innodb page_compressed=1;
create table innodb_compact(c1 bigint not null, b char(200)) engine=innodb row_format=compact encrypt
ion='ON'
encryption_key_id=1 page_compressed=1;
create table innodb_dynamic(c1 bigint not null, b char(200)) engine=innodb row_format=dynamic encrypt
ion='ON'
encryption_key_id=2 page_compressed=1;
create table innodb_compact(c1 bigint not null, b char(200)) engine=innodb row_format=compact encrypt
ed=yes
encryption_key_id=1 page_compressed=1;
create table innodb_dynamic(c1 bigint not null, b char(200)) engine=innodb row_format=dynamic encrypt
ed=yes
encryption_key_id=2 page_compressed=1;
show warnings;
Level Code Message
show create table innodb_normal;
...
...
@@ -17,13 +17,13 @@ Table Create Table
innodb_compact CREATE TABLE `innodb_compact` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT `encrypt
ion`='ON'
`encryption_key_id`=1 `page_compressed`=1
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT `encrypt
ed`=yes
`encryption_key_id`=1 `page_compressed`=1
show create table innodb_dynamic;
Table Create Table
innodb_dynamic CREATE TABLE `innodb_dynamic` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC `encrypt
ion`='ON'
`encryption_key_id`=2 `page_compressed`=1
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC `encrypt
ed`=yes
`encryption_key_id`=2 `page_compressed`=1
create procedure innodb_insert_proc (repeat_count int)
begin
declare current_num int;
...
...
@@ -110,14 +110,14 @@ innodb_normal CREATE TABLE `innodb_normal` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
alter table innodb_compact engine=innodb encrypt
ion
=DEFAULT encryption_key_id=DEFAULT page_compressed=DEFAULT;
alter table innodb_compact engine=innodb encrypt
ed
=DEFAULT encryption_key_id=DEFAULT page_compressed=DEFAULT;
show create table innodb_compact;
Table Create Table
innodb_compact CREATE TABLE `innodb_compact` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
alter table innodb_dynamic engine=innodb encrypt
ion
=DEFAULT encryption_key_id=DEFAULT page_compressed=DEFAULT;
alter table innodb_dynamic engine=innodb encrypt
ed
=DEFAULT encryption_key_id=DEFAULT page_compressed=DEFAULT;
show create table innodb_dynamic;
Table Create Table
innodb_dynamic CREATE TABLE `innodb_dynamic` (
...
...
mysql-test/suite/innodb/r/innodb-page_encryption_log_encryption.result
View file @
bc9f118e
...
...
@@ -4,34 +4,34 @@ call mtr.add_suppression("InnoDB: Redo log crypto: Can't initialize to key versi
SET GLOBAL innodb_file_format = `Barracuda`;
SET GLOBAL innodb_file_per_table = ON;
create table innodb_normal(c1 bigint not null, b char(200)) engine=innodb;
create table innodb_compact(c1 bigint not null, b char(200)) engine=innodb row_format=compact encrypt
ion='ON'
encryption_key_id=1;
create table innodb_compressed(c1 bigint not null, b char(200)) engine=innodb row_format=compressed encrypt
ion='ON'
encryption_key_id=2;
create table innodb_dynamic(c1 bigint not null, b char(200)) engine=innodb row_format=dynamic encrypt
ion='ON'
encryption_key_id=33;
create table innodb_redundant(c1 bigint not null, b char(200)) engine=innodb row_format=redundant encrypt
ion='ON'
encryption_key_id=4;
create table innodb_compact(c1 bigint not null, b char(200)) engine=innodb row_format=compact encrypt
ed=yes
encryption_key_id=1;
create table innodb_compressed(c1 bigint not null, b char(200)) engine=innodb row_format=compressed encrypt
ed=yes
encryption_key_id=2;
create table innodb_dynamic(c1 bigint not null, b char(200)) engine=innodb row_format=dynamic encrypt
ed=yes
encryption_key_id=33;
create table innodb_redundant(c1 bigint not null, b char(200)) engine=innodb row_format=redundant encrypt
ed=yes
encryption_key_id=4;
show create table innodb_compact;
Table Create Table
innodb_compact CREATE TABLE `innodb_compact` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT `encrypt
ion`='ON'
`encryption_key_id`=1
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT `encrypt
ed`=yes
`encryption_key_id`=1
show create table innodb_compressed;
Table Create Table
innodb_compressed CREATE TABLE `innodb_compressed` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED `encrypt
ion`='ON'
`encryption_key_id`=2
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED `encrypt
ed`=yes
`encryption_key_id`=2
show create table innodb_dynamic;
Table Create Table
innodb_dynamic CREATE TABLE `innodb_dynamic` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC `encrypt
ion`='ON'
`encryption_key_id`=33
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC `encrypt
ed`=yes
`encryption_key_id`=33
show create table innodb_redundant;
Table Create Table
innodb_redundant CREATE TABLE `innodb_redundant` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT `encrypt
ion`='ON'
`encryption_key_id`=4
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT `encrypt
ed`=yes
`encryption_key_id`=4
create procedure innodb_insert_proc (repeat_count int)
begin
declare current_num int;
...
...
@@ -130,28 +130,28 @@ variable_value >= 0
SELECT variable_value >= 0 FROM information_schema.global_status WHERE LOWER(variable_name) = 'innodb_num_pages_decrypted';
variable_value >= 0
1
alter table innodb_compact engine=innodb encrypt
ion
=DEFAULT encryption_key_id=DEFAULT;
alter table innodb_compact engine=innodb encrypt
ed
=DEFAULT encryption_key_id=DEFAULT;
show create table innodb_compact;
Table Create Table
innodb_compact CREATE TABLE `innodb_compact` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
alter table innodb_compressed engine=innodb encrypt
ion
=DEFAULT encryption_key_id=DEFAULT;
alter table innodb_compressed engine=innodb encrypt
ed
=DEFAULT encryption_key_id=DEFAULT;
show create table innodb_compressed;
Table Create Table
innodb_compressed CREATE TABLE `innodb_compressed` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED
alter table innodb_dynamic engine=innodb encrypt
ion
=DEFAULT encryption_key_id=DEFAULT;
alter table innodb_dynamic engine=innodb encrypt
ed
=DEFAULT encryption_key_id=DEFAULT;
show create table innodb_dynamic;
Table Create Table
innodb_dynamic CREATE TABLE `innodb_dynamic` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
alter table innodb_redundant engine=innodb encrypt
ion
=DEFAULT encryption_key_id=DEFAULT;
alter table innodb_redundant engine=innodb encrypt
ed
=DEFAULT encryption_key_id=DEFAULT;
show create table innodb_redundant;
Table Create Table
innodb_redundant CREATE TABLE `innodb_redundant` (
...
...
mysql-test/suite/innodb/t/innodb-page_encryption-32k.test
View file @
bc9f118e
...
...
@@ -17,9 +17,9 @@ SET GLOBAL innodb_file_format = `Barracuda`;
SET
GLOBAL
innodb_file_per_table
=
ON
;
create
table
innodb_normal
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
;
create
table
innodb_compact
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
compact
encrypt
ion
=
'ON'
encryption_key_id
=
1
;
create
table
innodb_dynamic
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
dynamic
encrypt
ion
=
'ON'
encryption_key_id
=
3
;
create
table
innodb_redundant
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
redundant
encrypt
ion
=
'ON'
encryption_key_id
=
4
;
create
table
innodb_compact
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
compact
encrypt
ed
=
yes
encryption_key_id
=
1
;
create
table
innodb_dynamic
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
dynamic
encrypt
ed
=
yes
encryption_key_id
=
3
;
create
table
innodb_redundant
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
redundant
encrypt
ed
=
yes
encryption_key_id
=
4
;
show
create
table
innodb_compact
;
show
create
table
innodb_dynamic
;
...
...
@@ -63,11 +63,11 @@ select count(*) from innodb_compact where c1 < 1500000;
select
count
(
*
)
from
innodb_dynamic
where
c1
<
1500000
;
select
count
(
*
)
from
innodb_redundant
where
c1
<
1500000
;
alter
table
innodb_compact
engine
=
innodb
encrypt
ion
=
DEFAULT
encryption_key_id
=
DEFAULT
;
alter
table
innodb_compact
engine
=
innodb
encrypt
ed
=
DEFAULT
encryption_key_id
=
DEFAULT
;
show
create
table
innodb_compact
;
alter
table
innodb_dynamic
engine
=
innodb
encrypt
ion
=
DEFAULT
encryption_key_id
=
DEFAULT
;
alter
table
innodb_dynamic
engine
=
innodb
encrypt
ed
=
DEFAULT
encryption_key_id
=
DEFAULT
;
show
create
table
innodb_dynamic
;
alter
table
innodb_redundant
engine
=
innodb
encrypt
ion
=
DEFAULT
encryption_key_id
=
DEFAULT
;
alter
table
innodb_redundant
engine
=
innodb
encrypt
ed
=
DEFAULT
encryption_key_id
=
DEFAULT
;
show
create
table
innodb_redundant
;
--
source
include
/
restart_mysqld
.
inc
...
...
mysql-test/suite/innodb/t/innodb-page_encryption.test
View file @
bc9f118e
...
...
@@ -10,15 +10,15 @@ SET GLOBAL innodb_file_format = `Barracuda`;
SET
GLOBAL
innodb_file_per_table
=
ON
;
create
table
innodb_normal
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
;
create
table
innodb_compact
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
compact
encrypt
ion
=
'ON'
encryption_key_id
=
1
;
create
table
innodb_compressed
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
compressed
encrypt
ion
=
'ON'
encryption_key_id
=
2
;
create
table
innodb_compact
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
compact
encrypt
ed
=
yes
encryption_key_id
=
1
;
create
table
innodb_compressed
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
compressed
encrypt
ed
=
yes
encryption_key_id
=
2
;
--
error
ER_CANT_CREATE_TABLE
create
table
innodb_dynamic
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
dynamic
encrypt
ion
=
'ON'
encryption_key_id
=
3
;
create
table
innodb_dynamic
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
dynamic
encrypt
ion
=
'ON'
encryption_key_id
=
33
;
create
table
innodb_redundant
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
redundant
encrypt
ion
=
'ON'
encryption_key_id
=
4
;
create
table
innodb_dynamic
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
dynamic
encrypt
ed
=
yes
encryption_key_id
=
3
;
create
table
innodb_dynamic
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
dynamic
encrypt
ed
=
yes
encryption_key_id
=
33
;
create
table
innodb_redundant
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
redundant
encrypt
ed
=
yes
encryption_key_id
=
4
;
set
innodb_default_encryption_key_id
=
5
;
create
table
innodb_defkey
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
encrypt
ion
=
'ON'
;
create
table
innodb_defkey
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
encrypt
ed
=
yes
;
show
create
table
innodb_defkey
;
show
create
table
innodb_compact
;
...
...
@@ -107,13 +107,13 @@ t1.c1 = t2.c1 and t1.b = t2.b;
SELECT
variable_value
>=
0
FROM
information_schema
.
global_status
WHERE
LOWER
(
variable_name
)
=
'innodb_num_pages_encrypted'
;
SELECT
variable_value
>=
0
FROM
information_schema
.
global_status
WHERE
LOWER
(
variable_name
)
=
'innodb_num_pages_decrypted'
;
alter
table
innodb_compact
engine
=
innodb
encrypt
ion
=
DEFAULT
encryption_key_id
=
DEFAULT
;
alter
table
innodb_compact
engine
=
innodb
encrypt
ed
=
DEFAULT
encryption_key_id
=
DEFAULT
;
show
create
table
innodb_compact
;
alter
table
innodb_compressed
engine
=
innodb
encrypt
ion
=
DEFAULT
encryption_key_id
=
DEFAULT
;
alter
table
innodb_compressed
engine
=
innodb
encrypt
ed
=
DEFAULT
encryption_key_id
=
DEFAULT
;
show
create
table
innodb_compressed
;
alter
table
innodb_dynamic
engine
=
innodb
encrypt
ion
=
DEFAULT
encryption_key_id
=
DEFAULT
;
alter
table
innodb_dynamic
engine
=
innodb
encrypt
ed
=
DEFAULT
encryption_key_id
=
DEFAULT
;
show
create
table
innodb_dynamic
;
alter
table
innodb_redundant
engine
=
innodb
encrypt
ion
=
DEFAULT
encryption_key_id
=
DEFAULT
;
alter
table
innodb_redundant
engine
=
innodb
encrypt
ed
=
DEFAULT
encryption_key_id
=
DEFAULT
;
show
create
table
innodb_redundant
;
--
source
include
/
restart_mysqld
.
inc
...
...
mysql-test/suite/innodb/t/innodb-page_encryption_compression.test
View file @
bc9f118e
...
...
@@ -14,8 +14,8 @@ SET GLOBAL innodb_file_per_table = ON;
set
global
innodb_compression_algorithm
=
1
;
create
table
innodb_normal
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
page_compressed
=
1
;
create
table
innodb_compact
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
compact
encrypt
ion
=
'ON'
encryption_key_id
=
1
page_compressed
=
1
;
create
table
innodb_dynamic
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
dynamic
encrypt
ion
=
'ON'
encryption_key_id
=
2
page_compressed
=
1
;
create
table
innodb_compact
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
compact
encrypt
ed
=
yes
encryption_key_id
=
1
page_compressed
=
1
;
create
table
innodb_dynamic
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
dynamic
encrypt
ed
=
yes
encryption_key_id
=
2
page_compressed
=
1
;
show
warnings
;
show
create
table
innodb_normal
;
...
...
@@ -84,9 +84,9 @@ SELECT variable_value >= 0 FROM information_schema.global_status WHERE LOWER(var
alter
table
innodb_normal
engine
=
innodb
page_compressed
=
DEFAULT
;
show
create
table
innodb_normal
;
alter
table
innodb_compact
engine
=
innodb
encrypt
ion
=
DEFAULT
encryption_key_id
=
DEFAULT
page_compressed
=
DEFAULT
;
alter
table
innodb_compact
engine
=
innodb
encrypt
ed
=
DEFAULT
encryption_key_id
=
DEFAULT
page_compressed
=
DEFAULT
;
show
create
table
innodb_compact
;
alter
table
innodb_dynamic
engine
=
innodb
encrypt
ion
=
DEFAULT
encryption_key_id
=
DEFAULT
page_compressed
=
DEFAULT
;
alter
table
innodb_dynamic
engine
=
innodb
encrypt
ed
=
DEFAULT
encryption_key_id
=
DEFAULT
page_compressed
=
DEFAULT
;
show
create
table
innodb_dynamic
;
--
source
include
/
restart_mysqld
.
inc
...
...
mysql-test/suite/innodb/t/innodb-page_encryption_log_encryption.test
View file @
bc9f118e
...
...
@@ -15,10 +15,10 @@ SET GLOBAL innodb_file_format = `Barracuda`;
SET
GLOBAL
innodb_file_per_table
=
ON
;
create
table
innodb_normal
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
;
create
table
innodb_compact
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
compact
encrypt
ion
=
'ON'
encryption_key_id
=
1
;
create
table
innodb_compressed
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
compressed
encrypt
ion
=
'ON'
encryption_key_id
=
2
;
create
table
innodb_dynamic
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
dynamic
encrypt
ion
=
'ON'
encryption_key_id
=
33
;
create
table
innodb_redundant
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
redundant
encrypt
ion
=
'ON'
encryption_key_id
=
4
;
create
table
innodb_compact
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
compact
encrypt
ed
=
yes
encryption_key_id
=
1
;
create
table
innodb_compressed
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
compressed
encrypt
ed
=
yes
encryption_key_id
=
2
;
create
table
innodb_dynamic
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
dynamic
encrypt
ed
=
yes
encryption_key_id
=
33
;
create
table
innodb_redundant
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
row_format
=
redundant
encrypt
ed
=
yes
encryption_key_id
=
4
;
show
create
table
innodb_compact
;
show
create
table
innodb_compressed
;
...
...
@@ -96,13 +96,13 @@ t1.c1 = t2.c1 and t1.b = t2.b;
SELECT
variable_value
>=
0
FROM
information_schema
.
global_status
WHERE
LOWER
(
variable_name
)
=
'innodb_num_pages_encrypted'
;
SELECT
variable_value
>=
0
FROM
information_schema
.
global_status
WHERE
LOWER
(
variable_name
)
=
'innodb_num_pages_decrypted'
;
alter
table
innodb_compact
engine
=
innodb
encrypt
ion
=
DEFAULT
encryption_key_id
=
DEFAULT
;
alter
table
innodb_compact
engine
=
innodb
encrypt
ed
=
DEFAULT
encryption_key_id
=
DEFAULT
;
show
create
table
innodb_compact
;
alter
table
innodb_compressed
engine
=
innodb
encrypt
ion
=
DEFAULT
encryption_key_id
=
DEFAULT
;
alter
table
innodb_compressed
engine
=
innodb
encrypt
ed
=
DEFAULT
encryption_key_id
=
DEFAULT
;
show
create
table
innodb_compressed
;
alter
table
innodb_dynamic
engine
=
innodb
encrypt
ion
=
DEFAULT
encryption_key_id
=
DEFAULT
;
alter
table
innodb_dynamic
engine
=
innodb
encrypt
ed
=
DEFAULT
encryption_key_id
=
DEFAULT
;
show
create
table
innodb_dynamic
;
alter
table
innodb_redundant
engine
=
innodb
encrypt
ion
=
DEFAULT
encryption_key_id
=
DEFAULT
;
alter
table
innodb_redundant
engine
=
innodb
encrypt
ed
=
DEFAULT
encryption_key_id
=
DEFAULT
;
show
create
table
innodb_redundant
;
--
source
include
/
restart_mysqld
.
inc
...
...
mysql-test/suite/plugins/r/filekeys_encfile.result
View file @
bc9f118e
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=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=latin1 `encrypt
ion`='on'
`encryption_key_id`=1
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ed`=yes
`encryption_key_id`=1
insert t1 values (12345, repeat('1234567890', 20));
alter table t1 encryption_key_id=2;
show create table t1;
...
...
@@ -12,7 +12,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ion`='on'
`encryption_key_id`=2
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ed`=yes
`encryption_key_id`=2
alter table t1 encryption_key_id=3;
ERROR HY000: Can't create table `test`.`#sql-temporary` (errno: 140 "Wrong create options")
show create table t1;
...
...
@@ -20,19 +20,19 @@ Table Create Table
t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ion`='on'
`encryption_key_id`=2
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ed`=yes
`encryption_key_id`=2
alter table t1 encryption_key_id=33;
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=latin1 `encrypt
ion`='on'
`encryption_key_id`=33
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ed`=yes
`encryption_key_id`=33
alter table t1 encryption_key_id=4;
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=latin1 `encrypt
ion`='on'
`encryption_key_id`=4
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ed`=yes
`encryption_key_id`=4
drop table t1;
mysql-test/suite/plugins/r/filekeys_encfile_bad.result
View file @
bc9f118e
call mtr.add_suppression("Cannot decrypt .*filekeys-data.enc. Wrong key");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
mysql-test/suite/plugins/r/filekeys_encfile_badfile.result
View file @
bc9f118e
call mtr.add_suppression("File 'bad' not found");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
mysql-test/suite/plugins/r/filekeys_encfile_file.result
View file @
bc9f118e
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=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=latin1 `encrypt
ion`='on'
`encryption_key_id`=1
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ed`=yes
`encryption_key_id`=1
insert t1 values (12345, repeat('1234567890', 20));
alter table t1 encryption_key_id=2;
show create table t1;
...
...
@@ -12,7 +12,7 @@ Table Create Table
t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ion`='on'
`encryption_key_id`=2
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ed`=yes
`encryption_key_id`=2
alter table t1 encryption_key_id=3;
ERROR HY000: Can't create table `test`.`#sql-temporary` (errno: 140 "Wrong create options")
show create table t1;
...
...
@@ -20,19 +20,19 @@ Table Create Table
t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL,
`b` char(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ion`='on'
`encryption_key_id`=2
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ed`=yes
`encryption_key_id`=2
alter table t1 encryption_key_id=33;
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=latin1 `encrypt
ion`='on'
`encryption_key_id`=33
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ed`=yes
`encryption_key_id`=33
alter table t1 encryption_key_id=4;
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=latin1 `encrypt
ion`='on'
`encryption_key_id`=4
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `encrypt
ed`=yes
`encryption_key_id`=4
drop table t1;
mysql-test/suite/plugins/r/filekeys_encfile_no.result
View file @
bc9f118e
call mtr.add_suppression("Cannot decrypt .*filekeys-data.enc. Wrong key");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
mysql-test/suite/plugins/r/filekeys_nofile.result
View file @
bc9f118e
call mtr.add_suppression("File '' not found");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
mysql-test/suite/plugins/r/filekeys_syntax.result
View file @
bc9f118e
call mtr.add_suppression("File '.*keys.txt' not found");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
@@ -11,7 +11,7 @@ ERROR HY000: Invalid key id at MYSQL_TMP_DIR/keys.txt line 2, column 2
call mtr.add_suppression("File '.*keys.txt' not found");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
@@ -19,7 +19,7 @@ plugin_status
call mtr.add_suppression("Invalid key id");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
@@ -29,7 +29,7 @@ ERROR HY000: Invalid key id at MYSQL_TMP_DIR/keys.txt line 2, column 11
call mtr.add_suppression("Invalid key id");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
@@ -37,7 +37,7 @@ plugin_status
call mtr.add_suppression("Invalid key id");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
@@ -47,7 +47,7 @@ ERROR HY000: Invalid key at MYSQL_TMP_DIR/keys.txt line 2, column 47
call mtr.add_suppression("Invalid key id");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
@@ -55,7 +55,7 @@ plugin_status
call mtr.add_suppression("Invalid key");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
@@ -65,7 +65,7 @@ ERROR HY000: Invalid key at MYSQL_TMP_DIR/keys.txt line 2, column 33
call mtr.add_suppression("Invalid key");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
@@ -73,7 +73,7 @@ plugin_status
call mtr.add_suppression("Invalid key");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
@@ -83,7 +83,7 @@ ERROR HY000: Syntax error at MYSQL_TMP_DIR/keys.txt line 2, column 2
call mtr.add_suppression("Invalid key");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
@@ -91,7 +91,7 @@ plugin_status
call mtr.add_suppression("Syntax error");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
@@ -101,7 +101,7 @@ ERROR HY000: Syntax error at MYSQL_TMP_DIR/keys.txt line 2, column 1
call mtr.add_suppression("Syntax error");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
@@ -109,7 +109,7 @@ plugin_status
call mtr.add_suppression("Syntax error");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
mysql-test/suite/plugins/r/filekeys_unencfile.result
View file @
bc9f118e
call mtr.add_suppression("Cannot decrypt .*keys.txt. Not encrypted");
call mtr.add_suppression("Plugin 'file_key_management' init function returned error");
call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ion='on'
encryption_key_id=1;
create table t1(c1 bigint not null, b char(200)) engine=innodb encrypt
ed=yes
encryption_key_id=1;
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
select plugin_status from information_schema.plugins
where plugin_name = 'file_key_management';
...
...
mysql-test/suite/plugins/t/filekeys_badtest.inc
View file @
bc9f118e
...
...
@@ -11,7 +11,7 @@ call mtr.add_suppression("Plugin 'file_key_management' registration.*failed");
--
source
include
/
search_pattern_in_file
.
inc
--
error
ER_CANT_CREATE_TABLE
create
table
t1
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
encrypt
ion
=
'on'
encryption_key_id
=
1
;
create
table
t1
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
encrypt
ed
=
yes
encryption_key_id
=
1
;
select
plugin_status
from
information_schema
.
plugins
where
plugin_name
=
'file_key_management'
;
...
...
mysql-test/suite/plugins/t/filekeys_goodtest.inc
View file @
bc9f118e
--
source
include
/
have_xtradb
.
inc
--
source
filekeys_plugin
.
inc
create
table
t1
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
encrypt
ion
=
'on'
encryption_key_id
=
1
;
create
table
t1
(
c1
bigint
not
null
,
b
char
(
200
))
engine
=
innodb
encrypt
ed
=
yes
encryption_key_id
=
1
;
show
create
table
t1
;
insert
t1
values
(
12345
,
repeat
(
'1234567890'
,
20
));
...
...
storage/innobase/handler/ha_innodb.cc
View file @
bc9f118e
...
...
@@ -572,7 +572,7 @@ ha_create_table_option innodb_table_option_list[]=
/* With this option user can enable atomic writes feature for this table */
HA_TOPTION_ENUM
(
"ATOMIC_WRITES"
,
atomic_writes
,
"DEFAULT,ON,OFF"
,
0
),
/* With this option the user can enable encryption for the table */
HA_TOPTION_ENUM
(
"ENCRYPT
ION"
,
encryption
,
"DEFAULT,ON,OFF
"
,
0
),
HA_TOPTION_ENUM
(
"ENCRYPT
ED"
,
encryption
,
"DEFAULT,YES,NO
"
,
0
),
/* With this option the user defines the key identifier using for the encryption */
HA_TOPTION_SYSVAR
(
"ENCRYPTION_KEY_ID"
,
encryption_key_id
,
default_encryption_key_id
),
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
bc9f118e
...
...
@@ -637,7 +637,7 @@ ha_create_table_option innodb_table_option_list[]=
/* With this option user can enable atomic writes feature for this table */
HA_TOPTION_ENUM
(
"ATOMIC_WRITES"
,
atomic_writes
,
"DEFAULT,ON,OFF"
,
0
),
/* With this option the user can enable encryption for the table */
HA_TOPTION_ENUM
(
"ENCRYPT
ION"
,
encryption
,
"DEFAULT,ON,OFF
"
,
0
),
HA_TOPTION_ENUM
(
"ENCRYPT
ED"
,
encryption
,
"DEFAULT,YES,NO
"
,
0
),
/* With this option the user defines the key identifier using for the encryption */
HA_TOPTION_SYSVAR
(
"ENCRYPTION_KEY_ID"
,
encryption_key_id
,
default_encryption_key_id
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment