Current Path : /home/usr.opt/mysql57/mysql-test/suite/innodb/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : /home/usr.opt/mysql57/mysql-test/suite/innodb/r/table_encrypt_1.result |
CREATE TABLE t1(c1 INT, c2 char(20)) ENCRYPTION="Y" ENGINE = InnoDB; ERROR HY000: Can't find master key from keyring, please check in the server log if a keyring plugin is loaded and initialized successfully. CREATE TABLE t1(c1 INT, c2 char(20)) ENGINE = InnoDB; ALTER TABLE t1 ENCRYPTION="Y", algorithm=copy; ERROR HY000: Can't find master key from keyring, please check in the server log if a keyring plugin is loaded and initialized successfully. DROP TABLE IF EXISTS t1; SET GLOBAL innodb_file_per_table = 0; SELECT @@innodb_file_per_table; @@innodb_file_per_table 0 CREATE TABLE t1(c1 INT, c2 char(20)) ENCRYPTION="Y" ENGINE = InnoDB; ERROR HY000: This tablespace can't be encrypted. SET GLOBAL innodb_file_per_table = 1; SELECT @@innodb_file_per_table; @@innodb_file_per_table 1 CREATE TABLE t1(c int) ENCRYPTION="Y" tablespace innodb_system; ERROR HY000: This tablespace can't be encrypted. CREATE TABLE t1(c int) ENCRYPTION="N" tablespace innodb_system; DROP TABLE t1; CREATE TEMPORARY TABLE t1(c int) ENCRYPTION="Y"; ERROR HY000: This tablespace can't be encrypted. CREATE TEMPORARY TABLE t1(c int) ENCRYPTION="N"; DROP TABLE t1; CREATE TABLE t1(c int) ENCRYPTION="R" ENGINE = InnoDB; ERROR HY000: Invalid encryption option. CREATE TABLE t1(c1 INT, c2 char(20)) ENCRYPTION="Y" ENGINE = InnoDB; SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `c1` int(11) DEFAULT NULL, `c2` char(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ENCRYPTION='Y' INSERT INTO t1 VALUES(0, "aaaaa"); INSERT INTO t1 VALUES(1, "bbbbb"); INSERT INTO t1 VALUES(2, "ccccc"); INSERT INTO t1 VALUES(3, "ddddd"); INSERT INTO t1 VALUES(4, "eeeee"); INSERT INTO t1 VALUES(5, "fffff"); INSERT INTO t1 VALUES(6, "ggggg"); INSERT INTO t1 VALUES(7, "hhhhh"); INSERT INTO t1 VALUES(8, "iiiii"); INSERT INTO t1 VALUES(9, "jjjjj"); INSERT INTO t1 select * from t1; INSERT INTO t1 select * from t1; INSERT INTO t1 select * from t1; INSERT INTO t1 select * from t1; INSERT INTO t1 select * from t1; INSERT INTO t1 select * from t1; SELECT * FROM t1 ORDER BY c1 LIMIT 10; c1 c2 0 aaaaa 0 aaaaa 0 aaaaa 0 aaaaa 0 aaaaa 0 aaaaa 0 aaaaa 0 aaaaa 0 aaaaa 0 aaaaa # restart SELECT * FROM t1 ORDER BY c1 LIMIT 10; ERROR HY000: Can't find master key from keyring, please check in the server log if a keyring plugin is loaded and initialized successfully. SELECT * FROM t1 ORDER BY c1 LIMIT 10; c1 c2 0 aaaaa 0 aaaaa 0 aaaaa 0 aaaaa 0 aaaaa 0 aaaaa 0 aaaaa 0 aaaaa 0 aaaaa 0 aaaaa DROP TABLE t1; CREATE TABLE t1(c1 INT, c2 char(20)) ENCRYPTION="Y" ENGINE = InnoDB; INSERT INTO t1 VALUES(0, "aaaaa"); INSERT INTO t1 VALUES(1, "bbbbb"); INSERT INTO t1 VALUES(2, "ccccc"); INSERT INTO t1 VALUES(3, "ddddd"); INSERT INTO t1 VALUES(4, "eeeee"); INSERT INTO t1 VALUES(5, "fffff"); INSERT INTO t1 VALUES(6, "ggggg"); INSERT INTO t1 VALUES(7, "hhhhh"); INSERT INTO t1 VALUES(8, "iiiii"); INSERT INTO t1 VALUES(9, "jjjjj"); # Kill the server SELECT * FROM t1 ORDER BY c1 LIMIT 10; c1 c2 0 aaaaa 1 bbbbb 2 ccccc 3 ddddd 4 eeeee 5 fffff 6 ggggg 7 hhhhh 8 iiiii 9 jjjjj ALTER TABLE t1 ENCRYPTION="N", algorithm=inplace; ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Cannot alter encryption attribute by inplace algorithm.. Try ALGORITHM=COPY. ALTER TABLE t1 TABLESPACE=`innodb_system`; ERROR HY000: This tablespace can't be encrypted. ALTER TABLE t1 ENCRYPTION="N", algorithm=copy; SELECT * FROM t1 ORDER BY c1 LIMIT 10; c1 c2 0 aaaaa 1 bbbbb 2 ccccc 3 ddddd 4 eeeee 5 fffff 6 ggggg 7 hhhhh 8 iiiii 9 jjjjj DROP TABLE t1; CREATE TABLE t1 (c1 int) ENCRYPTION='N'; ALTER TABLE t1 ENCRYPTION='P',algorithm=copy; ERROR HY000: Invalid encryption option. ALTER TABLE t1 ADD KEY k1 (c1) ,algorithm=inplace; ALTER TABLE t1 ENCRYPTION='Y',algorithm=inplace; ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Cannot alter encryption attribute by inplace algorithm.. Try ALGORITHM=COPY. drop table t1; CREATE TABLE t1(c1 INT PRIMARY KEY) COMPRESSION = "ZLIB" ENCRYPTION = "Y" ENGINE = InnoDB; INSERT INTO t1 VALUES(0), (1), (2), (3), (4), (5), (6), (7), (8), (9); SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `c1` int(11) NOT NULL, PRIMARY KEY (`c1`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMPRESSION='ZLIB' ENCRYPTION='Y' FLUSH TABLES t1 WITH READ LOCK; UNLOCK TABLES; SELECT * FROM t1 ORDER BY c1 LIMIT 10; c1 0 1 2 3 4 5 6 7 8 9 SELECT * FROM t1 ORDER BY c1; c1 0 1 2 3 4 5 6 7 8 9 DROP TABLE t1; CREATE TABLE t1(c1 int null) ENCRYPTION='Y' ROW_FORMAT=compressed; INSERT INTO t1 VALUES(0), (1), (2), (3), (4), (5), (6), (7), (8), (9); SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `c1` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED ENCRYPTION='Y' FLUSH TABLES t1 WITH READ LOCK; UNLOCK TABLES; SELECT * FROM t1 ORDER BY c1 LIMIT 10; c1 0 1 2 3 4 5 6 7 8 9 SELECT * FROM t1 ORDER BY c1; c1 0 1 2 3 4 5 6 7 8 9 DROP TABLE t1; CREATE TABLE t1(c1 INT PRIMARY KEY, g geometry not null, spatial index(g)) ENCRYPTION = "Y" ENGINE = InnoDB; INSERT INTO t1 VALUES(0, POINT(0, 0)); INSERT INTO t1 VALUES(1, POINT(1, 1)); INSERT INTO t1 VALUES(2, POINT(2, 2)); INSERT INTO t1 VALUES(3, POINT(3, 3)); INSERT INTO t1 VALUES(4, POINT(4, 4)); INSERT INTO t1 VALUES(5, POINT(5, 5)); INSERT INTO t1 VALUES(6, POINT(6, 6)); INSERT INTO t1 VALUES(7, POINT(7, 7)); INSERT INTO t1 VALUES(8, POINT(8, 8)); INSERT INTO t1 VALUES(9, POINT(9, 9)); SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `c1` int(11) NOT NULL, `g` geometry NOT NULL, PRIMARY KEY (`c1`), SPATIAL KEY `g` (`g`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ENCRYPTION='Y' FLUSH TABLES t1 WITH READ LOCK; UNLOCK TABLES; SELECT c1, ST_AsText(g) FROM t1 ORDER BY c1 LIMIT 10; c1 ST_AsText(g) 0 POINT(0 0) 1 POINT(1 1) 2 POINT(2 2) 3 POINT(3 3) 4 POINT(4 4) 5 POINT(5 5) 6 POINT(6 6) 7 POINT(7 7) 8 POINT(8 8) 9 POINT(9 9) SELECT c1, ST_AsText(g) FROM t1 ORDER BY c1 LIMIT 10; c1 ST_AsText(g) 0 POINT(0 0) 1 POINT(1 1) 2 POINT(2 2) 3 POINT(3 3) 4 POINT(4 4) 5 POINT(5 5) 6 POINT(6 6) 7 POINT(7 7) 8 POINT(8 8) 9 POINT(9 9) DROP TABLE t1; SET GLOBAL innodb_file_per_table=OFF; CREATE TABLE t1 (c1 int); ALTER TABLE t1 COMPRESSION='zlib'; ALTER TABLE t1 ENCRYPTION='Y',ALGORITHM=COPY; ERROR HY000: This tablespace can't be encrypted. DROP TABLE t1; SET GLOBAL innodb_file_per_table=ON; CREATE TABLE t1 (id int unsigned NOT NULL auto_increment PRIMARY KEY, val varchar(20) NOT NULL) ENGINE=InnoDB; INSERT INTO t1 (val) VALUES ('Sydney'), ('Melbourne'), ('Brisbane'), ('Perth'), ('Adelaide'); ALTER TABLE t1 ENCRYPTION = 'Y'; ALTER TABLE t1 ADD COLUMN is_capital char(1) NOT NULL DEFAULT 'N' AFTER val; SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `val` varchar(20) NOT NULL, `is_capital` char(1) NOT NULL DEFAULT 'N', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1 ENCRYPTION='Y' Pattern "Sydney" not found SET GLOBAL innodb_file_per_table=1; DROP TABLE t1;