Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
db:mysql:engines:innodb [2016/10/22 15:33] – [Восстановление таблиц] mirocowdb:mysql:engines:innodb [2016/10/22 15:34] (текущий) – [Восстановление таблиц] mirocow
Строка 35: Строка 35:
   * tablename.frm: Each table has a small *.frm file in the database-specific directory which stores the table definition.   * tablename.frm: Each table has a small *.frm file in the database-specific directory which stores the table definition.
  
 +==== Этапы восстановление ====
 +
 +  - 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 ./ibdconnect -o ibdata1 -f t1.ibd -d <your database> -t <table name, t1 in this case> for each table.
 +  - 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.