Analysis of MySQL parameters innodb_file_per_table

Source: Internet
Author: User

As the name implies, when this parameter is set to ON, the data for the newly created INNODB data table is stored in a separate file instead of being stored in a shared ibdata table space.

Setting this parameter to on will have a number of benefits, and, in the latest version of MySQL 5.6, the default already has this parameter set to ON.

The immediate benefit is that you can use the file system (for example, the LS command) to evaluate the disk space occupied by a data table.

The biggest problem with shared tablespace is that the Ibdata file size only increases, and sometimes it's too big to be magical. If a separate tablespace is used, the data table will be truncate or drop when the table space is reclaimed.

In addition, if you want to use the compression characteristics of the InnoDB engine, you must also open this parameter.

In summary, opening this parameter will outweigh the advantages.

For more relevant research, please refer to the official documentation:

Http://dev.mysql.com/doc/refman/5.6/en/innodb-parameters.html#sysvar_innodb_file_per_table

Http://dev.mysql.com/doc/refman/5.6/en/innodb-multiple-tablespaces.html


This article is from "Ghost" blog, please make sure to keep this source http://caizi.blog.51cto.com/5234706/1546419

Analysis of MySQL parameters innodb_file_per_table

Related Article

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.