InnoDB Storage Engine Introduction-(5) InnoDB logical storage structure

Source: Internet
Author: User

If you create a table with no defined primary key displayed, MySQL creates the primary key as follows:

  • First, determine if there is a non-empty unique index in the table, and if so, the column is the primary key.
  • If the above conditions are not met, the storage engine automatically creates a 6-byte-size pointer.

When there are multiple, non-null, unique indexes in a table, the first non-null unique index defined when the table is built is selected. Note that the order in which the indexes are defined is not the order in which the columns are created.

  • Tablespace tablespace (IBD file)
  • Segment Segment (an index of 2 segments)
  • Extent (1MB)
  • Page (16KB)
  • Row
  • Field

Table Space

InnoDB Storage Engine Introduction-(5) InnoDB logical storage structure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.