MySQL Forums
Forum List  »  Newbie

Re: space management
Posted by: Rick James
Date: October 16, 2016 04:14PM

Do SHOW TABLE STATUS;
Look at the Data_free column. You will probably see several tables with the same big number for Data_free. These tables are probably all in ibdata1, not file_per_table. If all that makes sense and fits with what you see, then,...

That is how much space is free in ibdata1. You could do this to move other tables out of their file_per_table into ibdata1, there by releasing some space to the OS:

Find some such tables, compute Data_length + Index_length as the space needed for each. Gather enough tables to mostly fill the big Data_free mentioned above. For each, do

SET GLOBAL innodb_file_per_table = OFF;
ALTER TABLE ... ENGINE=InnoDB;

Now check the disk utilization, etc, to see if it all worked, and whether you have enough spare disk space to do whatever you need.

As for doing a dump of all the data -- Get another machine and dump to it.

Options: ReplyQuote


Subject
Written By
Posted
October 11, 2016 11:50PM
October 12, 2016 10:19AM
Re: space management
October 16, 2016 04:14PM


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.