mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
fix some quoting in error messages
add_identifier change comes from 5.7, everything else is a follow-up
This commit is contained in:
@ -42,7 +42,7 @@ t1 CREATE TABLE `t1` (
|
|||||||
PRIMARY KEY (`pk`)
|
PRIMARY KEY (`pk`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `PAGE_COMPRESSED`=1 `ENCRYPTED`=YES `ENCRYPTION_KEY_ID`=4
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 `PAGE_COMPRESSED`=1 `ENCRYPTED`=YES `ENCRYPTION_KEY_ID`=4
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
# Tablespaces should be still encrypted
|
# Tablespaces should be still encrypted
|
||||||
# t1 yes on expecting NOT FOUND
|
# t1 yes on expecting NOT FOUND
|
||||||
NOT FOUND /foobar/ in t1.ibd
|
NOT FOUND /foobar/ in t1.ibd
|
||||||
|
@ -86,7 +86,7 @@ t3.frm
|
|||||||
t4.frm
|
t4.frm
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1814 Tablespace has been discarded for table 't1'
|
Warning 1814 Tablespace has been discarded for table `t1`
|
||||||
SHOW CREATE TABLE t1;
|
SHOW CREATE TABLE t1;
|
||||||
Table Create Table
|
Table Create Table
|
||||||
t1 CREATE TABLE `t1` (
|
t1 CREATE TABLE `t1` (
|
||||||
@ -98,7 +98,7 @@ COUNT(*)
|
|||||||
2000
|
2000
|
||||||
ALTER TABLE t2 IMPORT TABLESPACE;
|
ALTER TABLE t2 IMPORT TABLESPACE;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1814 Tablespace has been discarded for table 't2'
|
Warning 1814 Tablespace has been discarded for table `t2`
|
||||||
SHOW CREATE TABLE t2;
|
SHOW CREATE TABLE t2;
|
||||||
Table Create Table
|
Table Create Table
|
||||||
t2 CREATE TABLE `t2` (
|
t2 CREATE TABLE `t2` (
|
||||||
@ -110,7 +110,7 @@ COUNT(*)
|
|||||||
2000
|
2000
|
||||||
ALTER TABLE t3 IMPORT TABLESPACE;
|
ALTER TABLE t3 IMPORT TABLESPACE;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1814 Tablespace has been discarded for table 't3'
|
Warning 1814 Tablespace has been discarded for table `t3`
|
||||||
SHOW CREATE TABLE t3;
|
SHOW CREATE TABLE t3;
|
||||||
Table Create Table
|
Table Create Table
|
||||||
t3 CREATE TABLE `t3` (
|
t3 CREATE TABLE `t3` (
|
||||||
@ -122,7 +122,7 @@ COUNT(*)
|
|||||||
2000
|
2000
|
||||||
ALTER TABLE t4 IMPORT TABLESPACE;
|
ALTER TABLE t4 IMPORT TABLESPACE;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1814 Tablespace has been discarded for table 't4'
|
Warning 1814 Tablespace has been discarded for table `t4`
|
||||||
SHOW CREATE TABLE t4;
|
SHOW CREATE TABLE t4;
|
||||||
Table Create Table
|
Table Create Table
|
||||||
t4 CREATE TABLE `t4` (
|
t4 CREATE TABLE `t4` (
|
||||||
|
@ -469,9 +469,9 @@ ERROR HY000: Cannot drop column 'b': needed in a foreign key constraint 't2_ibfk
|
|||||||
alter table t2 DROP COLUMN b;
|
alter table t2 DROP COLUMN b;
|
||||||
ERROR HY000: Cannot drop column 'b': needed in a foreign key constraint 'test/t2_ibfk_1'
|
ERROR HY000: Cannot drop column 'b': needed in a foreign key constraint 'test/t2_ibfk_1'
|
||||||
alter table t1 DROP COLUMN b, ALGORITHM=COPY;
|
alter table t1 DROP COLUMN b, ALGORITHM=COPY;
|
||||||
ERROR HY000: Cannot drop column 'b': needed in a foreign key constraint 't2_ibfk_1' of table 'test.t2'
|
ERROR HY000: Cannot drop column 'b': needed in a foreign key constraint 't2_ibfk_1' of table `test`.`t2`
|
||||||
alter table t1 DROP COLUMN b;
|
alter table t1 DROP COLUMN b;
|
||||||
ERROR HY000: Cannot drop column 'b': needed in a foreign key constraint 'test/t2_ibfk_1' of table '"test"."t2"'
|
ERROR HY000: Cannot drop column 'b': needed in a foreign key constraint 'test/t2_ibfk_1' of table `test`.`t2`
|
||||||
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
|
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
|
||||||
create unique index dc on t2 (d,c);
|
create unique index dc on t2 (d,c);
|
||||||
affected rows: 0
|
affected rows: 0
|
||||||
|
@ -34,17 +34,17 @@ ROW_FORMAT=COMPRESSED;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_before_commit_crash";
|
SET SESSION debug_dbug="+d,ib_import_before_commit_crash";
|
||||||
SELECT * FROM test_wl5522.t1;
|
SELECT * FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Lost connection to MySQL server during query
|
ERROR HY000: Lost connection to MySQL server during query
|
||||||
SET SESSION debug_dbug="-d,ib_import_before_commit_crash";
|
SET SESSION debug_dbug="-d,ib_import_before_commit_crash";
|
||||||
SET SESSION debug_dbug="+d,ib_import_before_checkpoint_crash";
|
SET SESSION debug_dbug="+d,ib_import_before_checkpoint_crash";
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Lost connection to MySQL server during query
|
ERROR HY000: Lost connection to MySQL server during query
|
||||||
unlink: t1.ibd
|
unlink: t1.ibd
|
||||||
@ -92,7 +92,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb
|
|||||||
ROW_FORMAT=COMPRESSED;
|
ROW_FORMAT=COMPRESSED;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_internal_error";
|
SET SESSION debug_dbug="+d,ib_import_internal_error";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -105,11 +105,11 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb
|
|||||||
ROW_FORMAT=COMPRESSED;
|
ROW_FORMAT=COMPRESSED;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_reset_space_and_lsn_failure";
|
SET SESSION debug_dbug="+d,ib_import_reset_space_and_lsn_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Internal error: Cannot reset LSNs in table "test_wl5522"."t1" : Too many concurrent transactions
|
ERROR HY000: Internal error: Cannot reset LSNs in table `test_wl5522`.`t1` : Too many concurrent transactions
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="-d,ib_import_reset_space_and_lsn_failure";
|
SET SESSION debug_dbug="-d,ib_import_reset_space_and_lsn_failure";
|
||||||
SET SESSION debug_dbug="+d,ib_import_open_tablespace_failure";
|
SET SESSION debug_dbug="+d,ib_import_open_tablespace_failure";
|
||||||
@ -479,11 +479,11 @@ CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb
|
|||||||
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_trigger_corruption_1";
|
SET SESSION debug_dbug="+d,ib_import_trigger_corruption_1";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Internal error: Cannot reset LSNs in table "test_wl5522"."t1" : Data structure corruption
|
ERROR HY000: Internal error: Cannot reset LSNs in table `test_wl5522`.`t1` : Data structure corruption
|
||||||
SET SESSION debug_dbug="-d,ib_import_trigger_corruption_1";
|
SET SESSION debug_dbug="-d,ib_import_trigger_corruption_1";
|
||||||
DROP TABLE test_wl5522.t1;
|
DROP TABLE test_wl5522.t1;
|
||||||
unlink: t1.ibd
|
unlink: t1.ibd
|
||||||
@ -492,11 +492,11 @@ CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb
|
|||||||
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,buf_page_is_corrupt_failure";
|
SET SESSION debug_dbug="+d,buf_page_is_corrupt_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Internal error: Cannot reset LSNs in table "test_wl5522"."t1" : Data structure corruption
|
ERROR HY000: Internal error: Cannot reset LSNs in table `test_wl5522`.`t1` : Data structure corruption
|
||||||
SET SESSION debug_dbug="-d,buf_page_is_corrupt_failure";
|
SET SESSION debug_dbug="-d,buf_page_is_corrupt_failure";
|
||||||
DROP TABLE test_wl5522.t1;
|
DROP TABLE test_wl5522.t1;
|
||||||
unlink: t1.ibd
|
unlink: t1.ibd
|
||||||
@ -505,7 +505,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb
|
|||||||
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_trigger_corruption_2";
|
SET SESSION debug_dbug="+d,ib_import_trigger_corruption_2";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -518,7 +518,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb
|
|||||||
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_trigger_corruption_3";
|
SET SESSION debug_dbug="+d,ib_import_trigger_corruption_3";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -531,11 +531,11 @@ CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb
|
|||||||
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
SET SESSION debug_dbug="+d,ib_import_create_index_failure_1";
|
SET SESSION debug_dbug="+d,ib_import_create_index_failure_1";
|
||||||
ALTER TABLE test_wl5522.t1 ADD INDEX idx(c1);
|
ALTER TABLE test_wl5522.t1 ADD INDEX idx(c1);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1814 Tablespace has been discarded for table 't1'
|
Warning 1814 Tablespace has been discarded for table `t1`
|
||||||
SET SESSION debug_dbug="-d,ib_import_create_index_failure_1";
|
SET SESSION debug_dbug="-d,ib_import_create_index_failure_1";
|
||||||
DROP TABLE test_wl5522.t1;
|
DROP TABLE test_wl5522.t1;
|
||||||
unlink: t1.ibd
|
unlink: t1.ibd
|
||||||
@ -544,7 +544,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb
|
|||||||
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,fil_space_create_failure";
|
SET SESSION debug_dbug="+d,fil_space_create_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -557,7 +557,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb
|
|||||||
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,dict_tf_to_fsp_flags_failure";
|
SET SESSION debug_dbug="+d,dict_tf_to_fsp_flags_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -570,11 +570,11 @@ CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb
|
|||||||
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,fsp_flags_is_valid_failure";
|
SET SESSION debug_dbug="+d,fsp_flags_is_valid_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Internal error: Cannot reset LSNs in table "test_wl5522"."t1" : Unsupported
|
ERROR HY000: Internal error: Cannot reset LSNs in table `test_wl5522`.`t1` : Unsupported
|
||||||
SET SESSION debug_dbug="-d,fsp_flags_is_valid_failure";
|
SET SESSION debug_dbug="-d,fsp_flags_is_valid_failure";
|
||||||
DROP TABLE test_wl5522.t1;
|
DROP TABLE test_wl5522.t1;
|
||||||
unlink: t1.ibd
|
unlink: t1.ibd
|
||||||
|
@ -47,17 +47,17 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_before_commit_crash";
|
SET SESSION debug_dbug="+d,ib_import_before_commit_crash";
|
||||||
SELECT * FROM test_wl5522.t1;
|
SELECT * FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Lost connection to MySQL server during query
|
ERROR HY000: Lost connection to MySQL server during query
|
||||||
SET SESSION debug_dbug="-d,ib_import_before_commit_crash";
|
SET SESSION debug_dbug="-d,ib_import_before_commit_crash";
|
||||||
SET SESSION debug_dbug="+d,ib_import_before_checkpoint_crash";
|
SET SESSION debug_dbug="+d,ib_import_before_checkpoint_crash";
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Lost connection to MySQL server during query
|
ERROR HY000: Lost connection to MySQL server during query
|
||||||
unlink: t1.ibd
|
unlink: t1.ibd
|
||||||
@ -223,7 +223,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
SET SESSION debug_dbug="+d,ib_import_io_read_error_1";
|
SET SESSION debug_dbug="+d,ib_import_io_read_error_1";
|
||||||
restore: t1 .cfg file
|
restore: t1 .cfg file
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -234,7 +234,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
SET SESSION debug_dbug="+d,ib_import_io_read_error_2";
|
SET SESSION debug_dbug="+d,ib_import_io_read_error_2";
|
||||||
restore: t1 .cfg file
|
restore: t1 .cfg file
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -245,7 +245,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
SET SESSION debug_dbug="+d,ib_import_io_read_error_3";
|
SET SESSION debug_dbug="+d,ib_import_io_read_error_3";
|
||||||
restore: t1 .cfg file
|
restore: t1 .cfg file
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -256,7 +256,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
SET SESSION debug_dbug="+d,ib_import_io_read_error_4";
|
SET SESSION debug_dbug="+d,ib_import_io_read_error_4";
|
||||||
restore: t1 .cfg file
|
restore: t1 .cfg file
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -267,7 +267,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
SET SESSION debug_dbug="+d,ib_import_io_read_error_5";
|
SET SESSION debug_dbug="+d,ib_import_io_read_error_5";
|
||||||
restore: t1 .cfg file
|
restore: t1 .cfg file
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -278,7 +278,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
SET SESSION debug_dbug="+d,ib_import_io_read_error_6";
|
SET SESSION debug_dbug="+d,ib_import_io_read_error_6";
|
||||||
restore: t1 .cfg file
|
restore: t1 .cfg file
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -289,7 +289,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
SET SESSION debug_dbug="+d,ib_import_io_read_error_7";
|
SET SESSION debug_dbug="+d,ib_import_io_read_error_7";
|
||||||
restore: t1 .cfg file
|
restore: t1 .cfg file
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -300,7 +300,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
SET SESSION debug_dbug="+d,ib_import_io_read_error_8";
|
SET SESSION debug_dbug="+d,ib_import_io_read_error_8";
|
||||||
restore: t1 .cfg file
|
restore: t1 .cfg file
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -311,7 +311,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
SET SESSION debug_dbug="+d,ib_import_io_read_error_9";
|
SET SESSION debug_dbug="+d,ib_import_io_read_error_9";
|
||||||
restore: t1 .cfg file
|
restore: t1 .cfg file
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -322,7 +322,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
SET SESSION debug_dbug="+d,ib_import_string_read_error";
|
SET SESSION debug_dbug="+d,ib_import_string_read_error";
|
||||||
restore: t1 .cfg file
|
restore: t1 .cfg file
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -333,7 +333,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_OOM_1";
|
SET SESSION debug_dbug="+d,ib_import_OOM_1";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -346,7 +346,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_OOM_2";
|
SET SESSION debug_dbug="+d,ib_import_OOM_2";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -359,7 +359,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_OOM_4";
|
SET SESSION debug_dbug="+d,ib_import_OOM_4";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -372,7 +372,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_OOM_5";
|
SET SESSION debug_dbug="+d,ib_import_OOM_5";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -385,7 +385,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_OOM_6";
|
SET SESSION debug_dbug="+d,ib_import_OOM_6";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -398,7 +398,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_OOM_7";
|
SET SESSION debug_dbug="+d,ib_import_OOM_7";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -411,7 +411,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_OOM_8";
|
SET SESSION debug_dbug="+d,ib_import_OOM_8";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -424,7 +424,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_OOM_9";
|
SET SESSION debug_dbug="+d,ib_import_OOM_9";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -437,7 +437,7 @@ CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
|||||||
INSERT INTO test_wl5522.t1 VALUES (1);
|
INSERT INTO test_wl5522.t1 VALUES (1);
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_OOM_10";
|
SET SESSION debug_dbug="+d,ib_import_OOM_10";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -449,7 +449,7 @@ unlink: t1.cfg
|
|||||||
CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_internal_error";
|
SET SESSION debug_dbug="+d,ib_import_internal_error";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -461,11 +461,11 @@ DROP TABLE test_wl5522.t1;
|
|||||||
CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
CREATE TABLE test_wl5522.t1 (c1 INT) ENGINE = Innodb;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_reset_space_and_lsn_failure";
|
SET SESSION debug_dbug="+d,ib_import_reset_space_and_lsn_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Internal error: Cannot reset LSNs in table "test_wl5522"."t1" : Too many concurrent transactions
|
ERROR HY000: Internal error: Cannot reset LSNs in table `test_wl5522`.`t1` : Too many concurrent transactions
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="-d,ib_import_reset_space_and_lsn_failure";
|
SET SESSION debug_dbug="-d,ib_import_reset_space_and_lsn_failure";
|
||||||
SET SESSION debug_dbug="+d,ib_import_open_tablespace_failure";
|
SET SESSION debug_dbug="+d,ib_import_open_tablespace_failure";
|
||||||
@ -475,27 +475,27 @@ SET SESSION debug_dbug="-d,ib_import_open_tablespace_failure";
|
|||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_check_bitmap_failure";
|
SET SESSION debug_dbug="+d,ib_import_check_bitmap_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Incorrect key file for table 't1'; try to repair it
|
ERROR HY000: Index for table 't1' is corrupt; try to repair it
|
||||||
SET SESSION debug_dbug="-d,ib_import_check_bitmap_failure";
|
SET SESSION debug_dbug="-d,ib_import_check_bitmap_failure";
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_cluster_root_adjust_failure";
|
SET SESSION debug_dbug="+d,ib_import_cluster_root_adjust_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Incorrect key file for table 't1'; try to repair it
|
ERROR HY000: Index for table 't1' is corrupt; try to repair it
|
||||||
SET SESSION debug_dbug="-d,ib_import_cluster_root_adjust_failure";
|
SET SESSION debug_dbug="-d,ib_import_cluster_root_adjust_failure";
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_cluster_failure";
|
SET SESSION debug_dbug="+d,ib_import_cluster_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Incorrect key file for table 't1'; try to repair it
|
ERROR HY000: Index for table 't1' is corrupt; try to repair it
|
||||||
SET SESSION debug_dbug="-d,ib_import_cluster_failure";
|
SET SESSION debug_dbug="-d,ib_import_cluster_failure";
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_sec_root_adjust_failure";
|
SET SESSION debug_dbug="+d,ib_import_sec_root_adjust_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Incorrect key file for table 't1'; try to repair it
|
ERROR HY000: Index for table 't1' is corrupt; try to repair it
|
||||||
SET SESSION debug_dbug="-d,ib_import_sec_root_adjust_failure";
|
SET SESSION debug_dbug="-d,ib_import_sec_root_adjust_failure";
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_set_max_rowid_failure";
|
SET SESSION debug_dbug="+d,ib_import_set_max_rowid_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Incorrect key file for table 't1'; try to repair it
|
ERROR HY000: Index for table 't1' is corrupt; try to repair it
|
||||||
SET SESSION debug_dbug="-d,ib_import_set_max_rowid_failure";
|
SET SESSION debug_dbug="-d,ib_import_set_max_rowid_failure";
|
||||||
unlink: t1.ibd
|
unlink: t1.ibd
|
||||||
unlink: t1.cfg
|
unlink: t1.cfg
|
||||||
@ -831,11 +831,11 @@ DROP TABLE test_wl5522.t1;
|
|||||||
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_trigger_corruption_1";
|
SET SESSION debug_dbug="+d,ib_import_trigger_corruption_1";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Internal error: Cannot reset LSNs in table "test_wl5522"."t1" : Data structure corruption
|
ERROR HY000: Internal error: Cannot reset LSNs in table `test_wl5522`.`t1` : Data structure corruption
|
||||||
SET SESSION debug_dbug="-d,ib_import_trigger_corruption_1";
|
SET SESSION debug_dbug="-d,ib_import_trigger_corruption_1";
|
||||||
DROP TABLE test_wl5522.t1;
|
DROP TABLE test_wl5522.t1;
|
||||||
unlink: t1.ibd
|
unlink: t1.ibd
|
||||||
@ -843,11 +843,11 @@ unlink: t1.cfg
|
|||||||
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,buf_page_is_corrupt_failure";
|
SET SESSION debug_dbug="+d,buf_page_is_corrupt_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Internal error: Cannot reset LSNs in table "test_wl5522"."t1" : Data structure corruption
|
ERROR HY000: Internal error: Cannot reset LSNs in table `test_wl5522`.`t1` : Data structure corruption
|
||||||
SET SESSION debug_dbug="-d,buf_page_is_corrupt_failure";
|
SET SESSION debug_dbug="-d,buf_page_is_corrupt_failure";
|
||||||
DROP TABLE test_wl5522.t1;
|
DROP TABLE test_wl5522.t1;
|
||||||
unlink: t1.ibd
|
unlink: t1.ibd
|
||||||
@ -855,7 +855,7 @@ unlink: t1.cfg
|
|||||||
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_trigger_corruption_2";
|
SET SESSION debug_dbug="+d,ib_import_trigger_corruption_2";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -867,11 +867,11 @@ unlink: t1.cfg
|
|||||||
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,ib_import_trigger_corruption_3";
|
SET SESSION debug_dbug="+d,ib_import_trigger_corruption_3";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Incorrect key file for table 't1'; try to repair it
|
ERROR HY000: Index for table 't1' is corrupt; try to repair it
|
||||||
SET SESSION debug_dbug="-d,ib_import_trigger_corruption_3";
|
SET SESSION debug_dbug="-d,ib_import_trigger_corruption_3";
|
||||||
DROP TABLE test_wl5522.t1;
|
DROP TABLE test_wl5522.t1;
|
||||||
unlink: t1.ibd
|
unlink: t1.ibd
|
||||||
@ -879,11 +879,11 @@ unlink: t1.cfg
|
|||||||
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
SET SESSION debug_dbug="+d,ib_import_create_index_failure_1";
|
SET SESSION debug_dbug="+d,ib_import_create_index_failure_1";
|
||||||
ALTER TABLE test_wl5522.t1 ADD INDEX idx(c1);
|
ALTER TABLE test_wl5522.t1 ADD INDEX idx(c1);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1814 Tablespace has been discarded for table 't1'
|
Warning 1814 Tablespace has been discarded for table `t1`
|
||||||
SET SESSION debug_dbug="-d,ib_import_create_index_failure_1";
|
SET SESSION debug_dbug="-d,ib_import_create_index_failure_1";
|
||||||
DROP TABLE test_wl5522.t1;
|
DROP TABLE test_wl5522.t1;
|
||||||
unlink: t1.ibd
|
unlink: t1.ibd
|
||||||
@ -891,7 +891,7 @@ unlink: t1.cfg
|
|||||||
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,fil_space_create_failure";
|
SET SESSION debug_dbug="+d,fil_space_create_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -903,7 +903,7 @@ unlink: t1.cfg
|
|||||||
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,dict_tf_to_fsp_flags_failure";
|
SET SESSION debug_dbug="+d,dict_tf_to_fsp_flags_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
@ -915,11 +915,11 @@ unlink: t1.cfg
|
|||||||
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
CREATE TABLE test_wl5522.t1 (c1 INT, c2 VARCHAR(1024), c3 BLOB) ENGINE = Innodb;
|
||||||
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
ALTER TABLE test_wl5522.t1 DISCARD TABLESPACE;
|
||||||
SELECT COUNT(*) FROM test_wl5522.t1;
|
SELECT COUNT(*) FROM test_wl5522.t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
SET SESSION debug_dbug="+d,fsp_flags_is_valid_failure";
|
SET SESSION debug_dbug="+d,fsp_flags_is_valid_failure";
|
||||||
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
ALTER TABLE test_wl5522.t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Internal error: Cannot reset LSNs in table "test_wl5522"."t1" : Unsupported
|
ERROR HY000: Internal error: Cannot reset LSNs in table `test_wl5522`.`t1` : Unsupported
|
||||||
SET SESSION debug_dbug="-d,fsp_flags_is_valid_failure";
|
SET SESSION debug_dbug="-d,fsp_flags_is_valid_failure";
|
||||||
DROP TABLE test_wl5522.t1;
|
DROP TABLE test_wl5522.t1;
|
||||||
unlink: t1.ibd
|
unlink: t1.ibd
|
||||||
|
@ -156,7 +156,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT) ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=2;
|
c2 INT) ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=2;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
t1.cfg
|
t1.cfg
|
||||||
t1.frm
|
t1.frm
|
||||||
@ -198,7 +198,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT) ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
c2 INT) ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
t1.cfg
|
t1.cfg
|
||||||
t1.frm
|
t1.frm
|
||||||
@ -238,7 +238,7 @@ c2 INT, INDEX(c2)) ENGINE=InnoDB
|
|||||||
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8;
|
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
CHECK TABLE t1;
|
CHECK TABLE t1;
|
||||||
@ -272,16 +272,16 @@ c2 INT, INDEX x(c2)) ENGINE=InnoDB
|
|||||||
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=16;
|
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=16;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch (Index x not found in tablespace meta-data file.)
|
ERROR HY000: Schema mismatch (Index x not found in tablespace meta-data file.)
|
||||||
ALTER TABLE t1 DROP INDEX x;
|
ALTER TABLE t1 DROP INDEX x;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1814 Tablespace has been discarded for table 't1'
|
Warning 1814 Tablespace has been discarded for table `t1`
|
||||||
ALTER TABLE t1 ADD INDEX idx(c2);
|
ALTER TABLE t1 ADD INDEX idx(c2);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1814 Tablespace has been discarded for table 't1'
|
Warning 1814 Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
CHECK TABLE t1;
|
CHECK TABLE t1;
|
||||||
@ -328,7 +328,7 @@ t1 CREATE TABLE `t1` (
|
|||||||
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=latin1
|
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=latin1
|
||||||
FLUSH TABLES t1 FOR EXPORT;
|
FLUSH TABLES t1 FOR EXPORT;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1809 Table '"test"."t1"' in system tablespace
|
Warning 1809 Table `test`.`t1` in system tablespace
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
SET GLOBAL innodb_file_per_table = 1;
|
SET GLOBAL innodb_file_per_table = 1;
|
||||||
@ -394,7 +394,7 @@ c2 INT) ENGINE=InnoDB
|
|||||||
ROW_FORMAT=COMPRESSED;
|
ROW_FORMAT=COMPRESSED;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch (Number of indexes don't match, table has 1 indexes but the tablespace meta-data file has 2 indexes)
|
ERROR HY000: Schema mismatch (Number of indexes don't match, table has 1 indexes but the tablespace meta-data file has 2 indexes)
|
||||||
@ -408,7 +408,7 @@ c3 INT, INDEX idx(c2)) ENGINE=InnoDB
|
|||||||
ROW_FORMAT=COMPRESSED;
|
ROW_FORMAT=COMPRESSED;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch (Number of columns don't match, table has 6 columns but the tablespace meta-data file has 5 columns)
|
ERROR HY000: Schema mismatch (Number of columns don't match, table has 6 columns but the tablespace meta-data file has 5 columns)
|
||||||
@ -421,7 +421,7 @@ c2 BIGINT, INDEX idx(c2)) ENGINE=InnoDB
|
|||||||
ROW_FORMAT=COMPRESSED;
|
ROW_FORMAT=COMPRESSED;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch (Column c2 precise type mismatch.)
|
ERROR HY000: Schema mismatch (Column c2 precise type mismatch.)
|
||||||
@ -434,7 +434,7 @@ c2 INT, INDEX idx(c2)) ENGINE=InnoDB
|
|||||||
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch
|
ERROR HY000: Schema mismatch
|
||||||
@ -447,7 +447,7 @@ c2 INT, INDEX idx(c2)) ENGINE=InnoDB
|
|||||||
ROW_FORMAT=COMPRESSED;
|
ROW_FORMAT=COMPRESSED;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
CHECK TABLE t1;
|
CHECK TABLE t1;
|
||||||
|
@ -148,7 +148,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT) ENGINE=InnoDB;
|
c2 INT) ENGINE=InnoDB;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
t1.cfg
|
t1.cfg
|
||||||
t1.frm
|
t1.frm
|
||||||
@ -190,7 +190,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT) ENGINE=InnoDB;
|
c2 INT) ENGINE=InnoDB;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
t1.cfg
|
t1.cfg
|
||||||
t1.frm
|
t1.frm
|
||||||
@ -228,7 +228,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX(c2)) ENGINE=InnoDB;
|
c2 INT, INDEX(c2)) ENGINE=InnoDB;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
CHECK TABLE t1;
|
CHECK TABLE t1;
|
||||||
@ -260,16 +260,16 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX x(c2)) ENGINE=InnoDB;
|
c2 INT, INDEX x(c2)) ENGINE=InnoDB;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch (Index x not found in tablespace meta-data file.)
|
ERROR HY000: Schema mismatch (Index x not found in tablespace meta-data file.)
|
||||||
ALTER TABLE t1 DROP INDEX x;
|
ALTER TABLE t1 DROP INDEX x;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1814 Tablespace has been discarded for table 't1'
|
Warning 1814 Tablespace has been discarded for table `t1`
|
||||||
ALTER TABLE t1 ADD INDEX idx(c2);
|
ALTER TABLE t1 ADD INDEX idx(c2);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1814 Tablespace has been discarded for table 't1'
|
Warning 1814 Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
CHECK TABLE t1;
|
CHECK TABLE t1;
|
||||||
@ -316,7 +316,7 @@ t1 CREATE TABLE `t1` (
|
|||||||
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=latin1
|
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=latin1
|
||||||
FLUSH TABLES t1 FOR EXPORT;
|
FLUSH TABLES t1 FOR EXPORT;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1809 Table '"test"."t1"' in system tablespace
|
Warning 1809 Table `test`.`t1` in system tablespace
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
SET GLOBAL innodb_file_per_table = 1;
|
SET GLOBAL innodb_file_per_table = 1;
|
||||||
@ -380,7 +380,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT) ENGINE=InnoDB;
|
c2 INT) ENGINE=InnoDB;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch (Number of indexes don't match, table has 1 indexes but the tablespace meta-data file has 2 indexes)
|
ERROR HY000: Schema mismatch (Number of indexes don't match, table has 1 indexes but the tablespace meta-data file has 2 indexes)
|
||||||
@ -393,7 +393,7 @@ c2 INT,
|
|||||||
c3 INT, INDEX idx(c2)) ENGINE=InnoDB;
|
c3 INT, INDEX idx(c2)) ENGINE=InnoDB;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch (Number of columns don't match, table has 6 columns but the tablespace meta-data file has 5 columns)
|
ERROR HY000: Schema mismatch (Number of columns don't match, table has 6 columns but the tablespace meta-data file has 5 columns)
|
||||||
@ -405,7 +405,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 BIGINT, INDEX idx(c2)) ENGINE=InnoDB;
|
c2 BIGINT, INDEX idx(c2)) ENGINE=InnoDB;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch (Column c2 precise type mismatch.)
|
ERROR HY000: Schema mismatch (Column c2 precise type mismatch.)
|
||||||
@ -417,7 +417,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX idx(c2)) ENGINE=InnoDB;
|
c2 INT, INDEX idx(c2)) ENGINE=InnoDB;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
CHECK TABLE t1;
|
CHECK TABLE t1;
|
||||||
@ -527,7 +527,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
|
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
CHECK TABLE t1;
|
CHECK TABLE t1;
|
||||||
@ -582,7 +582,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=COMPACT;
|
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=COMPACT;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch (Table flags don't match, server table has 0x5 and the meta-data file has 0x0)
|
ERROR HY000: Schema mismatch (Table flags don't match, server table has 0x5 and the meta-data file has 0x0)
|
||||||
@ -594,7 +594,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
|
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch (Table flags don't match, server table has 0x5 and the meta-data file has 0x0)
|
ERROR HY000: Schema mismatch (Table flags don't match, server table has 0x5 and the meta-data file has 0x0)
|
||||||
@ -606,7 +606,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
|
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
unlink: t1.cfg
|
unlink: t1.cfg
|
||||||
@ -713,7 +713,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=COMPACT;
|
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=COMPACT;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
CHECK TABLE t1;
|
CHECK TABLE t1;
|
||||||
@ -768,7 +768,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
|
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch (Table flags don't match, server table has 0x5 and the meta-data file has 0x1)
|
ERROR HY000: Schema mismatch (Table flags don't match, server table has 0x5 and the meta-data file has 0x1)
|
||||||
@ -780,7 +780,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
|
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch (Table flags don't match, server table has 0x5 and the meta-data file has 0x1)
|
ERROR HY000: Schema mismatch (Table flags don't match, server table has 0x5 and the meta-data file has 0x1)
|
||||||
@ -792,7 +792,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=COMPACT;
|
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=COMPACT;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
CHECK TABLE t1;
|
CHECK TABLE t1;
|
||||||
@ -902,7 +902,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
|
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
CHECK TABLE t1;
|
CHECK TABLE t1;
|
||||||
@ -957,7 +957,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=COMPACT;
|
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=COMPACT;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch (Table flags don't match, server table has 0x5 and the meta-data file has 0x21)
|
ERROR HY000: Schema mismatch (Table flags don't match, server table has 0x5 and the meta-data file has 0x21)
|
||||||
@ -969,7 +969,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
|
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
ERROR HY000: Schema mismatch (Table flags don't match, server table has 0x5 and the meta-data file has 0x21)
|
ERROR HY000: Schema mismatch (Table flags don't match, server table has 0x5 and the meta-data file has 0x21)
|
||||||
@ -981,7 +981,7 @@ c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|||||||
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
|
c2 INT, INDEX idx(c2)) ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
|
||||||
ALTER TABLE t1 DISCARD TABLESPACE;
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
ERROR HY000: Tablespace has been discarded for table 't1'
|
ERROR HY000: Tablespace has been discarded for table `t1`
|
||||||
restore: t1 .ibd and .cfg files
|
restore: t1 .ibd and .cfg files
|
||||||
ALTER TABLE t1 IMPORT TABLESPACE;
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
||||||
CHECK TABLE t1;
|
CHECK TABLE t1;
|
||||||
|
@ -38,7 +38,7 @@ select z from corrupt_bit_test_ā;
|
|||||||
ERROR HY000: Index corrupt_bit_test_ā is corrupted
|
ERROR HY000: Index corrupt_bit_test_ā is corrupted
|
||||||
show warnings;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Warning 180 InnoDB: Index idxē for table "test"."corrupt_bit_test_ā" is marked as corrupted
|
Warning 180 InnoDB: Index idxē for table `test`.`corrupt_bit_test_ā` is marked as corrupted
|
||||||
Error 1712 Index corrupt_bit_test_ā is corrupted
|
Error 1712 Index corrupt_bit_test_ā is corrupted
|
||||||
insert into corrupt_bit_test_ā values (10001, "a", 20001, 20001);
|
insert into corrupt_bit_test_ā values (10001, "a", 20001, 20001);
|
||||||
select * from corrupt_bit_test_ā use index(primary) where a = 10001;
|
select * from corrupt_bit_test_ā use index(primary) where a = 10001;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
call mtr.add_suppression("InnoDB: Table \"mysql\".\"innodb_index_stats\" not found");
|
call mtr.add_suppression("InnoDB: Table `mysql`.`innodb_index_stats` not found");
|
||||||
call mtr.add_suppression("InnoDB: Fetch of persistent statistics requested for table.*");
|
call mtr.add_suppression("InnoDB: Fetch of persistent statistics requested for table.*");
|
||||||
CREATE TABLE test_ps_fetch_corrupted
|
CREATE TABLE test_ps_fetch_corrupted
|
||||||
(a INT, PRIMARY KEY (a))
|
(a INT, PRIMARY KEY (a))
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# test with 16k page size.
|
# test with 16k page size.
|
||||||
-- source include/have_innodb_16k.inc
|
-- source include/have_innodb_16k.inc
|
||||||
|
|
||||||
call mtr.add_suppression("InnoDB: Table \"mysql\".\"innodb_index_stats\" not found");
|
call mtr.add_suppression("InnoDB: Table `mysql`.`innodb_index_stats` not found");
|
||||||
call mtr.add_suppression("InnoDB: Fetch of persistent statistics requested for table.*");
|
call mtr.add_suppression("InnoDB: Fetch of persistent statistics requested for table.*");
|
||||||
|
|
||||||
-- vertical_results
|
-- vertical_results
|
||||||
|
@ -6710,7 +6710,7 @@ ER_TABLE_SCHEMA_MISMATCH
|
|||||||
eng "Schema mismatch (%s)"
|
eng "Schema mismatch (%s)"
|
||||||
|
|
||||||
ER_TABLE_IN_SYSTEM_TABLESPACE
|
ER_TABLE_IN_SYSTEM_TABLESPACE
|
||||||
eng "Table '%-.192s' in system tablespace"
|
eng "Table %-.192s in system tablespace"
|
||||||
|
|
||||||
ER_IO_READ_ERROR
|
ER_IO_READ_ERROR
|
||||||
eng "IO Read error: (%lu, %s) %s"
|
eng "IO Read error: (%lu, %s) %s"
|
||||||
@ -6725,7 +6725,7 @@ ER_TABLESPACE_EXISTS
|
|||||||
eng "Tablespace for table '%-.192s' exists. Please DISCARD the tablespace before IMPORT."
|
eng "Tablespace for table '%-.192s' exists. Please DISCARD the tablespace before IMPORT."
|
||||||
|
|
||||||
ER_TABLESPACE_DISCARDED
|
ER_TABLESPACE_DISCARDED
|
||||||
eng "Tablespace has been discarded for table '%-.192s'"
|
eng "Tablespace has been discarded for table %`s"
|
||||||
|
|
||||||
ER_INTERNAL_ERROR
|
ER_INTERNAL_ERROR
|
||||||
eng "Internal error: %-.192s"
|
eng "Internal error: %-.192s"
|
||||||
@ -6773,8 +6773,8 @@ ER_FK_COLUMN_CANNOT_DROP
|
|||||||
ger "Kann Spalte '%-.192s' nicht löschen: wird für eine Fremdschlüsselbeschränkung '%-.192s' benötigt"
|
ger "Kann Spalte '%-.192s' nicht löschen: wird für eine Fremdschlüsselbeschränkung '%-.192s' benötigt"
|
||||||
|
|
||||||
ER_FK_COLUMN_CANNOT_DROP_CHILD
|
ER_FK_COLUMN_CANNOT_DROP_CHILD
|
||||||
eng "Cannot drop column '%-.192s': needed in a foreign key constraint '%-.192s' of table '%-.192s'"
|
eng "Cannot drop column '%-.192s': needed in a foreign key constraint '%-.192s' of table %-.192s"
|
||||||
ger "Kann Spalte '%-.192s' nicht löschen: wird für eine Fremdschlüsselbeschränkung '%-.192s' der Tabelle '%-.192s' benötigt"
|
ger "Kann Spalte '%-.192s' nicht löschen: wird für eine Fremdschlüsselbeschränkung '%-.192s' der Tabelle %-.192s benötigt"
|
||||||
|
|
||||||
ER_FK_COLUMN_NOT_NULL
|
ER_FK_COLUMN_NOT_NULL
|
||||||
eng "Column '%-.192s' cannot be NOT NULL: needed in a foreign key constraint '%-.192s' SET NULL"
|
eng "Column '%-.192s' cannot be NOT NULL: needed in a foreign key constraint '%-.192s' SET NULL"
|
||||||
|
@ -122,7 +122,7 @@ static char* add_identifier(THD* thd, char *to_p, const char * end_p,
|
|||||||
conv_name_end= conv_string + res;
|
conv_name_end= conv_string + res;
|
||||||
}
|
}
|
||||||
|
|
||||||
quote = thd ? get_quote_char_for_identifier(thd, conv_name, res - 1) : '"';
|
quote = thd ? get_quote_char_for_identifier(thd, conv_name, res - 1) : '`';
|
||||||
|
|
||||||
if (quote != EOF && (end_p - to_p > 2))
|
if (quote != EOF && (end_p - to_p > 2))
|
||||||
{
|
{
|
||||||
@ -8178,11 +8178,14 @@ static bool fk_prepare_copy_alter_table(THD *thd, TABLE *table,
|
|||||||
DBUG_RETURN(true);
|
DBUG_RETURN(true);
|
||||||
case FK_COLUMN_DROPPED:
|
case FK_COLUMN_DROPPED:
|
||||||
{
|
{
|
||||||
char buff[NAME_LEN*2+2];
|
StringBuffer<NAME_LEN*2+2> buff(system_charset_info);
|
||||||
strxnmov(buff, sizeof(buff)-1, f_key->foreign_db->str, ".",
|
LEX_STRING *db= f_key->foreign_db, *tbl= f_key->foreign_table;
|
||||||
f_key->foreign_table->str, NullS);
|
|
||||||
|
append_identifier(thd, &buff, db->str, db->length);
|
||||||
|
buff.append('.');
|
||||||
|
append_identifier(thd, &buff, tbl->str,tbl->length);
|
||||||
my_error(ER_FK_COLUMN_CANNOT_DROP_CHILD, MYF(0), bad_column_name,
|
my_error(ER_FK_COLUMN_CANNOT_DROP_CHILD, MYF(0), bad_column_name,
|
||||||
f_key->foreign_id->str, buff);
|
f_key->foreign_id->str, buff.c_ptr());
|
||||||
DBUG_RETURN(true);
|
DBUG_RETURN(true);
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
@ -4042,12 +4042,8 @@ row_discard_tablespace_for_mysql(
|
|||||||
err = DB_DECRYPTION_FAILED;
|
err = DB_DECRYPTION_FAILED;
|
||||||
} else if (dict_table_is_temporary(table)) {
|
} else if (dict_table_is_temporary(table)) {
|
||||||
|
|
||||||
/* JAN: TODO: MySQL 5.7
|
|
||||||
ib_senderrf(trx->mysql_thd, IB_LOG_LEVEL_ERROR,
|
ib_senderrf(trx->mysql_thd, IB_LOG_LEVEL_ERROR,
|
||||||
ER_CANNOT_DISCARD_TEMPORARY_TABLE);
|
ER_CANNOT_DISCARD_TEMPORARY_TABLE);
|
||||||
*/
|
|
||||||
ib_senderrf(trx->mysql_thd, IB_LOG_LEVEL_ERROR,
|
|
||||||
ER_TABLESPACE_DISCARDED);
|
|
||||||
|
|
||||||
err = DB_ERROR;
|
err = DB_ERROR;
|
||||||
|
|
||||||
|
@ -871,12 +871,8 @@ row_quiesce_set_state(
|
|||||||
|
|
||||||
} else if (dict_table_is_temporary(table)) {
|
} else if (dict_table_is_temporary(table)) {
|
||||||
|
|
||||||
ib_senderrf(trx->mysql_thd, IB_LOG_LEVEL_WARN,
|
|
||||||
ER_TABLESPACE_DISCARDED, table->name);
|
|
||||||
/* JAN: TODO: MySQL 5.7
|
|
||||||
ib_senderrf(trx->mysql_thd, IB_LOG_LEVEL_WARN,
|
ib_senderrf(trx->mysql_thd, IB_LOG_LEVEL_WARN,
|
||||||
ER_CANNOT_DISCARD_TEMPORARY_TABLE);
|
ER_CANNOT_DISCARD_TEMPORARY_TABLE);
|
||||||
*/
|
|
||||||
|
|
||||||
return(DB_UNSUPPORTED);
|
return(DB_UNSUPPORTED);
|
||||||
} else if (table->space == srv_sys_space.space_id()) {
|
} else if (table->space == srv_sys_space.space_id()) {
|
||||||
|
@ -59,7 +59,7 @@ void test_1(const char *in, const char *exp, enum_explain_filename_mode mode)
|
|||||||
/* length returned by explain_filename is fine */
|
/* length returned by explain_filename is fine */
|
||||||
bool length = (len1 == strlen(exp));
|
bool length = (len1 == strlen(exp));
|
||||||
|
|
||||||
ok( (pass && length) , "(%d): %s => %s\n", mode, in, out);
|
ok( (pass && length) , "(%d): %s => %s", mode, in, out);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc __attribute__((unused)),char *argv[])
|
int main(int argc __attribute__((unused)),char *argv[])
|
||||||
@ -69,87 +69,87 @@ int main(int argc __attribute__((unused)),char *argv[])
|
|||||||
plan(22);
|
plan(22);
|
||||||
|
|
||||||
test_1("test/t1.ibd",
|
test_1("test/t1.ibd",
|
||||||
"Database \"test\", Table \"t1.ibd\"",
|
"Database `test`, Table `t1.ibd`",
|
||||||
EXPLAIN_ALL_VERBOSE);
|
EXPLAIN_ALL_VERBOSE);
|
||||||
|
|
||||||
test_1("test/t1.ibd",
|
test_1("test/t1.ibd",
|
||||||
"\"test\".\"t1.ibd\"",
|
"`test`.`t1.ibd`",
|
||||||
EXPLAIN_PARTITIONS_VERBOSE);
|
EXPLAIN_PARTITIONS_VERBOSE);
|
||||||
|
|
||||||
test_1("test/t1.ibd",
|
test_1("test/t1.ibd",
|
||||||
"\"test\".\"t1.ibd\"",
|
"`test`.`t1.ibd`",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
test_1("test/t1#TMP#",
|
test_1("test/t1#TMP#",
|
||||||
"Database \"test\", Table \"t1#TMP#\"",
|
"Database `test`, Table `t1#TMP#`",
|
||||||
EXPLAIN_ALL_VERBOSE);
|
EXPLAIN_ALL_VERBOSE);
|
||||||
|
|
||||||
test_1("test/#sql-2882.ibd",
|
test_1("test/#sql-2882.ibd",
|
||||||
"Database \"test\", Table \"#sql-2882.ibd\"",
|
"Database `test`, Table `#sql-2882.ibd`",
|
||||||
EXPLAIN_ALL_VERBOSE);
|
EXPLAIN_ALL_VERBOSE);
|
||||||
|
|
||||||
test_1("test/t1#REN#",
|
test_1("test/t1#REN#",
|
||||||
"Database \"test\", Table \"t1#REN#\"",
|
"Database `test`, Table `t1#REN#`",
|
||||||
EXPLAIN_ALL_VERBOSE);
|
EXPLAIN_ALL_VERBOSE);
|
||||||
|
|
||||||
test_1("test/t1@0023REN@0023",
|
test_1("test/t1@0023REN@0023",
|
||||||
"Database \"test\", Table \"t1#REN#\"",
|
"Database `test`, Table `t1#REN#`",
|
||||||
EXPLAIN_ALL_VERBOSE);
|
EXPLAIN_ALL_VERBOSE);
|
||||||
|
|
||||||
test_1("test/t1#p#p1",
|
test_1("test/t1#p#p1",
|
||||||
"Database \"test\", Table \"t1\", Partition \"p1\"",
|
"Database `test`, Table `t1`, Partition `p1`",
|
||||||
EXPLAIN_ALL_VERBOSE);
|
EXPLAIN_ALL_VERBOSE);
|
||||||
|
|
||||||
test_1("test/t1#P#p1",
|
test_1("test/t1#P#p1",
|
||||||
"\"test\".\"t1\" /* Partition \"p1\" */",
|
"`test`.`t1` /* Partition `p1` */",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
test_1("test/t1#P#p1@00231",
|
test_1("test/t1#P#p1@00231",
|
||||||
"\"test\".\"t1\" /* Partition \"p1#1\" */",
|
"`test`.`t1` /* Partition `p1#1` */",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
test_1("test/t1#P#p1#SP#sp1",
|
test_1("test/t1#P#p1#SP#sp1",
|
||||||
"\"test\".\"t1\" /* Partition \"p1\", Subpartition \"sp1\" */",
|
"`test`.`t1` /* Partition `p1`, Subpartition `sp1` */",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
test_1("test/t1#p1#SP#sp1",
|
test_1("test/t1#p1#SP#sp1",
|
||||||
"\"test\".\"t1#p1#SP#sp1\"",
|
"`test`.`t1#p1#SP#sp1`",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
test_1("test/t1#p#p1@00232#SP#sp1@00231#REN#",
|
test_1("test/t1#p#p1@00232#SP#sp1@00231#REN#",
|
||||||
"\"test\".\"t1\" /* Renamed Partition \"p1#2\", Subpartition \"sp1#1\" */",
|
"`test`.`t1` /* Renamed Partition `p1#2`, Subpartition `sp1#1` */",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
test_1("test/t1#p#p1#SP#sp1#TMP#",
|
test_1("test/t1#p#p1#SP#sp1#TMP#",
|
||||||
"\"test\".\"t1\" /* Temporary Partition \"p1\", Subpartition \"sp1\" */",
|
"`test`.`t1` /* Temporary Partition `p1`, Subpartition `sp1` */",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
test_1("test/#sql-t1#P#p1#SP#sp1#TMP#",
|
test_1("test/#sql-t1#P#p1#SP#sp1#TMP#",
|
||||||
"\"test\".\"#sql-t1#P#p1#SP#sp1#TMP#\" /* Temporary Partition \"p1\", Subpartition \"sp1\" */",
|
"`test`.`#sql-t1#P#p1#SP#sp1#TMP#` /* Temporary Partition `p1`, Subpartition `sp1` */",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
test_1("test/#sql-t1#P#p1#SP#sp1",
|
test_1("test/#sql-t1#P#p1#SP#sp1",
|
||||||
"\"test\".\"#sql-t1#P#p1#SP#sp1\" /* Partition \"p1\", Subpartition \"sp1\" */",
|
"`test`.`#sql-t1#P#p1#SP#sp1` /* Partition `p1`, Subpartition `sp1` */",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
test_1("test/#sqlx-33",
|
test_1("test/#sqlx-33",
|
||||||
"\"test\".\"#sqlx-33\"",
|
"`test`.`#sqlx-33`",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
test_1("test/#mysql50#t",
|
test_1("test/#mysql50#t",
|
||||||
"\"test\".\"#mysql50#t\"",
|
"`test`.`#mysql50#t`",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
test_1("#mysql50#t",
|
test_1("#mysql50#t",
|
||||||
"\"#mysql50#t\"",
|
"`#mysql50#t`",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
test_1("@0023t",
|
test_1("@0023t",
|
||||||
"\"#t\"",
|
"`#t`",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
test_1("test/t@0023",
|
test_1("test/t@0023",
|
||||||
"\"test\".\"t#\"",
|
"`test`.`t#`",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -157,7 +157,7 @@ int main(int argc __attribute__((unused)),char *argv[])
|
|||||||
then it will not be converted to system_charset_info!
|
then it will not be converted to system_charset_info!
|
||||||
*/
|
*/
|
||||||
test_1("test/t@0023#",
|
test_1("test/t@0023#",
|
||||||
"\"test\".\"t@0023#\"",
|
"`test`.`t@0023#`",
|
||||||
EXPLAIN_PARTITIONS_AS_COMMENT);
|
EXPLAIN_PARTITIONS_AS_COMMENT);
|
||||||
|
|
||||||
my_end(0);
|
my_end(0);
|
||||||
|
Reference in New Issue
Block a user