I need to calculate total space,used space and free space for a table. For this I have used "Data_length","Data_free" columns of information_schema.tables.
As per Mysql documemtation data_length column gives the clustered index length in pages.
But I have not created index on that table.Soon after creating the table the data_length column shows 16384 bytes.
Also after deleting more rows from the table "data_free" column gives value zero.
The storage engine for the table is INNODB.
How to calculate exact total space,used space and free space for a table ?
As per Mysql documemtation data_length column gives the clustered index length in pages.
But I have not created index on that table.Soon after creating the table the data_length column shows 16384 bytes.
Also after deleting more rows from the table "data_free" column gives value zero.
The storage engine for the table is INNODB.
How to calculate exact total space,used space and free space for a table ?