InnoDB file per table dilemma
So, the next question is how to convert a ton of data to this setup. What I have tried is this:
1. Add innodb_file_per_table to my.cnf
2. Restart MySQL
3. Alter all InnoDB tables engine=InnoDB
This works great... except, my two 10GB tablespace files remain. I would like to make them smaller, but there is no way of doing this.
Also, there is no trick where you back up the newly created .ibd tables after the alter, move the large table space files to a backup dir, restart and pray that the new smaller tablespace files magically work with your .ibd files. That does *not* work ;)
So, dump all data and restore with new file per table, or the alter method and keep around to large tablespace files? Or is there another solution?