Note: You may wish to convert MyISAM tables to InnoDB tables before you proceed.
innodb_file_per_table is by default ON Mysql 5.6.6 and onwards. There is plenty of stuff on Google about pros & cons ofinnodb_file_per_table.
This post details how to enable innodb_file_per_table on an existing database. Because innodb_file_per_table affects new tables only, created after innodb_file_per_table is enabled, we need to recreate old databases to force innodb_file_per_table on old tables and reclaim some disk space.
- Percona Server 5.5.
- innodb_file_per_table was not enable.
- innodb_data_file_path = ibdata1:12G:autoextend
- Size of ibdata1 is 25GB. It's too big and we can lose our data when the server crash.