| 1 |
SET AUTOCOMMIT = 0; |
| 2 |
CREATE DATABASE testdb_wl5522; |
| 3 |
CREATE TABLE testdb_wl5522.t1 (c1 int ) engine = Innodb; |
| 4 |
BEGIN; |
| 5 |
INSERT INTO testdb_wl5522.t1 VALUES (1),(123),(331); |
| 6 |
ROLLBACK; |
| 7 |
SELECT c1 FROM testdb_wl5522.t1; |
| 8 |
c1 |
| 9 |
FLUSH TABLES testdb_wl5522.t1 FOR EXPORT; |
| 10 |
backup: t1 |
| 11 |
UNLOCK TABLES; |
| 12 |
DROP TABLE testdb_wl5522.t1; |
| 13 |
CREATE TABLE testdb_wl5522.t1 (c1 int ) ENGINE = Innodb; |
| 14 |
ALTER TABLE testdb_wl5522.t1 DISCARD TABLESPACE; |
| 15 |
restore: t1 .ibd and .cfg files |
| 16 |
ALTER TABLE testdb_wl5522.t1 IMPORT TABLESPACE; |
| 17 |
CHECK TABLE testdb_wl5522.t1; |
| 18 |
Table Op Msg_type Msg_text |
| 19 |
testdb_wl5522.t1 check status OK |
| 20 |
SELECT c1 FROM testdb_wl5522.t1; |
| 21 |
c1 |
| 22 |
SET AUTOCOMMIT = 1; |
| 23 |
DROP TABLE testdb_wl5522.t1; |
| 24 |
DROP DATABASE testdb_wl5522; |