Question: what is ibdata1 used for?
Answer: The file ibdata1 is the system tablespace for the InnoDB infrastructure. You can separate Data and Index Pages from ibdata1 by enabling innodb_file_per_table. This will cause any newly created InnoDB table to store data and index pages in an external . ibd file.