Различия
Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
| db:mysql:engines:innodb [2016/10/22 15:32] – mirocow | db:mysql:engines:innodb [2016/10/22 15:34] (текущий) – [Восстановление таблиц] mirocow | ||
|---|---|---|---|
| Строка 30: | Строка 30: | ||
| ===== Восстановление таблиц ===== | ===== Восстановление таблиц ===== | ||
| - | |||
| - | |||
| - | [[restore|Восстановление]] | ||
| * ibdata1: By default all data and indexes for all tables/ | * ibdata1: By default all data and indexes for all tables/ | ||
| Строка 38: | Строка 35: | ||
| * tablename.frm: | * tablename.frm: | ||
| + | ==== Этапы восстановление ==== | ||
| + | |||
| + | - Create empty InnoDB tablespace (remove existing ibdata1, ib_logfile* and start MySQL). | ||
| + | - Enable innodb_file_per_table | ||
| + | - Create tables you want to connect | ||
| + | - Compile ibdconnect from Percona InnoDB Recovery Tool and run ./ | ||
| + | - Then fix checksums in ibdata1 as described in the post | ||
| + | - Copy new ibdata1 and all your *.ibd files to the datadir. | ||
| + | - Start MySQL and take a dump of the tables. | ||