Documentation Home
MySQL 9.5 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 41.4Mb
PDF (A4) - 41.5Mb
Man Pages (TGZ) - 272.3Kb
Man Pages (Zip) - 378.2Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


15.1.24.1 Files Created by CREATE TABLE

For anInnoDB table created in a file-per-table tablespace or general tablespace, table data and associated indexes are stored in a.ibd file in the database directory. When anInnoDB table is created in the system tablespace, table data and indexes are stored in theibdata* files that represent the system tablespace. Theinnodb_file_per_table option controls whether tables are created in file-per-table tablespaces or the system tablespace, by default. TheTABLESPACE option can be used to place a table in a file-per-table tablespace, general tablespace, or the system tablespace, regardless of theinnodb_file_per_table setting.

ForMyISAM tables, the storage engine creates data and index files. Thus, for eachMyISAM tabletbl_name, there are two disk files.

FilePurpose
tbl_name.MYDData file
tbl_name.MYIIndex file

Chapter 18,Alternative Storage Engines, describes what files each storage engine creates to represent tables. If a table name contains special characters, the names for the table files contain encoded versions of those characters as described inSection 11.2.4, “Mapping of Identifiers to File Names”.