sql - Free space in MySQL after deleting tables & columns? -


i have database of around 20gb. need delete 5 tables & drop few columns in other 3 tables.

dropping 5 tables free 3 gb , dropping columns in other tables should free 8gb.

how reclaim space mysql.

i've read dumping database , restoring 1 of solution i'm not sure how works, not sure if works deleting entire database or parts of it?

please suggest how go this. thanks.

from comments, sounds you're using innodb without file per table option.

reclaiming space innodb tablespace not possible in mode. course of action dump whole database, turn on file-per-table mode, , reload (with clean mysql instance). going take long time large database; mk-parallel-dump , restore tools might bit quicker, still take while. sure test process on non-production server first.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -