java dev
java dev

Reputation: 372

What are the generated files when creating a table in MySQL (.opt, .frm, .MYD, .MYI)

When I create a database in MySQL and create a table called flat in it, 4 files are generated:

 db.opt
 flats.frm
 flats.MYD
 flats.MYI

This happens every time a table is created. What are these files?

Upvotes: 0

Views: 994

Answers (1)

pah
pah

Reputation: 4778

The file db.opt contains the database characteristics. It is updated every time the database is altered.

For the remaining 3 files:

Upvotes: 2

Related Questions