MySQL How do you restore tablespace?
This is not new information but I have not covered it much so
addressing it now for those that need it.
If you lose your ibd files... you lose your data. So if you have
a copy of one available.. or even if you are syncing from another
database you can still import it. What/how do you lose
tablespace?
Here is a simple example to recover tablespace.
mysql> Create database demo;
mysql> use demo;
mysql> CREATE TABLE `demotable` (
-> `id` int(11) NOT NULL
AUTO_INCREMENT,
-> `dts` timestamp NOT NULL DEFAULT
CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
-> PRIMARY KEY (`id`)
-> ) ENGINE=InnoDB;
Now we store some data...
…
Showing entries 1 to 1
Jul
13
2019
Showing entries 1 to 1