After you remove the MySQL database table data, the fastest release command table space (best)

After you remove the MySQL database table data, generally does not automatically release the table space, you can run the manual release.

After the study, the best release table space command:

ALTER TABLE 表名 ENGINE = InnoDB;

This method can not only release MyISAM, you can also release InnoDB. 

 

There are also two kinds of methods to release the table space:

1.optimize table 表名;

This method is valid only for MyISAM.

2. Delete the entire table, and then create a table, and finally import data

Guess you like

Origin blog.csdn.net/jlq_diligence/article/details/90597049