Change MySQL inno dB to file per table

This will create a file per table instead of just one big inno db file

cd /usr/local/mysql/support-files/
sudo cp my-huge.cnf /etc/my.cnf
sudo vi /etc/my.cnf

add this under [mysqld]

innodb_file_per_table

Now create the tables as required after restarting MySQL

Advertisements