Interview Questions

What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?

PHP Interview Questions and Answers


(Continued from previous question...)

What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?

In MySQL, the default table type is MyISAM.
Each MyISAM table is stored on disk in three files. The files have names that begin with the table name and have an extension to indicate the file type.

The '.frm' file stores the table definition.
The data file has a '.MYD' (MYData) extension.
The index file has a '.MYI' (MYIndex) extension,

(Continued on next question...)

Other Interview Questions