⌘BABAKOV.NET Let's code!
100% [dark] [ru]
~/posts $

September 2016

1 total

1 total

Types and Structure of Tables in MySQL

MySQL database supports several different types of tables, each with its own unique features and limitations. I will start my description with the "native" type of tables for MySQL, MyISAM. If the type of table is not specified in the create table operator, it will be assigned to MyISAM. Each MyISAM table is stored on disk in three files (in the subdirectory of the mysql/data catalog), the names of which match the name of the table, and the extension can take one of the following values: .frm - the structure of the table, this file contains information about the names and types of columns and indexes; .MYD - in this file, the data of the table is stored; .MYI - in this file, the indexes of the table are stored. Tables of the MyISAM type have several features: 1. Data is stored in a cross-platform format, which allows for the transfer of databases from one server to another by direct copying of files, bypassing intermediate forms. 2. The maximum number of indexes is 64 (from version 4.1.2). Each index can be a maximum of 16 columns. 3. From MySQL 4.1, a specific encoding can be set for each text column. 4. Indexing of text columns, including variable-length columns, is allowed. 5. Full-text search is supported. 6. Tables have a special flag indicating the correctness of closing the table. If the server was stopped abnormally, when loading, the flags of the closed tables will signal the possible damage to the tables and the server will attempt to automatically check and restore them.

384 views 0 comments 0 likes ./Read →