2012-07-16 06:17:56 +04:00
|
|
|
DROP TABLE IF EXISTS t1, t2;
|
|
|
|
CREATE TABLE t1 (a <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
|
|
|
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
|
|
|
DROP TABLE t1;
|
|
|
|
CREATE TABLE t1 (a <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
|
|
|
|
INSERT INTO t1 (a) VALUES (1),(2);
|
2013-02-03 02:53:57 +04:00
|
|
|
SELECT a FROM t1;
|
2012-07-16 06:17:56 +04:00
|
|
|
a
|
|
|
|
1
|
|
|
|
2
|
|
|
|
ALTER TABLE t1 DISCARD TABLESPACE;
|
2013-02-03 02:53:57 +04:00
|
|
|
SELECT a FROM t1;
|
2013-11-08 23:21:26 +04:00
|
|
|
ERROR HY000: Tablespace has been discarded for table 't1'
|
2012-07-16 06:17:56 +04:00
|
|
|
ALTER TABLE t1 IMPORT TABLESPACE;
|
2013-11-08 23:21:26 +04:00
|
|
|
Warnings:
|
2014-02-05 16:39:21 +04:00
|
|
|
Warning 1810 IO Read error: (2, No such file or directory) Error opening './test/t1.cfg', will attempt to import without schema verification
|
2013-02-03 02:53:57 +04:00
|
|
|
SELECT a FROM t1;
|
2012-07-16 06:17:56 +04:00
|
|
|
a
|
|
|
|
1
|
|
|
|
2
|
|
|
|
DROP TABLE t1;
|