InnoDB tablespace recovery

An orphaned .ibd file contains InnoDB pages, but it is not a self-describing database backup.

With file-per-table enabled, table data and indexes can reside in individual .ibd files. After a reinstall, dictionary loss, accidental DROP, or copied data directory, MySQL may reject the file because its internal tablespace identity and schema context no longer match.

Understand the symptom

Successful import requires compatible schema and tablespace metadata.

WHY

What is happening

InnoDB pages record a space ID, page numbers, index IDs, row formats, and checksums. The data dictionary and exact CREATE TABLE definition determine how records are interpreted. Recovery validates page structure and reconstructs schema context before attempting transportable-tablespace or logical extraction workflows on copies.

What you may see

Symptoms that change the recovery path.

01

Table does not exist in engine

SQL metadata references a table that InnoDB cannot open consistently.

02

.ibd file exists after reinstall

Files were copied without the matching dictionary, schema, or logs.

03

Tablespace ID mismatch

The server sees an internal identity different from the table definition.

04

Import tablespace fails

Schema, row format, partitioning, encryption, or page state is incompatible.

Protect the source

Actions that can make the situation worse.

01

DISCARD can unlink the only file

The operation intentionally detaches a tablespace and can remove its current path.

02

Wrong schema misreads records

Column order, types, indexes, and row format must match the stored pages.

03

Starting MySQL advances recovery state

Redo application, purge, and dictionary updates can change remaining evidence.

Do this now

Safe steps before evaluation.

01

Stop the database service

Prevent automatic recovery, purge, migrations, and application writes.

02

Copy the complete data directory

Keep .ibd, .cfg, ibdata, redo, undo, binary logs, schemas, and configuration.

03

Record exact versions and errors

Save MySQL or MariaDB build, settings, table definitions, logs, and incident timeline.

04

Work only on clones

Test dictionary or import procedures in an isolated compatible environment.

NEPFOSYS process

How a data-first evaluation proceeds.

01

Page and schema analysis

NEPFOSYS evaluates tablespace identity, page checksums, indexes, and available definitions.

02

Controlled reconstruction

Compatible server or page-level methods are tested without altering the original files.

03

Logical verification

Recovered tables are checked for row consistency, key relationships, and requested records.

A clear next step

Preserve the original device before another repair or recovery attempt.

Start a case with the exact symptoms, incident timeline, prior attempts, encryption details, and the files that matter most. NEPFOSYS will route the case to the appropriate DFW intake or nationwide mail-in path.

Start with a case review

Questions, answered

What customers ask before starting.

Can I open an .ibd file by renaming it?

No. MySQL needs matching schema and InnoDB metadata, not just a filename.

Is the .frm file enough?

It may help on older versions, but full schema, server version, logs, and dictionary context are safer and often necessary.

Should I use innodb_force_recovery?

Only on a protected copy and at the lowest appropriate level; it is an emergency access setting, not a repair of the source.

DFW local · Nationwide mail-in

Protect the device. Start with the facts.

Start my recovery case