mysql query table occupied space

mysql query table occupied space

SELECT ROUND((( data_length + index_length ) / 1024 / 1024 ),
	2 
) AS "Size (M)" 
FROM
	information_schema.TABLES 
WHERE
	table_schema = 'mydb' 
	AND table_name = 'mytable1'

Insert image description here

Guess you like

Origin blog.csdn.net/leafcat7/article/details/133165533