How can you determine how much disk space a particular MySQL table is taking up?

前端 未结 8 550
死守一世寂寞
死守一世寂寞 2020-11-30 16:20

Is there a quick way to determine how much disk space a particular MySQL table is taking up? The table may be MyISAM or Innodb.

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 17:05

    This won't be accurate for InnoDB tables. The size on disk is actually bigger than that reported via query.

    Please see this link from Percona for more information.

    https://www.percona.com/blog/2008/12/16/how-much-space-does-empty-innodb-table-take/

提交回复
热议问题