If I turn on innodb_file_per_table (not currently active), will it destroy my existing tables?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
|
No, but you will need to do a sql dump and re-load or alternatively an optimize table before existing tables will be moved into their own files. Of course as with any large architectural changes, make sure to nab a good backup before implementing the changes. |
|||||||||||||
|
|
Even when you switch to innodb_file_per_table, the InnoDB tables that are inside ibdata1 must be extracted from ibdata1. Unfortunately, you cannot reclaim that space back. You must overhaul the InnoDB infrastructure in order for innodb_file_per_table to work for you. @BMDan already mentioned this in his comment. |
|||
|
|