
The main configuration file of MySQL is my.cnf. The full path to the configuration file is /etc/my.cnf.
The main files of these database are normally located in /var/lib/mysql directory.
Basically one can see three types of files .frm, .myi, .myd.. But they are not same for all tables and db. They differ based on the engines you use and sometimes even differ with the os. There are lots of other factors that is in the backend behind the type of files you see. We will see some basic differences.
.FRM => It has the table structure of your table or table definition
.MYI => It has the indexes of your table
.MYD => It contains your data
For ex: if your db name is school and tables called class...