I have a database about 20 GB in size. I need to delete 5 tables and drop a few columns in some other three tables.
Dropping 5 tables with 3 GB free, and columns in other tables should free another 8 GB.
How to return this space from MySQL.
I read how to reset the database and restore it as one of the solutions, but I’m not sure how it works, I’m not even sure that it works only to delete the entire database or only parts of it?
Please suggest how to do this. THANKS.
From the comments, it looks like you are using InnoDB without the file option for the table.
, , innodb. - , " " ( mysql). ; mk-parallel-dump restore , . .
EDIT: file_per_table, Mark .
, , MySQL , . , 500 , 500, , . , , , .
, , , . : (, , ).
, , , :
OPTIMIZE TABLE my_big_table;
, , . , . - , (, ). .
MySQL. :
OPTIMIZE TABLE , ( VARCHAR, VARBINARY, BLOB TEXT). , INSERT . OPTIMIZE TABLE .
Source: https://habr.com/ru/post/1778171/More articles:getResources not working / undefined Java - javaCreating a Java program to search for a file for a specific word - javaEmbedding unsigned int in unsigned short int with bit operator - cShow image resource in a WPF window defined in the class library - resourcesR depending on the values - rОбработка ошибок с помощью WCF с поддержкой Javascript? - javascriptHow to declare a foreign key with an OR clause using Oracle? - sqlCreating a dynamic Linq query based on property values - c #How to add an activity indicator for navigation? - objective-cКак объявить и инициализировать этот массив структур на C, когда длина неизвестна до времени выполнения? - cAll Articles