Explain advantages of MyISAM over InnoDB?

Much more conservative approach to disk space management – each MyISAM table is stored in a separate file, which could be compressed then with myisamchk if needed.

With InnoDB the tables are stored in tablespace and not much further optimization is possible. All data except for TEXT and BLOB can occupy 8,000 bytes at most. No full text indexing is available for InnoDB. The COUNT(*)s execute slower than in MyISAM due to tablespace complexity.

What does myisamchk do?

myisamchk compress the MyISAM tables, which reduces their disk or memory usage.

Where MyISAM table will be stored and also give their formats of storage?

Each MyISAM table is stored on disk in following formats:

  • The .frm file stores the table definition
  • The data file has a .MYD¬†(MYData) extension
  • The index file has a .MYI (MYIndex) extension

What are the different types of tables in MySQL?

Total 5 types of tables are present in mysql as per following.

  • MyISAM
  • Heap
  • Merge
  • InnoDB
  • ISAM

MyISAM is the default storage engine as of MySQL .