Database Schema Size
Query the size of each of the schemas defined on the database server:
SELECT table_schema “Data Base Name”, SUM( data_length + index_length) / 1024 / 1024 ”Data Base Size in MB” FROM information_schema.TABLES GROUP BY table_schema ;
Select the size of each of the tables defined in a schema:
SELECT TABLE_NAME, table_rows, data_length, index_length, round(((data_length + index_length) / 1024 / 1024),2) “Size in MB” FROM information_schema.TABLES WHERE table_schema = “schema_name”;
-
multipleto89 liked this
-
login93026 liked this
-
repositoryyu8 liked this
-
emileeyou89 liked this
-
castellanosko9 liked this
-
mildredbod8 liked this
-
valenzuelaki09 liked this
-
yeseniauio09 liked this
-
stephensok85 liked this
-
babyman posted this