config root man

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
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/innodb/r/create_tablespace_16k.result

#
# CREATE TABLESPACE related tests for 16k page sizes.
#
SET DEFAULT_STORAGE_ENGINE=InnoDB;
# Strict-mode has no effect on CREATE TABLESPACE. But it does affect
# whether an invalid KEY_BLOCK_SIZE is rejected or adjusted.
SHOW VARIABLES LIKE 'innodb_strict_mode';
Variable_name	Value
innodb_strict_mode	ON
SHOW VARIABLES LIKE 'innodb_file_per_table';
Variable_name	Value
innodb_file_per_table	ON
#
# Create a tablespace with compressed page sizes that can match
# innodb-page-size.
#
CREATE TABLESPACE s_1k ADD DATAFILE 's_1k.ibd' FILE_BLOCK_SIZE=1k;
CREATE TABLESPACE s_2k ADD DATAFILE 's_2k.ibd' FILE_BLOCK_SIZE=2k;
CREATE TABLESPACE s_4k ADD DATAFILE 's_4k.ibd' FILE_BLOCK_SIZE=4k;
CREATE TABLESPACE s_8k ADD DATAFILE 's_8k.ibd' FILE_BLOCK_SIZE=8k;
CREATE TABLESPACE s_16k ADD DATAFILE 's_16k.ibd' FILE_BLOCK_SIZE=16k;
CREATE TABLESPACE s_32k ADD DATAFILE 's_32k.ibd' FILE_BLOCK_SIZE=32k;
ERROR HY000: InnoDB: Cannot create a tablespace with FILE_BLOCK_SIZE=32768 because INNODB_PAGE_SIZE=16384.
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Cannot create a tablespace with FILE_BLOCK_SIZE=32768 because INNODB_PAGE_SIZE=16384.
Error	1528	Failed to create TABLESPACE s_32k
Error	1031	Table storage engine for 's_32k' doesn't have this option
CREATE TABLESPACE s_64k ADD DATAFILE 's_64k.ibd' FILE_BLOCK_SIZE=64k;
ERROR HY000: InnoDB: Cannot create a tablespace with FILE_BLOCK_SIZE=65536 because INNODB_PAGE_SIZE=16384.
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Cannot create a tablespace with FILE_BLOCK_SIZE=65536 because INNODB_PAGE_SIZE=16384.
Error	1528	Failed to create TABLESPACE s_64k
Error	1031	Table storage engine for 's_64k' doesn't have this option
=== information_schema.innodb_sys_tablespaces and innodb_sys_datafiles ===
Space_Name	Space_Type	Page_Size	Zip_Size	Formats_Permitted	Path
s_1k	General	DEFAULT	1024	Compressed	MYSQLD_DATADIR/s_1k.ibd
s_2k	General	DEFAULT	2048	Compressed	MYSQLD_DATADIR/s_2k.ibd
s_4k	General	DEFAULT	4096	Compressed	MYSQLD_DATADIR/s_4k.ibd
s_8k	General	DEFAULT	8192	Compressed	MYSQLD_DATADIR/s_8k.ibd
s_16k	General	DEFAULT	0	Any	MYSQLD_DATADIR/s_16k.ibd
=== information_schema.files ===
Space_Name	File_Type	Engine	Status	Tablespace_Name	Path
s_1k	TABLESPACE	InnoDB	NORMAL	s_1k	MYSQLD_DATADIR/s_1k.ibd
s_2k	TABLESPACE	InnoDB	NORMAL	s_2k	MYSQLD_DATADIR/s_2k.ibd
s_4k	TABLESPACE	InnoDB	NORMAL	s_4k	MYSQLD_DATADIR/s_4k.ibd
s_8k	TABLESPACE	InnoDB	NORMAL	s_8k	MYSQLD_DATADIR/s_8k.ibd
s_16k	TABLESPACE	InnoDB	NORMAL	s_16k	MYSQLD_DATADIR/s_16k.ibd
#
# Try to put a temporary table into a non-temporary compressed tablespace
#
CREATE TEMPORARY TABLE t_temp_zip (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=1 TABLESPACE s_1k;
ERROR HY000: InnoDB: Tablespace `s_1k` cannot contain TEMPORARY tables.
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` cannot contain TEMPORARY tables.
Error	1031	Table storage engine for 't_temp_zip' doesn't have this option
#
# Add tables to the 1K tablespace.
#
CREATE TABLE t_zip1k_in_1k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=1 TABLESPACE s_1k;
CREATE TABLE t_zip2k_in_1k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=2 TABLESPACE s_1k;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 2048
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 2048
Error	1031	Table storage engine for 't_zip2k_in_1k' doesn't have this option
CREATE TABLE t_zip4k_in_1k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=4 TABLESPACE s_1k;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 4096
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 4096
Error	1031	Table storage engine for 't_zip4k_in_1k' doesn't have this option
CREATE TABLE t_zip8k_in_1k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=8 TABLESPACE s_1k;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 8192
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 8192
Error	1031	Table storage engine for 't_zip8k_in_1k' doesn't have this option
CREATE TABLE t_zip16k_in_1k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=16 TABLESPACE s_1k;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_zip16k_in_1k' doesn't have this option
CREATE TABLE t_zip32k_in_1k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=32 TABLESPACE s_1k;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 32768
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 32768
Error	1031	Table storage engine for 't_zip32k_in_1k' doesn't have this option
CREATE TABLE t_red_in_1k (a int, b text) ROW_FORMAT=Redundant TABLESPACE s_1k;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_red_in_1k' doesn't have this option
CREATE TABLE t_cmp_in_1k (a int, b text) ROW_FORMAT=Compact TABLESPACE s_1k;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_cmp_in_1k' doesn't have this option
CREATE TABLE t_dyn_in_1k (a int, b text) ROW_FORMAT=Dynamic TABLESPACE s_1k;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_dyn_in_1k' doesn't have this option
#
# Add tables to the 2K tablespace.
#
CREATE TABLE t_zip1k_in_2k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=1 TABLESPACE s_2k;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 1024
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 1024
Error	1031	Table storage engine for 't_zip1k_in_2k' doesn't have this option
CREATE TABLE t_zip2k_in_2k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=2 TABLESPACE s_2k;
CREATE TABLE t_zip4k_in_2k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=4 TABLESPACE s_2k;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 4096
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 4096
Error	1031	Table storage engine for 't_zip4k_in_2k' doesn't have this option
CREATE TABLE t_zip8k_in_2k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=8 TABLESPACE s_2k;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 8192
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 8192
Error	1031	Table storage engine for 't_zip8k_in_2k' doesn't have this option
CREATE TABLE t_zip16k_in_2k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=16 TABLESPACE s_2k;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_zip16k_in_2k' doesn't have this option
CREATE TABLE t_zip32k_in_2k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=32 TABLESPACE s_2k;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 32768
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 32768
Error	1031	Table storage engine for 't_zip32k_in_2k' doesn't have this option
CREATE TABLE t_red_in_2k (a int, b text) ROW_FORMAT=Redundant TABLESPACE s_2k;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_red_in_2k' doesn't have this option
CREATE TABLE t_cmp_in_2k (a int, b text) ROW_FORMAT=Compact TABLESPACE s_2k;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_cmp_in_2k' doesn't have this option
CREATE TABLE t_dyn_in_2k (a int, b text) ROW_FORMAT=Dynamic TABLESPACE s_2k;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_dyn_in_2k' doesn't have this option
#
# Add tables to the 4K tablespace.
#
CREATE TABLE t_zip1k_in_4k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=1 TABLESPACE s_4k;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 1024
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 1024
Error	1031	Table storage engine for 't_zip1k_in_4k' doesn't have this option
CREATE TABLE t_zip2k_in_4k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=2 TABLESPACE s_4k;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 2048
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 2048
Error	1031	Table storage engine for 't_zip2k_in_4k' doesn't have this option
CREATE TABLE t_zip4k_in_4k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=4 TABLESPACE s_4k;
CREATE TABLE t_zip8k_in_4k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=8 TABLESPACE s_4k;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 8192
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 8192
Error	1031	Table storage engine for 't_zip8k_in_4k' doesn't have this option
CREATE TABLE t_zip16k_in_4k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=16 TABLESPACE s_4k;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_zip16k_in_4k' doesn't have this option
CREATE TABLE t_zip32k_in_4k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=32 TABLESPACE s_4k;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 32768
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 32768
Error	1031	Table storage engine for 't_zip32k_in_4k' doesn't have this option
CREATE TABLE t_red_in_4k (a int, b text) ROW_FORMAT=Redundant TABLESPACE s_4k;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_red_in_4k' doesn't have this option
CREATE TABLE t_cmp_in_4k (a int, b text) ROW_FORMAT=Compact TABLESPACE s_4k;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_cmp_in_4k' doesn't have this option
CREATE TABLE t_dyn_in_4k (a int, b text) ROW_FORMAT=Dynamic TABLESPACE s_4k;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_dyn_in_4k' doesn't have this option
#
# Add tables to the 8K tablespace.
#
CREATE TABLE t_zip1k_in_8k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=1 TABLESPACE s_8k;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 1024
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 1024
Error	1031	Table storage engine for 't_zip1k_in_8k' doesn't have this option
CREATE TABLE t_zip2k_in_8k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=2 TABLESPACE s_8k;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 2048
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 2048
Error	1031	Table storage engine for 't_zip2k_in_8k' doesn't have this option
CREATE TABLE t_zip4k_in_8k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=4 TABLESPACE s_8k;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 4096
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 4096
Error	1031	Table storage engine for 't_zip4k_in_8k' doesn't have this option
CREATE TABLE t_zip8k_in_8k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=8 TABLESPACE s_8k;
CREATE TABLE t_zip16k_in_8k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=16 TABLESPACE s_8k;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_zip16k_in_8k' doesn't have this option
CREATE TABLE t_zip32k_in_8k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=32 TABLESPACE s_8k;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 32768
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 32768
Error	1031	Table storage engine for 't_zip32k_in_8k' doesn't have this option
CREATE TABLE t_red_in_8k (a int, b text) ROW_FORMAT=redundant TABLESPACE s_8k;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_red_in_8k' doesn't have this option
CREATE TABLE t_com_in_8k (a int, b text) ROW_FORMAT=compact TABLESPACE s_8k;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_com_in_8k' doesn't have this option
CREATE TABLE t_dyn_in_8k (a int, b text) ROW_FORMAT=dynamic TABLESPACE s_8k;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 16384
Error	1031	Table storage engine for 't_dyn_in_8k' doesn't have this option
#
# Add tables to the 16K tablespace.
#
CREATE TABLE t_zip1k_in_16k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=1 TABLESPACE s_16k;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1031	Table storage engine for 't_zip1k_in_16k' doesn't have this option
CREATE TABLE t_zip2k_in_16k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=2 TABLESPACE s_16k;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1031	Table storage engine for 't_zip2k_in_16k' doesn't have this option
CREATE TABLE t_zip4k_in_16k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=4 TABLESPACE s_16k;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1031	Table storage engine for 't_zip4k_in_16k' doesn't have this option
CREATE TABLE t_zip8k_in_16k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=8 TABLESPACE s_16k;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1031	Table storage engine for 't_zip8k_in_16k' doesn't have this option
CREATE TABLE t_zip16k_in_16k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=16 TABLESPACE s_16k;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1031	Table storage engine for 't_zip16k_in_16k' doesn't have this option
CREATE TABLE t_zip32k_in_16k (a int, b text) ROW_FORMAT=Compressed KEY_BLOCK_SIZE=32 TABLESPACE s_16k;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1031	Table storage engine for 't_zip32k_in_16k' doesn't have this option
CREATE TABLE t_red_in_16k (a int, b text) ROW_FORMAT=redundant TABLESPACE s_16k;
CREATE TABLE t_com_in_16k (a int, b text) ROW_FORMAT=compact TABLESPACE s_16k;
CREATE TABLE t_dyn_in_16k (a int, b text) ROW_FORMAT=dynamic TABLESPACE s_16k;
# Add data to the existing Tables
INSERT INTO t_zip1k_in_1k VALUES (1,'a'),(2,'b'),(3,'c');
INSERT INTO t_zip2k_in_2k VALUES (1,'a'),(2,'b'),(3,'c');
INSERT INTO t_zip4k_in_4k VALUES (1,'a'),(2,'b'),(3,'c');
INSERT INTO t_zip8k_in_8k VALUES (1,'a'),(2,'b'),(3,'c');
INSERT INTO t_red_in_16k VALUES (1,'a'),(2,'b'),(3,'c');
INSERT INTO t_com_in_16k VALUES (1,'a'),(2,'b'),(3,'c');
INSERT INTO t_dyn_in_16k VALUES (1,'a'),(2,'b'),(3,'c');
# Restart mysqld
# restart
#
# Try to drop these tablespaces which are not empty
#
DROP TABLESPACE s_1k;
ERROR HY000: Failed to drop TABLESPACE s_1k
SHOW WARNINGS;
Level	Code	Message
Error	1529	Failed to drop TABLESPACE s_1k
Error	3120	Tablespace `s_1k` is not empty.
DROP TABLESPACE s_2k;
ERROR HY000: Failed to drop TABLESPACE s_2k
SHOW WARNINGS;
Level	Code	Message
Error	1529	Failed to drop TABLESPACE s_2k
Error	3120	Tablespace `s_2k` is not empty.
DROP TABLESPACE s_4k;
ERROR HY000: Failed to drop TABLESPACE s_4k
SHOW WARNINGS;
Level	Code	Message
Error	1529	Failed to drop TABLESPACE s_4k
Error	3120	Tablespace `s_4k` is not empty.
DROP TABLESPACE s_8k;
ERROR HY000: Failed to drop TABLESPACE s_8k
SHOW WARNINGS;
Level	Code	Message
Error	1529	Failed to drop TABLESPACE s_8k
Error	3120	Tablespace `s_8k` is not empty.
DROP TABLESPACE s_16k;
ERROR HY000: Failed to drop TABLESPACE s_16k
SHOW WARNINGS;
Level	Code	Message
Error	1529	Failed to drop TABLESPACE s_16k
Error	3120	Tablespace `s_16k` is not empty.
#
# Add more data to the existing Tables
#
INSERT INTO t_zip1k_in_1k VALUES (4,'d');
INSERT INTO t_zip2k_in_2k VALUES (4,'d');
INSERT INTO t_zip4k_in_4k VALUES (4,'d');
INSERT INTO t_zip8k_in_8k VALUES (4,'d');
INSERT INTO t_red_in_16k VALUES (4,'d');
INSERT INTO t_com_in_16k VALUES (4,'d');
INSERT INTO t_dyn_in_16k VALUES (4,'d');
#
# Create an empty copy of each table using LIKE
#
CREATE TABLE t_zip1k_in_1k_like LIKE t_zip1k_in_1k;
CREATE TABLE t_zip2k_in_2k_like LIKE t_zip2k_in_2k;
CREATE TABLE t_zip4k_in_4k_like LIKE t_zip4k_in_4k;
CREATE TABLE t_zip8k_in_8k_like LIKE t_zip8k_in_8k;
CREATE TABLE t_red_in_16k_like LIKE t_red_in_16k;
CREATE TABLE t_com_in_16k_like LIKE t_com_in_16k;
CREATE TABLE t_dyn_in_16k_like LIKE t_dyn_in_16k;
#
# Create a full copy of each table using AS
#
CREATE TABLE t_zip1k_in_1k_as TABLESPACE=s_1k KEY_BLOCK_SIZE=1 AS (SELECT * FROM t_zip1k_in_1k);
CREATE TABLE t_zip2k_in_2k_as TABLESPACE=s_2k KEY_BLOCK_SIZE=2 AS (SELECT * FROM t_zip2k_in_2k);
CREATE TABLE t_zip4k_in_4k_as TABLESPACE=s_4k KEY_BLOCK_SIZE=4 AS (SELECT * FROM t_zip4k_in_4k);
CREATE TABLE t_zip8k_in_8k_as TABLESPACE=s_8k KEY_BLOCK_SIZE=8 AS (SELECT * FROM t_zip8k_in_8k);
CREATE TABLE t_red_in_16k_as TABLESPACE=s_16k ROW_FORMAT=redundant AS (SELECT * FROM t_red_in_16k);
CREATE TABLE t_com_in_16k_as TABLESPACE=s_16k ROW_FORMAT=compact AS (SELECT * FROM t_com_in_16k);
CREATE TABLE t_dyn_in_16k_as TABLESPACE=s_16k ROW_FORMAT=dynamic AS (SELECT * FROM t_dyn_in_16k);
#
# Create a copy of the 1k table, moving it to another tablespace with a different
# FILE_BLOCK_SIZE, while changing the KEY_BLOCK_SIZE.
#
CREATE TABLE t_zip2k_in_2k_from_1k TABLESPACE s_2k KEY_BLOCK_SIZE=2 AS (SELECT * FROM t_zip1k_in_1k);
CREATE TABLE t_zip4k_in_4k_from_1k TABLESPACE s_4k KEY_BLOCK_SIZE=4 AS (SELECT * FROM t_zip1k_in_1k);
CREATE TABLE t_zip8k_in_8k_from_1k TABLESPACE s_8k KEY_BLOCK_SIZE=8 AS (SELECT * FROM t_zip1k_in_1k);
CREATE TABLE t_red_in_16k_from_1k TABLESPACE s_16k ROW_FORMAT=redundant AS (SELECT * FROM t_zip1k_in_1k);
CREATE TABLE t_com_in_16k_from_1k TABLESPACE s_16k ROW_FORMAT=compact AS (SELECT * FROM t_zip1k_in_1k);
CREATE TABLE t_dyn_in_16k_from_1k TABLESPACE s_16k ROW_FORMAT=dynamic AS (SELECT * FROM t_zip1k_in_1k);
#
# Create a tablespace that will be deleted while the engine is not
# running to show that it can still be dropped.
#
CREATE TABLESPACE s_missing ADD DATAFILE 'delete_me.ibd';
CREATE TABLE t_missing (a int) TABLESPACE=s_missing;
=== information_schema.innodb_sys_tablespaces and innodb_sys_datafiles ===
Space_Name	Space_Type	Page_Size	Zip_Size	Formats_Permitted	Path
s_1k	General	DEFAULT	1024	Compressed	MYSQLD_DATADIR/s_1k.ibd
s_2k	General	DEFAULT	2048	Compressed	MYSQLD_DATADIR/s_2k.ibd
s_4k	General	DEFAULT	4096	Compressed	MYSQLD_DATADIR/s_4k.ibd
s_8k	General	DEFAULT	8192	Compressed	MYSQLD_DATADIR/s_8k.ibd
s_16k	General	DEFAULT	0	Any	MYSQLD_DATADIR/s_16k.ibd
s_missing	General	DEFAULT	0	Any	MYSQLD_DATADIR/delete_me.ibd
=== information_schema.files ===
Space_Name	File_Type	Engine	Status	Tablespace_Name	Path
s_1k	TABLESPACE	InnoDB	NORMAL	s_1k	MYSQLD_DATADIR/s_1k.ibd
s_2k	TABLESPACE	InnoDB	NORMAL	s_2k	MYSQLD_DATADIR/s_2k.ibd
s_4k	TABLESPACE	InnoDB	NORMAL	s_4k	MYSQLD_DATADIR/s_4k.ibd
s_8k	TABLESPACE	InnoDB	NORMAL	s_8k	MYSQLD_DATADIR/s_8k.ibd
s_16k	TABLESPACE	InnoDB	NORMAL	s_16k	MYSQLD_DATADIR/s_16k.ibd
s_missing	TABLESPACE	InnoDB	NORMAL	s_missing	MYSQLD_DATADIR/delete_me.ibd
=== information_schema.innodb_sys_tables  and innodb_sys_tablespaces ===
Table Name	Tablespace	Table Flags	Columns	Row Format	Zip Size	Space Type
test/t_com_in_16k	s_16k	129	5	Compact	0	General
test/t_com_in_16k_as	s_16k	129	5	Compact	0	General
test/t_com_in_16k_from_1k	s_16k	129	5	Compact	0	General
test/t_com_in_16k_like	s_16k	129	5	Compact	0	General
test/t_dyn_in_16k	s_16k	161	5	Dynamic	0	General
test/t_dyn_in_16k_as	s_16k	161	5	Dynamic	0	General
test/t_dyn_in_16k_from_1k	s_16k	161	5	Dynamic	0	General
test/t_dyn_in_16k_like	s_16k	161	5	Dynamic	0	General
test/t_missing	s_missing	161	4	Dynamic	0	General
test/t_red_in_16k	s_16k	128	5	Redundant	0	General
test/t_red_in_16k_as	s_16k	128	5	Redundant	0	General
test/t_red_in_16k_from_1k	s_16k	128	5	Redundant	0	General
test/t_red_in_16k_like	s_16k	128	5	Redundant	0	General
test/t_zip1k_in_1k	s_1k	163	5	Compressed	1024	General
test/t_zip1k_in_1k_as	s_1k	163	5	Compressed	1024	General
test/t_zip1k_in_1k_like	s_1k	163	5	Compressed	1024	General
test/t_zip2k_in_2k	s_2k	165	5	Compressed	2048	General
test/t_zip2k_in_2k_as	s_2k	165	5	Compressed	2048	General
test/t_zip2k_in_2k_from_1k	s_2k	165	5	Compressed	2048	General
test/t_zip2k_in_2k_like	s_2k	165	5	Compressed	2048	General
test/t_zip4k_in_4k	s_4k	167	5	Compressed	4096	General
test/t_zip4k_in_4k_as	s_4k	167	5	Compressed	4096	General
test/t_zip4k_in_4k_from_1k	s_4k	167	5	Compressed	4096	General
test/t_zip4k_in_4k_like	s_4k	167	5	Compressed	4096	General
test/t_zip8k_in_8k	s_8k	169	5	Compressed	8192	General
test/t_zip8k_in_8k_as	s_8k	169	5	Compressed	8192	General
test/t_zip8k_in_8k_from_1k	s_8k	169	5	Compressed	8192	General
test/t_zip8k_in_8k_like	s_8k	169	5	Compressed	8192	General
# Directory of MYSQLD_DATADIR/
delete_me.ibd
s_16k.ibd
s_1k.ibd
s_2k.ibd
s_4k.ibd
s_8k.ibd
# Directory of MYSQLD_DATADIR/test/
#
# Stop the server.
# Delete a general tablespace datafile.
# restart
# Make sure that the missing tablespace can be dropped and
# everything else is OK.
#
=== information_schema.innodb_sys_tablespaces and innodb_sys_datafiles ===
Space_Name	Space_Type	Page_Size	Zip_Size	Formats_Permitted	Path
s_1k	General	DEFAULT	1024	Compressed	MYSQLD_DATADIR/s_1k.ibd
s_2k	General	DEFAULT	2048	Compressed	MYSQLD_DATADIR/s_2k.ibd
s_4k	General	DEFAULT	4096	Compressed	MYSQLD_DATADIR/s_4k.ibd
s_8k	General	DEFAULT	8192	Compressed	MYSQLD_DATADIR/s_8k.ibd
s_16k	General	DEFAULT	0	Any	MYSQLD_DATADIR/s_16k.ibd
s_missing	General	DEFAULT	0	Any	MYSQLD_DATADIR/delete_me.ibd
=== information_schema.files ===
Space_Name	File_Type	Engine	Status	Tablespace_Name	Path
s_1k	TABLESPACE	InnoDB	NORMAL	s_1k	MYSQLD_DATADIR/s_1k.ibd
s_2k	TABLESPACE	InnoDB	NORMAL	s_2k	MYSQLD_DATADIR/s_2k.ibd
s_4k	TABLESPACE	InnoDB	NORMAL	s_4k	MYSQLD_DATADIR/s_4k.ibd
s_8k	TABLESPACE	InnoDB	NORMAL	s_8k	MYSQLD_DATADIR/s_8k.ibd
s_16k	TABLESPACE	InnoDB	NORMAL	s_16k	MYSQLD_DATADIR/s_16k.ibd
=== information_schema.innodb_sys_tables  and innodb_sys_tablespaces ===
Table Name	Tablespace	Table Flags	Columns	Row Format	Zip Size	Space Type
test/t_com_in_16k	s_16k	129	5	Compact	0	General
test/t_com_in_16k_as	s_16k	129	5	Compact	0	General
test/t_com_in_16k_from_1k	s_16k	129	5	Compact	0	General
test/t_com_in_16k_like	s_16k	129	5	Compact	0	General
test/t_dyn_in_16k	s_16k	161	5	Dynamic	0	General
test/t_dyn_in_16k_as	s_16k	161	5	Dynamic	0	General
test/t_dyn_in_16k_from_1k	s_16k	161	5	Dynamic	0	General
test/t_dyn_in_16k_like	s_16k	161	5	Dynamic	0	General
test/t_missing	s_missing	161	4	Dynamic	0	General
test/t_red_in_16k	s_16k	128	5	Redundant	0	General
test/t_red_in_16k_as	s_16k	128	5	Redundant	0	General
test/t_red_in_16k_from_1k	s_16k	128	5	Redundant	0	General
test/t_red_in_16k_like	s_16k	128	5	Redundant	0	General
test/t_zip1k_in_1k	s_1k	163	5	Compressed	1024	General
test/t_zip1k_in_1k_as	s_1k	163	5	Compressed	1024	General
test/t_zip1k_in_1k_like	s_1k	163	5	Compressed	1024	General
test/t_zip2k_in_2k	s_2k	165	5	Compressed	2048	General
test/t_zip2k_in_2k_as	s_2k	165	5	Compressed	2048	General
test/t_zip2k_in_2k_from_1k	s_2k	165	5	Compressed	2048	General
test/t_zip2k_in_2k_like	s_2k	165	5	Compressed	2048	General
test/t_zip4k_in_4k	s_4k	167	5	Compressed	4096	General
test/t_zip4k_in_4k_as	s_4k	167	5	Compressed	4096	General
test/t_zip4k_in_4k_from_1k	s_4k	167	5	Compressed	4096	General
test/t_zip4k_in_4k_like	s_4k	167	5	Compressed	4096	General
test/t_zip8k_in_8k	s_8k	169	5	Compressed	8192	General
test/t_zip8k_in_8k_as	s_8k	169	5	Compressed	8192	General
test/t_zip8k_in_8k_from_1k	s_8k	169	5	Compressed	8192	General
test/t_zip8k_in_8k_like	s_8k	169	5	Compressed	8192	General
# Directory of MYSQLD_DATADIR/
s_16k.ibd
s_1k.ibd
s_2k.ibd
s_4k.ibd
s_8k.ibd
# Directory of MYSQLD_DATADIR/test/
#
# Clean-up tables we no longer need
#
DROP TABLESPACE s_missing;
ERROR HY000: Failed to drop TABLESPACE s_missing
SHOW WARNINGS;
Level	Code	Message
Error	1529	Failed to drop TABLESPACE s_missing
Error	3120	Tablespace `s_missing` is not empty.
DROP TABLE t_missing;
DROP TABLESPACE s_missing;
DROP TABLE t_zip1k_in_1k_like;
DROP TABLE t_zip2k_in_2k_like;
DROP TABLE t_zip4k_in_4k_like;
DROP TABLE t_zip8k_in_8k_like;
DROP TABLE t_red_in_16k_like;
DROP TABLE t_com_in_16k_like;
DROP TABLE t_dyn_in_16k_like;
DROP TABLE t_zip1k_in_1k_as;
DROP TABLE t_zip2k_in_2k_as;
DROP TABLE t_zip4k_in_4k_as;
DROP TABLE t_zip8k_in_8k_as;
DROP TABLE t_red_in_16k_as;
DROP TABLE t_com_in_16k_as;
DROP TABLE t_dyn_in_16k_as;
DROP TABLE t_zip2k_in_2k_from_1k;
DROP TABLE t_zip4k_in_4k_from_1k;
DROP TABLE t_zip8k_in_8k_from_1k;
DROP TABLE t_red_in_16k_from_1k;
DROP TABLE t_com_in_16k_from_1k;
DROP TABLE t_dyn_in_16k_from_1k;
CHECK TABLE t_zip1k_in_1k;
Table	Op	Msg_type	Msg_text
test.t_zip1k_in_1k	check	status	OK
CHECK TABLE t_zip2k_in_2k;
Table	Op	Msg_type	Msg_text
test.t_zip2k_in_2k	check	status	OK
CHECK TABLE t_zip4k_in_4k;
Table	Op	Msg_type	Msg_text
test.t_zip4k_in_4k	check	status	OK
CHECK TABLE t_zip8k_in_8k;
Table	Op	Msg_type	Msg_text
test.t_zip8k_in_8k	check	status	OK
CHECK TABLE t_red_in_16k;
Table	Op	Msg_type	Msg_text
test.t_red_in_16k	check	status	OK
CHECK TABLE t_com_in_16k;
Table	Op	Msg_type	Msg_text
test.t_com_in_16k	check	status	OK
CHECK TABLE t_dyn_in_16k;
Table	Op	Msg_type	Msg_text
test.t_dyn_in_16k	check	status	OK
DROP TABLE t_zip1k_in_1k;
DROP TABLE t_zip2k_in_2k;
DROP TABLE t_zip4k_in_4k;
DROP TABLE t_zip8k_in_8k;
DROP TABLE t_red_in_16k;
DROP TABLE t_com_in_16k;
DROP TABLE t_dyn_in_16k;
#
# Create compressed tables explicitly as file_per_table tablespaces.
#
CREATE TABLE t_zip1k_as_file_per_table (a int, b text) TABLESPACE=innodb_file_per_table ROW_FORMAT=compressed KEY_BLOCK_SIZE=1;
CREATE TABLE t_zip2k_as_file_per_table (a int, b text) TABLESPACE=innodb_file_per_table ROW_FORMAT=compressed KEY_BLOCK_SIZE=2;
CREATE TABLE t_zip4k_as_file_per_table (a int, b text) TABLESPACE=innodb_file_per_table ROW_FORMAT=compressed KEY_BLOCK_SIZE=4;
CREATE TABLE t_zip8k_as_file_per_table (a int, b text) TABLESPACE=innodb_file_per_table ROW_FORMAT=compressed KEY_BLOCK_SIZE=8;
CREATE TABLE t_zip16k_as_file_per_table (a int, b text) TABLESPACE=innodb_file_per_table ROW_FORMAT=compressed KEY_BLOCK_SIZE=16;
#
# Create compressed tables in remote locations using file-per-table.
#
CREATE TABLE t_zip1k_as_remote (a int, b text) KEY_BLOCK_SIZE=1 TABLESPACE=innodb_file_per_table DATA DIRECTORY='MYSQL_TMP_DIR';
CREATE TABLE t_zip2k_as_remote (a int, b text) KEY_BLOCK_SIZE=2 TABLESPACE=innodb_file_per_table DATA DIRECTORY='MYSQL_TMP_DIR';
CREATE TABLE t_zip4k_as_remote (a int, b text) KEY_BLOCK_SIZE=4 TABLESPACE=innodb_file_per_table DATA DIRECTORY='MYSQL_TMP_DIR';
CREATE TABLE t_zip8k_as_remote (a int, b text) KEY_BLOCK_SIZE=8 TABLESPACE=innodb_file_per_table DATA DIRECTORY='MYSQL_TMP_DIR';
CREATE TABLE t_zip16k_as_remote (a int, b text) KEY_BLOCK_SIZE=16 TABLESPACE=innodb_file_per_table DATA DIRECTORY='MYSQL_TMP_DIR';
=== information_schema.innodb_sys_tablespaces and innodb_sys_datafiles ===
Space_Name	Space_Type	Page_Size	Zip_Size	Formats_Permitted	Path
s_1k	General	DEFAULT	1024	Compressed	MYSQLD_DATADIR/s_1k.ibd
s_2k	General	DEFAULT	2048	Compressed	MYSQLD_DATADIR/s_2k.ibd
s_4k	General	DEFAULT	4096	Compressed	MYSQLD_DATADIR/s_4k.ibd
s_8k	General	DEFAULT	8192	Compressed	MYSQLD_DATADIR/s_8k.ibd
s_16k	General	DEFAULT	0	Any	MYSQLD_DATADIR/s_16k.ibd
test/t_zip1k_as_file_per_table	Single	DEFAULT	1024	Compressed	MYSQLD_DATADIR/test/t_zip1k_as_file_per_table.ibd
test/t_zip2k_as_file_per_table	Single	DEFAULT	2048	Compressed	MYSQLD_DATADIR/test/t_zip2k_as_file_per_table.ibd
test/t_zip4k_as_file_per_table	Single	DEFAULT	4096	Compressed	MYSQLD_DATADIR/test/t_zip4k_as_file_per_table.ibd
test/t_zip8k_as_file_per_table	Single	DEFAULT	8192	Compressed	MYSQLD_DATADIR/test/t_zip8k_as_file_per_table.ibd
test/t_zip16k_as_file_per_table	Single	DEFAULT	DEFAULT	Compressed	MYSQLD_DATADIR/test/t_zip16k_as_file_per_table.ibd
test/t_zip1k_as_remote	Single	DEFAULT	1024	Compressed	MYSQL_TMP_DIR/test/t_zip1k_as_remote.ibd
test/t_zip2k_as_remote	Single	DEFAULT	2048	Compressed	MYSQL_TMP_DIR/test/t_zip2k_as_remote.ibd
test/t_zip4k_as_remote	Single	DEFAULT	4096	Compressed	MYSQL_TMP_DIR/test/t_zip4k_as_remote.ibd
test/t_zip8k_as_remote	Single	DEFAULT	8192	Compressed	MYSQL_TMP_DIR/test/t_zip8k_as_remote.ibd
test/t_zip16k_as_remote	Single	DEFAULT	DEFAULT	Compressed	MYSQL_TMP_DIR/test/t_zip16k_as_remote.ibd
=== information_schema.files ===
Space_Name	File_Type	Engine	Status	Tablespace_Name	Path
s_1k	TABLESPACE	InnoDB	NORMAL	s_1k	MYSQLD_DATADIR/s_1k.ibd
s_2k	TABLESPACE	InnoDB	NORMAL	s_2k	MYSQLD_DATADIR/s_2k.ibd
s_4k	TABLESPACE	InnoDB	NORMAL	s_4k	MYSQLD_DATADIR/s_4k.ibd
s_8k	TABLESPACE	InnoDB	NORMAL	s_8k	MYSQLD_DATADIR/s_8k.ibd
s_16k	TABLESPACE	InnoDB	NORMAL	s_16k	MYSQLD_DATADIR/s_16k.ibd
test/t_zip1k_as_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip1k_as_file_per_table.ibd
test/t_zip2k_as_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip2k_as_file_per_table.ibd
test/t_zip4k_as_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip4k_as_file_per_table.ibd
test/t_zip8k_as_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip8k_as_file_per_table.ibd
test/t_zip16k_as_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip16k_as_file_per_table.ibd
test/t_zip1k_as_remote	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQL_TMP_DIR/test/t_zip1k_as_remote.ibd
test/t_zip2k_as_remote	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQL_TMP_DIR/test/t_zip2k_as_remote.ibd
test/t_zip4k_as_remote	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQL_TMP_DIR/test/t_zip4k_as_remote.ibd
test/t_zip8k_as_remote	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQL_TMP_DIR/test/t_zip8k_as_remote.ibd
test/t_zip16k_as_remote	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQL_TMP_DIR/test/t_zip16k_as_remote.ibd
=== information_schema.innodb_sys_tables  and innodb_sys_tablespaces ===
Table Name	Tablespace	Table Flags	Columns	Row Format	Zip Size	Space Type
test/t_zip16k_as_file_per_table	test/t_zip16k_as_file_per_table	43	5	Compressed	16384	Single
test/t_zip16k_as_remote	test/t_zip16k_as_remote	107	5	Compressed	16384	Single
test/t_zip1k_as_file_per_table	test/t_zip1k_as_file_per_table	35	5	Compressed	1024	Single
test/t_zip1k_as_remote	test/t_zip1k_as_remote	99	5	Compressed	1024	Single
test/t_zip2k_as_file_per_table	test/t_zip2k_as_file_per_table	37	5	Compressed	2048	Single
test/t_zip2k_as_remote	test/t_zip2k_as_remote	101	5	Compressed	2048	Single
test/t_zip4k_as_file_per_table	test/t_zip4k_as_file_per_table	39	5	Compressed	4096	Single
test/t_zip4k_as_remote	test/t_zip4k_as_remote	103	5	Compressed	4096	Single
test/t_zip8k_as_file_per_table	test/t_zip8k_as_file_per_table	41	5	Compressed	8192	Single
test/t_zip8k_as_remote	test/t_zip8k_as_remote	105	5	Compressed	8192	Single
# MYSQLD_DATADIR/
s_16k.ibd
s_1k.ibd
s_2k.ibd
s_4k.ibd
s_8k.ibd
# MYSQLD_DATADIR/test/
t_zip16k_as_file_per_table.ibd
t_zip1k_as_file_per_table.ibd
t_zip2k_as_file_per_table.ibd
t_zip4k_as_file_per_table.ibd
t_zip8k_as_file_per_table.ibd
#
# These file_per_table tables cannot be moved to a general tablespace if the
# FILE_BLOCK_SIZE does not match the KEY_BLOCK_SIZE or if the tablespace is
# not compressed.
#
ALTER TABLE `t_zip2k_as_file_per_table` TABLESPACE=`s_1k`;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 2048
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 2048
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip4k_as_file_per_table` TABLESPACE=`s_1k`;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 4096
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 4096
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip8k_as_file_per_table` TABLESPACE=`s_1k`;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 8192
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 8192
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip16k_as_file_per_table` TABLESPACE=`s_1k`;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 16384
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip2k_as_remote` TABLESPACE=`s_1k`;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 2048
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 2048
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip4k_as_remote` TABLESPACE=`s_1k`;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 4096
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 4096
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip8k_as_remote` TABLESPACE=`s_1k`;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 8192
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 8192
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip16k_as_remote` TABLESPACE=`s_1k`;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 16384
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip1k_as_file_per_table` TABLESPACE=`s_2k`;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 1024
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 1024
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip4k_as_file_per_table` TABLESPACE=`s_2k`;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 4096
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 4096
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip8k_as_file_per_table` TABLESPACE=`s_2k`;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 8192
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 8192
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip16k_as_file_per_table` TABLESPACE=`s_2k`;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 16384
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip1k_as_remote` TABLESPACE=`s_2k`;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 1024
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 1024
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip4k_as_remote` TABLESPACE=`s_2k`;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 4096
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 4096
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip8k_as_remote` TABLESPACE=`s_2k`;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 8192
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 8192
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip16k_as_remote` TABLESPACE=`s_2k`;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 16384
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip1k_as_file_per_table` TABLESPACE=`s_4k`;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 1024
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 1024
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip2k_as_file_per_table` TABLESPACE=`s_4k`;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 2048
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 2048
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip8k_as_file_per_table` TABLESPACE=`s_4k`;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 8192
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 8192
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip16k_as_file_per_table` TABLESPACE=`s_4k`;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 16384
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip1k_as_remote` TABLESPACE=`s_4k`;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 1024
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 1024
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip2k_as_remote` TABLESPACE=`s_4k`;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 2048
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 2048
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip8k_as_remote` TABLESPACE=`s_4k`;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 8192
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 8192
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip16k_as_remote` TABLESPACE=`s_4k`;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 16384
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip1k_as_file_per_table` TABLESPACE=`s_8k`;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 1024
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 1024
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip2k_as_file_per_table` TABLESPACE=`s_8k`;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 2048
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 2048
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip4k_as_file_per_table` TABLESPACE=`s_8k`;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 4096
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 4096
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip16k_as_file_per_table` TABLESPACE=`s_8k`;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 16384
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip1k_as_remote` TABLESPACE=`s_8k`;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 1024
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 1024
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip2k_as_remote` TABLESPACE=`s_8k`;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 2048
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 2048
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip4k_as_remote` TABLESPACE=`s_8k`;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 4096
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 4096
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip16k_as_remote` TABLESPACE=`s_8k`;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 16384
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 16384
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip1k_as_file_per_table` TABLESPACE=`s_16k`;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip2k_as_file_per_table` TABLESPACE=`s_16k`;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip4k_as_file_per_table` TABLESPACE=`s_16k`;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip8k_as_file_per_table` TABLESPACE=`s_16k`;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip16k_as_file_per_table` TABLESPACE=`s_16k`;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip1k_as_remote` TABLESPACE=`s_16k`;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip2k_as_remote` TABLESPACE=`s_16k`;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip4k_as_remote` TABLESPACE=`s_16k`;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip8k_as_remote` TABLESPACE=`s_16k`;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip16k_as_remote` TABLESPACE=`s_16k`;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
DROP TABLE `t_zip16k_as_remote`;
#
# These explicit file_per_table tables can be moved to a general tablespace
# if FILE_BLOCK_SIZE matches KEY_BLOCK_SIZE and the tablespace is compressed.
#
ALTER TABLE `t_zip1k_as_file_per_table` TABLESPACE=`s_1k`, RENAME TO `t_zip1k_in_s_1k`;
ALTER TABLE `t_zip2k_as_file_per_table` TABLESPACE=`s_2k`, RENAME TO `t_zip2k_in_s_2k`;
ALTER TABLE `t_zip4k_as_file_per_table` TABLESPACE=`s_4k`, RENAME TO `t_zip4k_in_s_4k`;
ALTER TABLE `t_zip8k_as_file_per_table` TABLESPACE=`s_8k`, RENAME TO `t_zip8k_in_s_8k`;
ALTER TABLE `t_zip1k_as_remote` TABLESPACE=`s_1k`, RENAME TO `t_zip1k_remote_in_s_1k`;
ALTER TABLE `t_zip2k_as_remote` TABLESPACE=`s_2k`, RENAME TO `t_zip2k_remote_in_s_2k`;
ALTER TABLE `t_zip4k_as_remote` TABLESPACE=`s_4k`, RENAME TO `t_zip4k_remote_in_s_4k`;
ALTER TABLE `t_zip8k_as_remote` TABLESPACE=`s_8k`, RENAME TO `t_zip8k_remote_in_s_8k`;
=== information_schema.innodb_sys_tablespaces and innodb_sys_datafiles ===
Space_Name	Space_Type	Page_Size	Zip_Size	Formats_Permitted	Path
s_1k	General	DEFAULT	1024	Compressed	MYSQLD_DATADIR/s_1k.ibd
s_2k	General	DEFAULT	2048	Compressed	MYSQLD_DATADIR/s_2k.ibd
s_4k	General	DEFAULT	4096	Compressed	MYSQLD_DATADIR/s_4k.ibd
s_8k	General	DEFAULT	8192	Compressed	MYSQLD_DATADIR/s_8k.ibd
s_16k	General	DEFAULT	0	Any	MYSQLD_DATADIR/s_16k.ibd
test/t_zip16k_as_file_per_table	Single	DEFAULT	DEFAULT	Compressed	MYSQLD_DATADIR/test/t_zip16k_as_file_per_table.ibd
=== information_schema.files ===
Space_Name	File_Type	Engine	Status	Tablespace_Name	Path
s_1k	TABLESPACE	InnoDB	NORMAL	s_1k	MYSQLD_DATADIR/s_1k.ibd
s_2k	TABLESPACE	InnoDB	NORMAL	s_2k	MYSQLD_DATADIR/s_2k.ibd
s_4k	TABLESPACE	InnoDB	NORMAL	s_4k	MYSQLD_DATADIR/s_4k.ibd
s_8k	TABLESPACE	InnoDB	NORMAL	s_8k	MYSQLD_DATADIR/s_8k.ibd
s_16k	TABLESPACE	InnoDB	NORMAL	s_16k	MYSQLD_DATADIR/s_16k.ibd
test/t_zip16k_as_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip16k_as_file_per_table.ibd
=== information_schema.innodb_sys_tables  and innodb_sys_tablespaces ===
Table Name	Tablespace	Table Flags	Columns	Row Format	Zip Size	Space Type
test/t_zip16k_as_file_per_table	test/t_zip16k_as_file_per_table	43	5	Compressed	16384	Single
test/t_zip1k_in_s_1k	s_1k	163	5	Compressed	1024	General
test/t_zip1k_remote_in_s_1k	s_1k	163	5	Compressed	1024	General
test/t_zip2k_in_s_2k	s_2k	165	5	Compressed	2048	General
test/t_zip2k_remote_in_s_2k	s_2k	165	5	Compressed	2048	General
test/t_zip4k_in_s_4k	s_4k	167	5	Compressed	4096	General
test/t_zip4k_remote_in_s_4k	s_4k	167	5	Compressed	4096	General
test/t_zip8k_in_s_8k	s_8k	169	5	Compressed	8192	General
test/t_zip8k_remote_in_s_8k	s_8k	169	5	Compressed	8192	General
# MYSQLD_DATADIR/
s_16k.ibd
s_1k.ibd
s_2k.ibd
s_4k.ibd
s_8k.ibd
# MYSQLD_DATADIR/test/
t_zip16k_as_file_per_table.ibd
CHECK TABLE `t_zip1k_in_s_1k`;
Table	Op	Msg_type	Msg_text
test.t_zip1k_in_s_1k	check	status	OK
CHECK TABLE `t_zip2k_in_s_2k`;
Table	Op	Msg_type	Msg_text
test.t_zip2k_in_s_2k	check	status	OK
CHECK TABLE `t_zip4k_in_s_4k`;
Table	Op	Msg_type	Msg_text
test.t_zip4k_in_s_4k	check	status	OK
CHECK TABLE `t_zip8k_in_s_8k`;
Table	Op	Msg_type	Msg_text
test.t_zip8k_in_s_8k	check	status	OK
CHECK TABLE `t_zip1k_remote_in_s_1k`;
Table	Op	Msg_type	Msg_text
test.t_zip1k_remote_in_s_1k	check	status	OK
CHECK TABLE `t_zip2k_remote_in_s_2k`;
Table	Op	Msg_type	Msg_text
test.t_zip2k_remote_in_s_2k	check	status	OK
CHECK TABLE `t_zip4k_remote_in_s_4k`;
Table	Op	Msg_type	Msg_text
test.t_zip4k_remote_in_s_4k	check	status	OK
CHECK TABLE `t_zip8k_remote_in_s_8k`;
Table	Op	Msg_type	Msg_text
test.t_zip8k_remote_in_s_8k	check	status	OK
#
# Tables in general tablespaces cannot be moved to another general tablespace if the
# FILE_BLOCK_SIZE does not match the KEY_BLOCK_SIZE or if the tablespace is
# not compressed.
#
ALTER TABLE `t_zip2k_in_s_2k` TABLESPACE=`s_1k`;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 2048
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 2048
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip4k_in_s_4k` TABLESPACE=`s_1k`;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 4096
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 4096
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip8k_in_s_8k` TABLESPACE=`s_1k`;
ERROR HY000: InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 8192
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_1k` uses block size 1024 and cannot contain a table with physical page size 8192
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip1k_in_s_1k` TABLESPACE=`s_2k`;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 1024
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 1024
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip4k_in_s_4k` TABLESPACE=`s_2k`;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 4096
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 4096
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip8k_in_s_8k` TABLESPACE=`s_2k`;
ERROR HY000: InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 8192
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_2k` uses block size 2048 and cannot contain a table with physical page size 8192
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip1k_in_s_1k` TABLESPACE=`s_4k`;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 1024
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 1024
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip2k_in_s_2k` TABLESPACE=`s_4k`;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 2048
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 2048
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip8k_in_s_8k` TABLESPACE=`s_4k`;
ERROR HY000: InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 8192
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_4k` uses block size 4096 and cannot contain a table with physical page size 8192
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip1k_in_s_1k` TABLESPACE=`s_8k`;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 1024
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 1024
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip2k_in_s_2k` TABLESPACE=`s_8k`;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 2048
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 2048
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip4k_in_s_4k` TABLESPACE=`s_8k`;
ERROR HY000: InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 4096
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_8k` uses block size 8192 and cannot contain a table with physical page size 4096
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip1k_in_s_1k` TABLESPACE=`s_16k`;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip2k_in_s_2k` TABLESPACE=`s_16k`;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip4k_in_s_4k` TABLESPACE=`s_16k`;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
ALTER TABLE `t_zip8k_in_s_8k` TABLESPACE=`s_16k`;
ERROR HY000: InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
SHOW WARNINGS;
Level	Code	Message
Error	1478	InnoDB: Tablespace `s_16k` cannot contain a COMPRESSED table
Error	1478	Table storage engine 'InnoDB' does not support the create option 'TABLESPACE'
#
# Tables in a general tablespace can be moved to file_per_table locations.
#
ALTER TABLE `t_zip1k_in_s_1k` TABLESPACE=`innodb_file_per_table`, RENAME TO `t_zip1k_to_file_per_table`;
ALTER TABLE `t_zip2k_in_s_2k` TABLESPACE=`innodb_file_per_table`, RENAME TO `t_zip2k_to_file_per_table`;
ALTER TABLE `t_zip4k_in_s_4k` TABLESPACE=`innodb_file_per_table`, RENAME TO `t_zip4k_to_file_per_table`;
ALTER TABLE `t_zip8k_in_s_8k` TABLESPACE=`innodb_file_per_table`, RENAME TO `t_zip8k_to_file_per_table`;
=== information_schema.innodb_sys_tablespaces and innodb_sys_datafiles ===
Space_Name	Space_Type	Page_Size	Zip_Size	Formats_Permitted	Path
s_1k	General	DEFAULT	1024	Compressed	MYSQLD_DATADIR/s_1k.ibd
s_2k	General	DEFAULT	2048	Compressed	MYSQLD_DATADIR/s_2k.ibd
s_4k	General	DEFAULT	4096	Compressed	MYSQLD_DATADIR/s_4k.ibd
s_8k	General	DEFAULT	8192	Compressed	MYSQLD_DATADIR/s_8k.ibd
s_16k	General	DEFAULT	0	Any	MYSQLD_DATADIR/s_16k.ibd
test/t_zip16k_as_file_per_table	Single	DEFAULT	DEFAULT	Compressed	MYSQLD_DATADIR/test/t_zip16k_as_file_per_table.ibd
test/t_zip1k_to_file_per_table	Single	DEFAULT	1024	Compressed	MYSQLD_DATADIR/test/t_zip1k_to_file_per_table.ibd
test/t_zip2k_to_file_per_table	Single	DEFAULT	2048	Compressed	MYSQLD_DATADIR/test/t_zip2k_to_file_per_table.ibd
test/t_zip4k_to_file_per_table	Single	DEFAULT	4096	Compressed	MYSQLD_DATADIR/test/t_zip4k_to_file_per_table.ibd
test/t_zip8k_to_file_per_table	Single	DEFAULT	8192	Compressed	MYSQLD_DATADIR/test/t_zip8k_to_file_per_table.ibd
=== information_schema.files ===
Space_Name	File_Type	Engine	Status	Tablespace_Name	Path
s_1k	TABLESPACE	InnoDB	NORMAL	s_1k	MYSQLD_DATADIR/s_1k.ibd
s_2k	TABLESPACE	InnoDB	NORMAL	s_2k	MYSQLD_DATADIR/s_2k.ibd
s_4k	TABLESPACE	InnoDB	NORMAL	s_4k	MYSQLD_DATADIR/s_4k.ibd
s_8k	TABLESPACE	InnoDB	NORMAL	s_8k	MYSQLD_DATADIR/s_8k.ibd
s_16k	TABLESPACE	InnoDB	NORMAL	s_16k	MYSQLD_DATADIR/s_16k.ibd
test/t_zip16k_as_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip16k_as_file_per_table.ibd
test/t_zip1k_to_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip1k_to_file_per_table.ibd
test/t_zip2k_to_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip2k_to_file_per_table.ibd
test/t_zip4k_to_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip4k_to_file_per_table.ibd
test/t_zip8k_to_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip8k_to_file_per_table.ibd
=== information_schema.innodb_sys_tables  and innodb_sys_tablespaces ===
Table Name	Tablespace	Table Flags	Columns	Row Format	Zip Size	Space Type
test/t_zip16k_as_file_per_table	test/t_zip16k_as_file_per_table	43	5	Compressed	16384	Single
test/t_zip1k_remote_in_s_1k	s_1k	163	5	Compressed	1024	General
test/t_zip1k_to_file_per_table	test/t_zip1k_to_file_per_table	35	5	Compressed	1024	Single
test/t_zip2k_remote_in_s_2k	s_2k	165	5	Compressed	2048	General
test/t_zip2k_to_file_per_table	test/t_zip2k_to_file_per_table	37	5	Compressed	2048	Single
test/t_zip4k_remote_in_s_4k	s_4k	167	5	Compressed	4096	General
test/t_zip4k_to_file_per_table	test/t_zip4k_to_file_per_table	39	5	Compressed	4096	Single
test/t_zip8k_remote_in_s_8k	s_8k	169	5	Compressed	8192	General
test/t_zip8k_to_file_per_table	test/t_zip8k_to_file_per_table	41	5	Compressed	8192	Single
CHECK TABLE `t_zip1k_to_file_per_table`;
Table	Op	Msg_type	Msg_text
test.t_zip1k_to_file_per_table	check	status	OK
CHECK TABLE `t_zip2k_to_file_per_table`;
Table	Op	Msg_type	Msg_text
test.t_zip2k_to_file_per_table	check	status	OK
CHECK TABLE `t_zip4k_to_file_per_table`;
Table	Op	Msg_type	Msg_text
test.t_zip4k_to_file_per_table	check	status	OK
CHECK TABLE `t_zip8k_to_file_per_table`;
Table	Op	Msg_type	Msg_text
test.t_zip8k_to_file_per_table	check	status	OK
CHECK TABLE `t_zip16k_as_file_per_table`;
Table	Op	Msg_type	Msg_text
test.t_zip16k_as_file_per_table	check	status	OK
DROP TABLE `t_zip1k_to_file_per_table`;
DROP TABLE `t_zip2k_to_file_per_table`;
DROP TABLE `t_zip4k_to_file_per_table`;
DROP TABLE `t_zip8k_to_file_per_table`;
DROP TABLE `t_zip16k_as_file_per_table`;
#
# Tables in a general tablespace cannot be moved to remote file_per_table locations
# because MySQL ignores DATA DIRECTORY in ALTER TABLE.
#
ALTER TABLE `t_zip1k_remote_in_s_1k` TABLESPACE=`innodb_file_per_table`, DATA DIRECTORY='$MYSQL_TMP_DIR', RENAME TO `t_zip1k_to_file_per_table`;
Warnings:
Warning	1618	<DATA DIRECTORY> option ignored
ALTER TABLE `t_zip2k_remote_in_s_2k` TABLESPACE=`innodb_file_per_table`, DATA DIRECTORY='$MYSQL_TMP_DIR', RENAME TO `t_zip2k_to_file_per_table`;
Warnings:
Warning	1618	<DATA DIRECTORY> option ignored
ALTER TABLE `t_zip4k_remote_in_s_4k` TABLESPACE=`innodb_file_per_table`, DATA DIRECTORY='$MYSQL_TMP_DIR', RENAME TO `t_zip4k_to_file_per_table`;
Warnings:
Warning	1618	<DATA DIRECTORY> option ignored
ALTER TABLE `t_zip8k_remote_in_s_8k` TABLESPACE=`innodb_file_per_table`, DATA DIRECTORY='$MYSQL_TMP_DIR', RENAME TO `t_zip8k_to_file_per_table`;
Warnings:
Warning	1618	<DATA DIRECTORY> option ignored
=== information_schema.innodb_sys_tablespaces and innodb_sys_datafiles ===
Space_Name	Space_Type	Page_Size	Zip_Size	Formats_Permitted	Path
s_1k	General	DEFAULT	1024	Compressed	MYSQLD_DATADIR/s_1k.ibd
s_2k	General	DEFAULT	2048	Compressed	MYSQLD_DATADIR/s_2k.ibd
s_4k	General	DEFAULT	4096	Compressed	MYSQLD_DATADIR/s_4k.ibd
s_8k	General	DEFAULT	8192	Compressed	MYSQLD_DATADIR/s_8k.ibd
s_16k	General	DEFAULT	0	Any	MYSQLD_DATADIR/s_16k.ibd
test/t_zip1k_to_file_per_table	Single	DEFAULT	1024	Compressed	MYSQLD_DATADIR/test/t_zip1k_to_file_per_table.ibd
test/t_zip2k_to_file_per_table	Single	DEFAULT	2048	Compressed	MYSQLD_DATADIR/test/t_zip2k_to_file_per_table.ibd
test/t_zip4k_to_file_per_table	Single	DEFAULT	4096	Compressed	MYSQLD_DATADIR/test/t_zip4k_to_file_per_table.ibd
test/t_zip8k_to_file_per_table	Single	DEFAULT	8192	Compressed	MYSQLD_DATADIR/test/t_zip8k_to_file_per_table.ibd
=== information_schema.files ===
Space_Name	File_Type	Engine	Status	Tablespace_Name	Path
s_1k	TABLESPACE	InnoDB	NORMAL	s_1k	MYSQLD_DATADIR/s_1k.ibd
s_2k	TABLESPACE	InnoDB	NORMAL	s_2k	MYSQLD_DATADIR/s_2k.ibd
s_4k	TABLESPACE	InnoDB	NORMAL	s_4k	MYSQLD_DATADIR/s_4k.ibd
s_8k	TABLESPACE	InnoDB	NORMAL	s_8k	MYSQLD_DATADIR/s_8k.ibd
s_16k	TABLESPACE	InnoDB	NORMAL	s_16k	MYSQLD_DATADIR/s_16k.ibd
test/t_zip1k_to_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip1k_to_file_per_table.ibd
test/t_zip2k_to_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip2k_to_file_per_table.ibd
test/t_zip4k_to_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip4k_to_file_per_table.ibd
test/t_zip8k_to_file_per_table	TABLESPACE	InnoDB	NORMAL	innodb_file_per_table.##	MYSQLD_DATADIR/test/t_zip8k_to_file_per_table.ibd
=== information_schema.innodb_sys_tables  and innodb_sys_tablespaces ===
Table Name	Tablespace	Table Flags	Columns	Row Format	Zip Size	Space Type
test/t_zip1k_to_file_per_table	test/t_zip1k_to_file_per_table	35	5	Compressed	1024	Single
test/t_zip2k_to_file_per_table	test/t_zip2k_to_file_per_table	37	5	Compressed	2048	Single
test/t_zip4k_to_file_per_table	test/t_zip4k_to_file_per_table	39	5	Compressed	4096	Single
test/t_zip8k_to_file_per_table	test/t_zip8k_to_file_per_table	41	5	Compressed	8192	Single
DROP TABLE `t_zip1k_to_file_per_table`;
DROP TABLE `t_zip2k_to_file_per_table`;
DROP TABLE `t_zip4k_to_file_per_table`;
DROP TABLE `t_zip8k_to_file_per_table`;
#
# Clean-up.
#
DROP TABLESPACE s_1k;
DROP TABLESPACE s_2k;
DROP TABLESPACE s_4k;
DROP TABLESPACE s_8k;
DROP TABLESPACE s_16k;

Man Man