可以通过以下SQL语句查看数据库的数据量大小:
SELECT table_schema "Database Name",ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) "Size in MB"FROM information_schema.tablesGROUP BY table_schema;这条语句将返回每个数据库的数据量大小(以MB为单位)。
可以通过以下SQL语句查看数据库的数据量大小:
SELECT table_schema "Database Name",ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) "Size in MB"FROM information_schema.tablesGROUP BY table_schema;这条语句将返回每个数据库的数据量大小(以MB为单位)。