0

There are two tables and their default engine is InnoDB.

I want know the following

  • What's inside the ibdata file ?
  • How does InnoDB store these two tables ?
RolandoMySQLDBA
  • 182,700
  • 33
  • 317
  • 520
Svan
  • 11
  • 1
  • 3
    You should have used Google first. http://blog.jcole.us/2013/01/03/the-basics-of-innodb-space-file-layout/, http://docs.oracle.com/cd/E17952_01/refman-5.6-en/innodb-table-and-index.html#innodb-physical-structure – Stoleg Apr 11 '14 at 10:31

1 Answers1

2

InnoDB Architecture

InnoDB Architecture

Percona created this picture a long time ago. As you can see, ibdata1 contains many classes of data structures. There are as follows:

  • Table Data Pages (if innodb_file_per_table disabled)
  • Table Index Pages (if innodb_file_per_table disabled)
  • Data Dictionary (Tablespace IDs, Logical-to-Physical Mapping to Tables)
  • Double Write Buffer (Handles Data Redundancy to Support Crash Recovery)
  • Insert Buffer (Handles Updates to Secondary Indexes)
  • Rollback Segments (Manages Reverse Engineering of Uncommitted Transactions)
  • Undo Space (Containers of Information for Rollback Operations)

BTREEs in InnoDB

If you are concerned how indexes are stored, please read my earlier posts about InnoDB indexes

RolandoMySQLDBA
  • 182,700
  • 33
  • 317
  • 520