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

Leave a comment

No comments yet.

Comments RSS TrackBack Identifier URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s