I truncated some huge tables, but the mysql file and database remain the same.
Is it worth trimming a table to delete data from mysql?
When a large table is deleted or truncated, the InnoDB storage engine for MySQL leaves a blank space and uses it to insert new versions of rows later.
There are ways to shrink the database. Check Re: How to Reduce MySQL Database
In version 5.1.55, the size was not reduced after Truncate , even with innodb_file_per_table = 'ON' . Therefore, you need a DROP, and then a CREATE table, and then the size has been reduced .
Source: https://habr.com/ru/post/1310315/More articles:postgres column aliases for computed values - sqlJava Scanner syntax scan with regex (error?) - javaWhat causes this exception? - javaphp - ftp all files in a directory? - phpMake jqGrid moveable - jqueryPHP convert external relative path to absolute path - phpHow to compose sample code - androidHelp me choose code generation tools for ASP.NET - asp.netXML Planning Guide for Android - androidDanger of exclusion of anti-pattern .. with some changes - c ++All Articles