views:

77

answers:

1

I truncated several huge tables, but the mysql file and database appears to remain at the same size.

Does truncate table delete the data from mysql as well?

+4  A: 

When a large table is deleted or truncated InnoDB storage engine for MySQL will leave the empty space, and use it for subsequent insertion of new row versions.

There are ways to shrink database. Check Re: how to shrink a MySQL database

volody