MySQL Forums
Forum List  »  InnoDB

Re: Move one database to another drive?
Posted by: Rick James
Date: December 12, 2009 10:47PM

Several issues; no simple answer.
* The logs (usually 2 of them) are for everyone; cannot split between databases.
* ibdata -- You can set innodb_file_per_table, but only applies to new databases.
* You could create a new table (with file per table), populate it from an existing database, then RENAME to put it in place.
* Even if you get some of the tables out of ibdata, you cannot easily recover the free space. (It will be free for InnoDB tables, but not free to the OS.)
* Symbolic links for the directories can be used to reposition a whole directory to another physical drive.
* Striping is more effective at spreading the load across drives. But that means dumping and reloading everything on disk.

Ponder those. See what you can come up with. Come back for more details if you like.

Options: ReplyQuote


Subject
Views
Written By
Posted
5300
December 11, 2009 04:26PM
Re: Move one database to another drive?
2680
December 12, 2009 10:47PM
2198
December 14, 2009 01:44PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.